thermal: armada: Add infrastructure to support generic formulas
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Tue, 6 May 2014 16:59:46 +0000 (13:59 -0300)
committerZhang Rui <rui.zhang@intel.com>
Thu, 15 May 2014 09:12:34 +0000 (17:12 +0800)
commit9484bc62cadd919f072ed1232f25ccc156d8bacf
tree49fe0c96542c23eb8196aa88412cd92d46c30f35
parent66fdb7b63513d92c0ca9ff3a34e5f29b2e018e47
thermal: armada: Add infrastructure to support generic formulas

In order to support other similar SoC, with different sensor
coefficients, this commit adds the coeficients to the per-variant
structure, instead of having the formula 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