Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1700102

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

From Wolfram Sang <wsa@the-dreams.de>
Newsgroups linux.kernel
Subject Re: [PATCH] i2c: use dev_get_drvdata() to get private data in suspend/resume hooks
Date 2017-07-31 17:10 +0200
Message-ID <u9kuu-7PW-11@gated-at.bofh.it> (permalink)
References <u7TG2-8lQ-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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!

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] i2c: use dev_get_drvdata() to get private data in suspend/resume hooks Masahiro Yamada <yamada.masahiro@socionext.com> - 2017-07-27 18:20 +0200
  Re: [PATCH] i2c: use dev_get_drvdata() to get private data in  suspend/resume hooks Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-07-28 12:50 +0200
  Re: [PATCH] i2c: use dev_get_drvdata() to get private data in  suspend/resume hooks Wolfram Sang <wsa@the-dreams.de> - 2017-07-31 17:10 +0200

csiph-web