i2c: omap: switch to dev_get_drvdata()
authorFelipe Balbi <balbi@ti.com>
Mon, 13 Jul 2015 20:38:02 +0000 (15:38 -0500)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 10 Aug 2015 06:37:28 +0000 (08:37 +0200)
commitc680e3291857216465714ba1d3336befaa5b4725
treecfa6216b8caf0ee380649acfc0748b71917e88f2
parent20226118bceed7b432f4bc5bae34c1c160689bf7
i2c: omap: switch to dev_get_drvdata()

there's no need to fetch the platform_device
in order to dereference it back to the dev
pointer to access drvdata, we can use
dev_get_drvdata() instead.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-omap.c