Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfdcad90 authored by Jean Delvare's avatar Jean Delvare
Browse files

i2c-parport: Make template structure const



parport_algo_data is a template so it can be marked const.

Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 0be16c30
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -137,7 +137,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,