diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-01-27 19:06:17 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-02-09 17:06:52 +0100 |
commit | 92d9d0dfb0fd2f1a6f0c411530df65fba274a79d (patch) | |
tree | 45546e4c7aca619f37b6a30aefcfe4825d137ed9 /drivers/i2c/busses/i2c-sh_mobile.c | |
parent | i2c: i2c-mux-gpio: rename i2c-gpio-mux to i2c-mux-gpio (diff) | |
download | linux-92d9d0dfb0fd2f1a6f0c411530df65fba274a79d.tar.xz linux-92d9d0dfb0fd2f1a6f0c411530df65fba274a79d.zip |
i2c: busses: constify i2c_algorithm structures
Declare i2c_algorithm structures as const as they are only stored in the
algo field of an i2c_adapter structure. This field is of type const, so
i2c_algorithm structures having this property can be made const too.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> for
Acked-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-sh_mobile.c')
-rw-r--r-- | drivers/i2c/busses/i2c-sh_mobile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-sh_mobile.c b/drivers/i2c/busses/i2c-sh_mobile.c index 3d9ebe6e5716..3d7559348745 100644 --- a/drivers/i2c/busses/i2c-sh_mobile.c +++ b/drivers/i2c/busses/i2c-sh_mobile.c @@ -781,7 +781,7 @@ static u32 sh_mobile_i2c_func(struct i2c_adapter *adapter) return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL | I2C_FUNC_PROTOCOL_MANGLING; } -static struct i2c_algorithm sh_mobile_i2c_algorithm = { +static const struct i2c_algorithm sh_mobile_i2c_algorithm = { .functionality = sh_mobile_i2c_func, .master_xfer = sh_mobile_i2c_xfer, }; |