lkml.org 
[lkml]   [2003]   [Jan]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.5 patch] convert pcilynx.c to C99 initializers
Hi Andreas,

in 2.5.54 struct i2c_adapter changed resulting in a compile error in
pcilynx.c. The patch below that converts pcilynx.c to C99 initializers
fixes it.

cu
Adrian

--- linux-2.5.54/drivers/ieee1394/pcilynx.c.old 2003-01-03 06:58:52.000000000 +0100
+++ linux-2.5.54/drivers/ieee1394/pcilynx.c 2003-01-03 07:02:47.000000000 +0100
@@ -127,23 +127,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,
};


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:32    [W:0.040 / U:7.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site