i2c: constify internal structures
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Sun, 9 Jul 2017 20:57:44 +0000 (15:57 -0500)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 12 Aug 2017 11:25:17 +0000 (13:25 +0200)
commit8dc0f8c73c54c9d1a7fe8188ef3e70123a960eaf
treeac612d01c7017ac87b200576fa4d005d1363a24c
parent453a237ccffad899ce15fb61e871e4784004be17
i2c: constify internal structures

Check for i2c_algorithm and i2c_adapter_quirks structures that are only
stored in the algo and quirks fields of an i2c_adapter structure
correspondingly. These fields are declared const, so i2c_algorithm and
i2c_adapter_quirks structures that have this property can be declared
as const also.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> (for designware)
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-davinci.c
drivers/i2c/busses/i2c-designware-slave.c
drivers/i2c/busses/i2c-pmcmsp.c
drivers/i2c/busses/i2c-stm32f4.c