]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: rockchip_thermal: simplify getting .driver_data
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sun, 21 Oct 2018 20:00:49 +0000 (22:00 +0200)
committerZhang Rui <rui.zhang@intel.com>
Fri, 30 Nov 2018 08:46:56 +0000 (16:46 +0800)
commit6eb0db84e670c239d9f6f0a6bb599d16807a5182
tree50d74e2820c70e67f481133620f37d5af158a15f
parentd91861a172440c9f5539bcb39fb6d06ef002b492
thermal: rockchip_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: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/rockchip_thermal.c