diff for duplicates of <20130918170819.GA26398@roeck-us.net> diff --git a/a/1.txt b/N1/1.txt index 09a5143..d9a1c86 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -15,10 +15,10 @@ On Wed, Sep 18, 2013 at 12:23:31PM -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 @@ -39,7 +39,8 @@ On Wed, Sep 18, 2013 at 12:23:31PM -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]); + > >>>>>>> @@ -127,7 +128,8 @@ On Wed, Sep 18, 2013 at 12:23:31PM -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); @@ -173,8 +175,7 @@ will cause a NULL pointer access if the passed thermal zone is NULL. I'll comment on that separetely in the related patch. 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 47bfded..a7abc46 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -9,9 +9,9 @@ "ref\020130918155732.GA17160@roeck-us.net\0" "ref\05239D383.50009@ti.com\0" "ref\05239D383.50009-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 17:08:19 +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 10:08:19 -0700\0" "To\0Eduardo Valentin <eduardo.valentin-l0cyMroinI0@public.gmane.org>\0" "Cc\0Mark Rutland <Mark.Rutland-5wv7dgnIgG8@public.gmane.org>" Pawel Moll <Pawel.Moll-5wv7dgnIgG8@public.gmane.org> @@ -37,10 +37,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" @@ -61,7 +61,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" @@ -149,7 +150,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" @@ -195,10 +197,9 @@ "I'll comment on that separetely in the related patch.\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 -3b7d48e3e61af993373410dab21afbf243a998b7fd56a85e8d2807cf5c2f73e2 +75432ff563028faeb91f62ef8dba8297be0e48a34a11d8db2af23c63f15d39bb
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.