mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Acked-by: Ard Biesheuvel <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
f8c274e4a7
commit
7077ad2ee3
1 changed files with 1 additions and 1 deletions
|
|
@ -526,7 +526,7 @@ static const struct i2c_algorithm synquacer_i2c_algo = {
|
|||
.functionality = synquacer_i2c_functionality,
|
||||
};
|
||||
|
||||
static struct i2c_adapter synquacer_i2c_ops = {
|
||||
static const struct i2c_adapter synquacer_i2c_ops = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "synquacer_i2c-adapter",
|
||||
.algo = &synquacer_i2c_algo,
|
||||
|
|
|
|||
Loading…
Reference in a new issue