thermal: rockchip: better to compatible the driver for different SoCs
authorCaesar Wang <wxt@rock-chips.com>
Thu, 5 Nov 2015 05:17:58 +0000 (13:17 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Thu, 12 Nov 2015 18:00:10 +0000 (10:00 -0800)
commit1d98b618cc0d8d65650ac0de88c93c98013b1166
treeec0d1dfacba9d20f58add946017cc0096121c970
parenta519c27da6e8a4e74df2fde5654ea9a42dda9fcb
thermal: rockchip: better to compatible the driver for different SoCs

The current driver is default to register the two thermal sensors
in probe since some SoCs maybe only have one sensor for thermal.

In some cases, the channel 0 is not always the cpu or gpu sensor.
So add the channel can be configured for sensors.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rockchip_thermal.c