[PATCH] i2c: use dev_get_drvdata() to get private data in suspend/resume hooks
Wolfram Sang
wsa at the-dreams.de
Mon Jul 31 08:04:33 PDT 2017
On Fri, Jul 28, 2017 at 01:16:24AM +0900, Masahiro Yamada wrote:
> Several drivers call to_platform_device() to get platform_device
> and pass it to platform_get_drvdata(). In platform_get_drvdata(),
> the platform_device is converted back to struct device again.
>
> Use dev_get_drvdata() to avoid platform_device/device dance.
'dance' :D
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
Applied to for-next, and thanks for doing it subsystem wide!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170731/f69b109c/attachment-0001.sig>
More information about the linux-arm-kernel
mailing list