platform/x86: Simplify getting .drvdata
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 19 Apr 2018 14:06:10 +0000 (16:06 +0200)
committerDarren Hart (VMware) <dvhart@infradead.org>
Mon, 23 Apr 2018 15:52:59 +0000 (08:52 -0700)
commitd605ca29c35d9ebc0c32c386d95336d5339f61f7
treee4f93049b7326fc08e98e31513a05c0f8422c997
parent06b8b00b33a145ef5d708ff971cfdb83c8e480c0
platform/x86: Simplify getting .drvdata

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@sang-engineering.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/asus-laptop.c
drivers/platform/x86/asus-wmi.c
drivers/platform/x86/samsung-laptop.c