]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: armada: Add generic infrastructure to handle the sensor
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 6 May 2014 16:59:47 +0000 (13:59 -0300)
committerZhang Rui <rui.zhang@intel.com>
Thu, 15 May 2014 09:12:46 +0000 (17:12 +0800)
commit352d4f71785cc7973c05523da80ba9d9b0622f30
tree53c8b2b49a7bd2b5a636e59a85bdbbf60637ffb6
parente4a62e494538b84d95b2ae7aa37e33707b70f801
thermal: armada: Add generic infrastructure to handle the sensor

In order to support similar SoC where the sensor value and valid
bit can have different shifts and/or mask, we add such fields to the
per-variant structure, instead of having the values hardcoded.

Acked-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/armada_thermal.c