Message ID | 1425934582-7556-6-git-send-email-clg@fr.ibm.com |
---|---|
State | Accepted |
Headers | show |
diff --git a/hw/dts.c b/hw/dts.c index 1ac3aad50905..a936ee1bb12b 100644 --- a/hw/dts.c +++ b/hw/dts.c @@ -203,6 +203,7 @@ bool dts_sensor_create_nodes(struct dt_node *sensors) handler = sensor_make_handler(sensor_class, c->pir, SENSOR_DTS_ATTR_TEMP_TRIP); dt_add_property_cells(node, "sensor-status", handler); + dt_add_property_string(node, "sensor-type", "temp"); } }
The hwmon framework in Linux needs a type for the sensors it exposes in userspace through the sysfs interface. This patch gives Linux a hand on what is dealing with when parsing the sensor device tree. Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> --- Changes since v2 : - removed the device tree modifications of the FSP sensors hw/dts.c | 1 + 1 file changed, 1 insertion(+)