]> asedeno.scripts.mit.edu Git - linux.git/commit
thermal: spear_thermal: simplify getting .driver_data
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 21 Oct 2018 20:00:50 +0000 (22:00 +0200)
committerZhang Rui <rui.zhang@intel.com>
Fri, 30 Nov 2018 08:46:56 +0000 (16:46 +0800)
commit3fc62efe09975c160c413a4b7d10c029e0f04470
tree63a06f5991f86ebb94739b0578c5783e3cedc998
parent26d84c276c1ecde8548aff41c9fa9e63ceac924e
thermal: spear_thermal: simplify getting .driver_data

We should get 'driver_data' 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>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/spear_thermal.c