OSDN Git Service

i2c: synquacer: Make synquacer_i2c_ops constant
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 19 Aug 2019 07:58:54 +0000 (13:28 +0530)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 3 Sep 2019 18:17:27 +0000 (20:17 +0200)
commit7077ad2ee316551b4ba9602838d09b67683e20b6
tree881b1127f21566eac36cc87cbf0eac9d446ff0f8
parentf8c274e4a70e7cdc43db56e2391c485c580b5a43
i2c: synquacer: Make synquacer_i2c_ops constant

Static structure synquacer_i2c_ops, of type i2c_adapter, is only used
when it is copied into a field of another structure. It is not itself
modified. Hence make it const to protect it from unintended
modification.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-synquacer.c