From 42345ef5c60108fc7d74009d73e8ed880e04072c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Mon, 9 Mar 2015 21:56:16 +0100 Subject: dts: add a type property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Stewart Smith --- hw/dts.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/dts.c') diff --git a/hw/dts.c b/hw/dts.c index 4a4259a..0ae6d23 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"); } } -- cgit v1.1