summaryrefslogtreecommitdiff
path: root/drivers/i2c/busses
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2010-05-21 16:40:57 (GMT)
committerJean Delvare <khali@linux-fr.org>2010-05-21 16:40:57 (GMT)
commitbfdcad902fb17a830834d4015ea9139df052a4fe (patch)
treeb238f9667c3568aa85fc5bfdbb6a33385aa3469e /drivers/i2c/busses
parent0be16c306125e0940c7d48ec986ac2bbdc542308 (diff)
downloadlinux-fsl-qoriq-bfdcad902fb17a830834d4015ea9139df052a4fe.tar.xz
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>
Diffstat (limited to 'drivers/i2c/busses')
-rw-r--r--drivers/i2c/busses/i2c-parport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-parport.c b/drivers/i2c/busses/i2c-parport.c
index 846583e..0eb1515 100644
--- a/drivers/i2c/busses/i2c-parport.c
+++ b/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,