]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c/i2c-omap: 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:25 +0000 (08:41 +0200)
commit07baca6f8fc21fb2857ed40acd07a42bdb54cbfe
tree8b726dce961b8a8df2a26dbc45a334074673da4f
parent8b58ef43e0165eb42ed8b009c3c39fca183465a4
i2c/i2c-omap: add a const qualifier

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

drivers/i2c/busses/i2c-omap.c: In function 'omap_i2c_probe':
drivers/i2c/busses/i2c-omap.c:1025: warning: assignment discards qualifiers from pointer target type

Reviewed-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
drivers/i2c/busses/i2c-omap.c