Skip to contentSkip to conversation

i2c-parport: Make template structure const

PATCH New Jean Delvare 1 participant 1 message Mar 11, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c-parport: Make template structure const

parport_algo_data is a template so it can be marked const.

---
 drivers/i2c/busses/i2c-parport.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/busses/i2c-parport.c +1 -1
@@ -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,
Signature · 1 line
Jean Delvare