]> asedeno.scripts.mit.edu Git - linux.git/commit
thermal: rcar_gen3_thermal: record and check number of TSCs found
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 29 Mar 2017 18:43:53 +0000 (20:43 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Fri, 31 Mar 2017 04:42:42 +0000 (21:42 -0700)
commit97dad1f1d2b3f2a2a77551849357b7ac38b0b6ff
tree5813468429ce345662f3be484856d8de1414dbfd
parentd51546c0db975a4750161d17eef62dfcf9eedc90
thermal: rcar_gen3_thermal: record and check number of TSCs found

Record how many TSCs are found in struct rcar_gen3_thermal_priv, this is
needed to be able to add hardware interrupts for trip points later. Also
add a check to make sure at least one TSC is found.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/rcar_gen3_thermal.c