]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c/mpc: add a const qualifier
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 21 May 2012 19:57:39 +0000 (21:57 +0200)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 24 Jul 2012 06:41:34 +0000 (08:41 +0200)
commit44f26fbfa16f4436bb3d82811a086c56ff48cad8
tree90b1de6b6d8ef1849258cd5802b17802955575e9
parent07baca6f8fc21fb2857ed40acd07a42bdb54cbfe
i2c/mpc: add a const qualifier

This prepares *of_device_id.data becoming const. Without this change
the following warning would occur:

drivers/i2c/busses/i2c-mpc.c: In function 'fsl_i2c_probe':
drivers/i2c/busses/i2c-mpc.c:650:31: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/i2c/busses/i2c-mpc.c