[PATCH 04/61] bus: simplify getting .drvdata

Florian Fainelli f.fainelli at gmail.com
Thu Apr 26 16:29:29 PDT 2018


On 04/19/2018 07:05 AM, Wolfram Sang wrote:
> We should get drvdata from struct device directly. Going via
> platform_device is an unneeded step back and forth.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas at sang-engineering.com>

Looks reasonable, would you want to use dev_set_drvdata() while we are
it? That would bring more consistency given your proposed change.

Thanks!
-- 
-- 
Florian



More information about the linux-arm-kernel mailing list