]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc3f2cb8cd1b59664d689052b67f7bfcae5fc9166
treecfa6216b8caf0ee380649acfc0748b71917e88f2
parent7eb200e98a47b11338c157b98e211c3e42d73bda
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