thermal: stm32: simplify getting .driver_data
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 19 Mar 2019 16:36:35 +0000 (17:36 +0100)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 14 May 2019 03:35:35 +0000 (20:35 -0700)
commitdf535485bb74aa4bb25f2715d776ccea807a7809
tree3dba05f1554c34b2c4f59d3f2a01b54e2be561c1
parent0f54aa5cafbe8434e2938c1cc64ac2e4fe60f0c0
thermal: stm32: 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: Simon Horman <horms+renesas@verge.net.au>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/st/stm_thermal.c