aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-exynos5.c
diff options
context:
space:
mode:
authorNishka Dasgupta <nishkadg.linux@gmail.com>2019-08-15 11:28:57 +0530
committerWolfram Sang <wsa@the-dreams.de>2019-09-04 23:12:21 +0200
commit2252c3172cc5ecfab5aef1057f7c57b39e485f21 (patch)
tree8e9a407b4ba3a7d854ea192e89e9c5b777733b18 /drivers/i2c/busses/i2c-exynos5.c
parenti2c: cht-wc: drop check because i2c_unregister_device() is NULL safe (diff)
downloadlinux-dev-2252c3172cc5ecfab5aef1057f7c57b39e485f21.tar.xz
linux-dev-2252c3172cc5ecfab5aef1057f7c57b39e485f21.zip
i2c: stm32f7: Make structure stm32f7_i2c_algo constant
Static structure stm32f7_i2c_algo, of type i2c_algorithm, is used only when it is assigned to constant field algo of a variable having type i2c_adapter. As stm32f7_i2c_algo is therefore never modified, make it const as well to protect it from unintended modification. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Acked-by: Pierre-Yves MORDRET <pierre-yves.mordret@st.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-exynos5.c')
0 files changed, 0 insertions, 0 deletions