diff for duplicates of <20130918151746.GA17065@roeck-us.net> diff --git a/a/1.txt b/N1/1.txt index 74d6f79..d8fd453 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -11,10 +11,10 @@ On Wed, Sep 18, 2013 at 10:29:09AM -0400, Eduardo Valentin wrote: > >>>> a thermal zone for this sensor is present inside the tmp102 DT > >>>> node. Otherwise, the driver behavior will be the same. > >>>> -> >>>> Cc: Jean Delvare <khali@linux-fr.org> Cc: Guenter Roeck -> >>>> <linux@roeck-us.net> Cc: lm-sensors@lm-sensors.org Cc: -> >>>> linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin -> >>>> <eduardo.valentin@ti.com> --- drivers/hwmon/tmp102.c | 28 +> >>>> Cc: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> Cc: Guenter Roeck +> >>>> <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> Cc: lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Cc: +> >>>> linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Signed-off-by: Eduardo Valentin +> >>>> <eduardo.valentin-l0cyMroinI0@public.gmane.org> --- drivers/hwmon/tmp102.c | 28 > >>>> ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) > >>>> > >>>> diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c @@ -35,7 +35,8 @@ On Wed, Sep 18, 2013 at 10:29:09AM -0400, Eduardo Valentin wrote: > >>>> tmp102; } > >>>> > >>>> +static int tmp102_read_temp(void *dev, long *temp) +{ + -> >>>> struct tmp102 *tmp102 > >>>> tmp102_update_device(to_i2c_client(dev)); + + if +> >>>> struct tmp102 *tmp102 = +> >>>> tmp102_update_device(to_i2c_client(dev)); + + if > >>>> (tmp102->temp[0] < 0) + dev_warn(tmp102->hwmon_dev, + > >>>> "operating in negative temp: %d\n", tmp102->temp[0]); + > >>> @@ -123,7 +124,8 @@ On Wed, Sep 18, 2013 at 10:29:09AM -0400, Eduardo Valentin wrote: > - if (IS_ERR(tmp102->tz)) > - tmp102->tz = NULL; > + if ((of_find_property(client->dev.of_node, "#sensor-cells", NULL)) { -> + tmp102->tz > thermal_zone_of_sensor_register(&client->dev, 0, +> + tmp102->tz = +> thermal_zone_of_sensor_register(&client->dev, 0, > + &client->dev, > + > tmp102_read_temp, NULL); @@ -149,8 +151,7 @@ Also, I think you'll need to create devicetree bindings documents for the two sensors. Guenter - -_______________________________________________ -lm-sensors mailing list -lm-sensors@lm-sensors.org -http://lists.lm-sensors.org/mailman/listinfo/lm-sensors +-- +To unsubscribe from this list: send the line "unsubscribe devicetree" in +the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org +More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/a/content_digest b/N1/content_digest index 144963d..72552bc 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -5,9 +5,9 @@ "ref\020130918111849.GA9148@roeck-us.net\0" "ref\05239B8B5.6050702@ti.com\0" "ref\05239B8B5.6050702-l0cyMroinI0@public.gmane.org\0" - "From\0Guenter Roeck <linux@roeck-us.net>\0" - "Subject\0Re: [lm-sensors] [PATCH 06/16] hwmon: tmp102: expose to thermal fw via DT nodes\0" - "Date\0Wed, 18 Sep 2013 15:17:46 +0000\0" + "From\0Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>\0" + "Subject\0Re: [PATCH 06/16] hwmon: tmp102: expose to thermal fw via DT nodes\0" + "Date\0Wed, 18 Sep 2013 08:17:46 -0700\0" "To\0Eduardo Valentin <eduardo.valentin-l0cyMroinI0@public.gmane.org>\0" "Cc\0devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org <devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>" " lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org <lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org>\0" @@ -26,10 +26,10 @@ "> >>>> a thermal zone for this sensor is present inside the tmp102 DT\n" "> >>>> node. Otherwise, the driver behavior will be the same.\n" "> >>>> \n" - "> >>>> Cc: Jean Delvare <khali@linux-fr.org> Cc: Guenter Roeck\n" - "> >>>> <linux@roeck-us.net> Cc: lm-sensors@lm-sensors.org Cc:\n" - "> >>>> linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin\n" - "> >>>> <eduardo.valentin@ti.com> --- drivers/hwmon/tmp102.c | 28\n" + "> >>>> Cc: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> Cc: Guenter Roeck\n" + "> >>>> <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> Cc: lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org Cc:\n" + "> >>>> linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Signed-off-by: Eduardo Valentin\n" + "> >>>> <eduardo.valentin-l0cyMroinI0@public.gmane.org> --- drivers/hwmon/tmp102.c | 28\n" "> >>>> ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+)\n" "> >>>> \n" "> >>>> diff --git a/drivers/hwmon/tmp102.c b/drivers/hwmon/tmp102.c \n" @@ -50,7 +50,8 @@ "> >>>> tmp102; }\n" "> >>>> \n" "> >>>> +static int tmp102_read_temp(void *dev, long *temp) +{ +\n" - "> >>>> struct tmp102 *tmp102 > >>>> tmp102_update_device(to_i2c_client(dev)); + + if\n" + "> >>>> struct tmp102 *tmp102 =\n" + "> >>>> tmp102_update_device(to_i2c_client(dev)); + + if\n" "> >>>> (tmp102->temp[0] < 0) + dev_warn(tmp102->hwmon_dev, +\n" "> >>>> \"operating in negative temp: %d\\n\", tmp102->temp[0]); +\n" "> >>> \n" @@ -138,7 +139,8 @@ "> - if (IS_ERR(tmp102->tz))\n" "> - tmp102->tz = NULL;\n" "> + if ((of_find_property(client->dev.of_node, \"#sensor-cells\", NULL)) {\n" - "> + tmp102->tz > thermal_zone_of_sensor_register(&client->dev, 0,\n" + "> + tmp102->tz =\n" + "> thermal_zone_of_sensor_register(&client->dev, 0,\n" "> + &client->dev,\n" "> +\n" "> tmp102_read_temp, NULL);\n" @@ -164,10 +166,9 @@ "for the two sensors.\n" "\n" "Guenter\n" - "\n" - "_______________________________________________\n" - "lm-sensors mailing list\n" - "lm-sensors@lm-sensors.org\n" - http://lists.lm-sensors.org/mailman/listinfo/lm-sensors + "--\n" + "To unsubscribe from this list: send the line \"unsubscribe devicetree\" in\n" + "the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org\n" + More majordomo info at http://vger.kernel.org/majordomo-info.html -e7540423d12d087b8cf37c49f2c2882e872da4a6c4828074b4c967e744f9a8e3 +77697414878690cfc094b6b0edc8b7e198dff4148488f1517a8c05c163950ae6
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.