OSDN Git Service

thermal: brcmstb_thermal: Prepare to support a different process
authorFlorian Fainelli <f.fainelli@gmail.com>
Tue, 14 Jan 2020 19:06:03 +0000 (11:06 -0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 10:41:08 +0000 (11:41 +0100)
commit8bcda3257acf86b652fb98b7d1ef6bf6c911bd28
tree432c704ddb58d18889378b1cbc4a62f29be8c70e
parente1ff6fc22f19e2af8adbad618526b80067911d40
thermal: brcmstb_thermal: Prepare to support a different process

The driver is currently assuming that it is operating with a 28nm
process chip, which has a specific formula to convert temperature to a
code and vice versa. Update the code to support providing two key
values: offset and multiplier to derive the correct formulas.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200114190607.29339-3-f.fainelli@gmail.com
drivers/thermal/broadcom/brcmstb_thermal.c