浏览代码

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>
Jean Delvare 15 年之前
父节点
当前提交
bfdcad902f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/i2c/busses/i2c-parport.c

+ 1 - 1
drivers/i2c/busses/i2c-parport.c

@@ -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,