Re: [PATCH 31/61] net: dsa: simplify getting .drvdata
From: Florian Fainelli
Date: Thu Apr 26 2018 - 20:22:22 EST
On 04/19/2018 07:06 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@xxxxxxxxxxxxxxxxxxxx>
> Build tested only. buildbot is happy. Please apply individually.
Similar to my other comment on patch 4, would not you want to use
dev_set_drvdata() to be consistent? This would be functionally equivalent.