lkml.org 
[lkml]   [2017]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] i2c: use dev_get_drvdata() to get private data in suspend/resume hooks
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@socionext.com>

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

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2017-07-31 17:05    [W:0.036 / U:1.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site