Input: sun4i-ts - add thermal zone sensor support
authorChen-Yu Tsai <wens@csie.org>
Thu, 15 Jan 2015 18:26:32 +0000 (10:26 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 18 Jan 2015 08:10:27 +0000 (00:10 -0800)
commit223697107949f90917cb3ea583c551fc18e6afb6
treef4ce46876a12d906392fa7fb945bd288c95110da
parent0c49cd295d42d0032af11d55e2140dbec11dc8d0
Input: sun4i-ts - add thermal zone sensor support

The touchscreen controller has a temperature sensor embedded in the SoC,
which already has hwmon support in the driver.

Add DT thermal zone support so we can use it with cpufreq for thermal
throttling.

This also adds a comment stating that we do not know the actual formula
for calculating the temperature.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/touchscreen/sun4i.txt
drivers/input/touchscreen/sun4i-ts.c