]> asedeno.scripts.mit.edu Git - linux.git/commit
thermal: st: st_thermal: simplify getting .driver_data
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 21 Oct 2018 20:00:51 +0000 (22:00 +0200)
committerZhang Rui <rui.zhang@intel.com>
Fri, 30 Nov 2018 08:46:57 +0000 (16:46 +0800)
commit445ae758ceaf394636ad7ab9872f52cdc24165a6
treece8b8bd989467a8801f07251d0418d6e431fd5f5
parent3fc62efe09975c160c413a4b7d10c029e0f04470
thermal: st: st_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/st/st_thermal.c