lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170731150433.hokceynz2j6eiu6j@ninjato>
Date:   Mon, 31 Jul 2017 17:04:33 +0200
From:   Wolfram Sang <wsa@...-dreams.de>
To:     Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc:     linux-i2c@...r.kernel.org,
        Sören Brinkmann <soren.brinkmann@...inx.com>,
        Mika Westerberg <mika.westerberg@...ux.intel.com>,
        Michal Simek <michal.simek@...inx.com>,
        linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
        Sekhar Nori <nsekhar@...com>,
        Scott Branden <sbranden@...adcom.com>,
        Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
        Joachim Eastwood <manabian@...il.com>,
        Kukjin Kim <kgene@...nel.org>,
        bcm-kernel-feedback-list@...adcom.com,
        Krzysztof Kozlowski <krzk@...nel.org>,
        Barry Song <baohua@...nel.org>,
        Jon Mason <jonmason@...adcom.com>,
        Kevin Hilman <khilman@...nel.org>,
        Jarkko Nikula <jarkko.nikula@...ux.intel.com>,
        linux-samsung-soc@...r.kernel.org, Ray Jui <rjui@...adcom.com>,
        Patrice Chotard <patrice.chotard@...com>
Subject: Re: [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@...ionext.com>

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


Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ