Re: [PATCH] i2c: use dev_get_drvdata() to get private data in suspend/resume hooks

From: Wolfram Sang
Date: Mon Jul 31 2017 - 11:04:56 EST


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@xxxxxxxxxxxxx>

Applied to for-next, and thanks for doing it subsystem wide!

Attachment: signature.asc
Description: PGP signature