Thread: [Linux1394-cvslog] rev 733 - trunk
Brought to you by:
aeb,
bencollins
From: SVN U. <ben...@li...> - 2003-02-01 13:59:40
|
Author: bencollins Date: 2003-01-03 01:15:04 -0500 (Fri, 03 Jan 2003) New Revision: 733 Modified: trunk/pcilynx.c Log: Patch from Adrian Bunk for more C99 initializer conversions. Modified: trunk/pcilynx.c ============================================================================== --- trunk/pcilynx.c (original) +++ trunk/pcilynx.c 2003-02-01 08:59:07.000000000 -0500 @@ -128,23 +128,20 @@ } static struct i2c_algo_bit_data bit_data = { - NULL, - bit_setsda, - bit_setscl, - bit_getsda, - bit_getscl, - 5, 5, 100, /* waits, timeout */ + .setsda = bit_setsda, + .setscl = bit_setscl, + .getsda = bit_getsda, + .getscl = bit_getscl, + .udelay = 5, + .mdelay = 5, + .timeout = 100, }; static struct i2c_adapter bit_ops = { - "PCILynx I2C adapter", - 0xAA, //FIXME: probably we should get an id in i2c-id.h - NULL, - NULL, - NULL, - NULL, - bit_reg, - bit_unreg, + .name = "PCILynx I2C adapter", + .id = 0xAA, //FIXME: probably we should get an id in i2c-id.h + .client_register = bit_reg, + .client_unregister = bit_unreg, }; |