* [PATCH] i2c-parport: Make template structure const
@ 2010-03-11 16:59 Jean Delvare
0 siblings, 0 replies; only message in thread
From: Jean Delvare @ 2010-03-11 16:59 UTC (permalink / raw)
To: Linux I2C
parport_algo_data is a template so it can be marked const.
Signed-off-by: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
---
drivers/i2c/busses/i2c-parport.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.34-rc1.orig/drivers/i2c/busses/i2c-parport.c 2010-03-09 08:24:55.000000000 +0100
+++ linux-2.6.34-rc1/drivers/i2c/busses/i2c-parport.c 2010-03-11 17:43:13.000000000 +0100
@@ -136,7 +136,7 @@ static int parport_getsda(void *data)
copied. The attaching code will set getscl to NULL for adapters that
cannot read SCL back, and will also make the data field point to
the parallel port structure. */
-static struct i2c_algo_bit_data parport_algo_data = {
+static const struct i2c_algo_bit_data parport_algo_data = {
.setsda = parport_setsda,
.setscl = parport_setscl,
.getsda = parport_getsda,
--
Jean Delvare
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-11 16:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-11 16:59 [PATCH] i2c-parport: Make template structure const Jean Delvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).