mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
i2c: iproc: Make bcm_iproc_i2c_quirks constant
Static structure bcm_iproc_i2c_quirks, of type i2c_adapter_quirks, is only used when being assigned to constant field quirks of a variable having type i2c_adapter. Hence make bcm_iproc_i2c_quirks constant as well to prevent it from unintended modification. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <[email protected]> Reviewed-by: Ray Jui <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
539005ffc6
commit
67a53081e6
1 changed files with 1 additions and 1 deletions
|
|
@ -803,7 +803,7 @@ static struct i2c_algorithm bcm_iproc_algo = {
|
|||
.unreg_slave = bcm_iproc_i2c_unreg_slave,
|
||||
};
|
||||
|
||||
static struct i2c_adapter_quirks bcm_iproc_i2c_quirks = {
|
||||
static const struct i2c_adapter_quirks bcm_iproc_i2c_quirks = {
|
||||
.max_read_len = M_RX_MAX_READ_LEN,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue