aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>2017-10-19 12:38:23 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-12-13 22:04:58 -0600
commit275efcc44fdad3572e6180f625d356c8b7cca68d (patch)
treeba9daf09f6f93f79a8744ddc3f04c808059e13b4 /hw
parent11c76c67cb9bfe598e34c60c8c352a8b64b828ce (diff)
downloadskiboot-275efcc44fdad3572e6180f625d356c8b7cca68d.zip
skiboot-275efcc44fdad3572e6180f625d356c8b7cca68d.tar.gz
skiboot-275efcc44fdad3572e6180f625d356c8b7cca68d.tar.bz2
sensors: occ: Skip counter type of sensors
Don't add counter type of sensors to device-tree as they don't fit into hwmon sensor interface. Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/occ-sensor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/occ-sensor.c b/hw/occ-sensor.c
index cb706a5..cb05f7c 100644
--- a/hw/occ-sensor.c
+++ b/hw/occ-sensor.c
@@ -598,6 +598,9 @@ void occ_sensors_init(void)
struct cpu_thread *c = NULL;
u32 handler;
+ if (md[i].structure_type != OCC_SENSOR_READING_FULL)
+ continue;
+
if (!(md[i].type & HWMON_SENSORS_MASK))
continue;