* [2.5 patch] convert pcilynx.c to C99 initializers
@ 2003-01-03 6:10 Adrian Bunk
2003-01-03 6:15 ` Ben Collins
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2003-01-03 6:10 UTC (permalink / raw)
To: andreas.bombe, bcollins; +Cc: linux1394-devel, linux-kernel
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,
};
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [2.5 patch] convert pcilynx.c to C99 initializers
2003-01-03 6:10 [2.5 patch] convert pcilynx.c to C99 initializers Adrian Bunk
@ 2003-01-03 6:15 ` Ben Collins
0 siblings, 0 replies; 2+ messages in thread
From: Ben Collins @ 2003-01-03 6:15 UTC (permalink / raw)
To: Adrian Bunk; +Cc: andreas.bombe, linux1394-devel, linux-kernel
On Fri, Jan 03, 2003 at 07:10:52AM +0100, Adrian Bunk wrote:
> 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.
Applied to the SVN repo. Linus should get this over the weekend when I
sync with him.
--
Debian - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
Deqo - http://www.deqo.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-03 6:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-03 6:10 [2.5 patch] convert pcilynx.c to C99 initializers Adrian Bunk
2003-01-03 6:15 ` Ben Collins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox