Skip to content

Commit bfdcad9

Browse files
author
Jean Delvare
committed
i2c-parport: Make template structure const
parport_algo_data is a template so it can be marked const. Signed-off-by: Jean Delvare <khali@linux-fr.org>
1 parent 0be16c3 commit bfdcad9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/i2c/busses/i2c-parport.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ static int parport_getsda(void *data)
137137
copied. The attaching code will set getscl to NULL for adapters that
138138
cannot read SCL back, and will also make the data field point to
139139
the parallel port structure. */
140-
static struct i2c_algo_bit_data parport_algo_data = {
140+
static const struct i2c_algo_bit_data parport_algo_data = {
141141
.setsda = parport_setsda,
142142
.setscl = parport_setscl,
143143
.getsda = parport_getsda,

0 commit comments

Comments
 (0)