diff for duplicates of <5253AFD2.2010405@nvidia.com> diff --git a/a/1.txt b/N1/1.txt index e6f4800..70f8f59 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -10,7 +10,7 @@ On 10/08/2013 03:04 PM, Wei Ni wrote: > and write_tempx, then set_temp8 and set_temp11 could return it > to user-space. > -> Signed-off-by: Wei Ni <wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> +> Signed-off-by: Wei Ni <wni@nvidia.com> > --- > drivers/hwmon/lm90.c | 166 ++++++++++++++++++++++++++++++++++---------------- > 1 file changed, 113 insertions(+), 53 deletions(-) @@ -31,7 +31,7 @@ On 10/08/2013 03:04 PM, Wei Ni wrote: > u8 config; > + int err; > -> if (data->kind == max6696) { +> if (data->kind = max6696) { > lm90_read_reg(client, LM90_REG_R_CONFIG1, &config); > config &= ~0x08; > if (channel) @@ -64,10 +64,10 @@ On 10/08/2013 03:04 PM, Wei Ni wrote: > struct lm90_data *data = lm90_update_device(dev); > int temp; > -> if (data->kind == adt7461) +> if (data->kind = adt7461) > - temp = temp_from_u8_adt7461(data, data->temp8[attr->index]); > + temp = temp_from_u8_adt7461(data, data->temp8[index]); -> else if (data->kind == max6646) +> else if (data->kind = max6646) > - temp = temp_from_u8(data->temp8[attr->index]); > + temp = temp_from_u8(data->temp8[index]); > else @@ -75,8 +75,8 @@ On 10/08/2013 03:04 PM, Wei Ni wrote: > + temp = temp_from_s8(data->temp8[index]); > > /* +16 degrees offset for temp2 for the LM99 */ -> - if (data->kind == lm99 && attr->index == 3) -> + if (data->kind == lm99 && index == 3) +> - if (data->kind = lm99 && attr->index = 3) +> + if (data->kind = lm99 && index = 3) > temp += 16000; > > - return sprintf(buf, "%d\n", temp); @@ -113,15 +113,15 @@ On 10/08/2013 03:04 PM, Wei Ni wrote: > - return err; > - > /* +16 degrees offset for temp2 for the LM99 */ -> - if (data->kind == lm99 && attr->index == 3) -> + if (data->kind == lm99 && index == 3) +> - if (data->kind = lm99 && attr->index = 3) +> + if (data->kind = lm99 && index = 3) > val -= 16000; > > mutex_lock(&data->update_lock); -> if (data->kind == adt7461) +> if (data->kind = adt7461) > - data->temp8[nr] = temp_to_u8_adt7461(data, val); > + data->temp8[index] = temp_to_u8_adt7461(data, val); -> else if (data->kind == max6646) +> else if (data->kind = max6646) > - data->temp8[nr] = temp_to_u8(val); > + data->temp8[index] = temp_to_u8(val); > else @@ -169,10 +169,10 @@ On 10/08/2013 03:04 PM, Wei Ni wrote: > struct lm90_data *data = lm90_update_device(dev); > int temp; > -> if (data->kind == adt7461) +> if (data->kind = adt7461) > - temp = temp_from_u16_adt7461(data, data->temp11[attr->index]); > + temp = temp_from_u16_adt7461(data, data->temp11[index]); -> else if (data->kind == max6646) +> else if (data->kind = max6646) > - temp = temp_from_u16(data->temp11[attr->index]); > + temp = temp_from_u16(data->temp11[index]); > else @@ -180,8 +180,8 @@ On 10/08/2013 03:04 PM, Wei Ni wrote: > + temp = temp_from_s16(data->temp11[index]); > > /* +16 degrees offset for temp2 for the LM99 */ -> - if (data->kind == lm99 && attr->index <= 2) -> + if (data->kind == lm99 && index <= 2) +> - if (data->kind = lm99 && attr->index <= 2) +> + if (data->kind = lm99 && index <= 2) > temp += 16000; > > - return sprintf(buf, "%d\n", temp); @@ -219,7 +219,7 @@ On 10/08/2013 03:04 PM, Wei Ni wrote: > - return err; > - > /* +16 degrees offset for temp2 for the LM99 */ -> if (data->kind == lm99 && index <= 2) +> if (data->kind = lm99 && index <= 2) > val -= 16000; > @@ -832,15 +857,50 @@ static ssize_t set_temp11(struct device *dev, struct device_attribute *devattr, > else @@ -279,4 +279,10 @@ On 10/08/2013 03:04 PM, Wei Ni wrote: > return count; > } > -> +> + + +_______________________________________________ +lm-sensors mailing list +lm-sensors@lm-sensors.org +http://lists.lm-sensors.org/mailman/listinfo/lm-sensors diff --git a/a/content_digest b/N1/content_digest index b3684d0..e5b39fa 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,8 +1,8 @@ "ref\01381215866-20608-1-git-send-email-wni@nvidia.com\0" "ref\01381215866-20608-1-git-send-email-wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org\0" - "From\0Wei Ni <wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>\0" - "Subject\0Re: [PATCH v5] hwmon: (lm90) split set&show temp as common codes\0" - "Date\0Tue, 8 Oct 2013 15:10:10 +0800\0" + "From\0Wei Ni <wni@nvidia.com>\0" + "Subject\0Re: [lm-sensors] [PATCH v5] hwmon: (lm90) split set&show temp as common codes\0" + "Date\0Tue, 08 Oct 2013 07:10:10 +0000\0" "To\0Wei Ni <wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>\0" "Cc\0khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>" linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org> @@ -22,7 +22,7 @@ "> and write_tempx, then set_temp8 and set_temp11 could return it\n" "> to user-space.\n" "> \n" - "> Signed-off-by: Wei Ni <wni-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>\n" + "> Signed-off-by: Wei Ni <wni@nvidia.com>\n" "> ---\n" "> drivers/hwmon/lm90.c | 166 ++++++++++++++++++++++++++++++++++----------------\n" "> 1 file changed, 113 insertions(+), 53 deletions(-)\n" @@ -43,7 +43,7 @@ "> \tu8 config;\n" "> +\tint err;\n" "> \n" - "> \tif (data->kind == max6696) {\n" + "> \tif (data->kind = max6696) {\n" "> \t\tlm90_read_reg(client, LM90_REG_R_CONFIG1, &config);\n" "> \t\tconfig &= ~0x08;\n" "> \t\tif (channel)\n" @@ -76,10 +76,10 @@ "> \tstruct lm90_data *data = lm90_update_device(dev);\n" "> \tint temp;\n" "> \n" - "> \tif (data->kind == adt7461)\n" + "> \tif (data->kind = adt7461)\n" "> -\t\ttemp = temp_from_u8_adt7461(data, data->temp8[attr->index]);\n" "> +\t\ttemp = temp_from_u8_adt7461(data, data->temp8[index]);\n" - "> \telse if (data->kind == max6646)\n" + "> \telse if (data->kind = max6646)\n" "> -\t\ttemp = temp_from_u8(data->temp8[attr->index]);\n" "> +\t\ttemp = temp_from_u8(data->temp8[index]);\n" "> \telse\n" @@ -87,8 +87,8 @@ "> +\t\ttemp = temp_from_s8(data->temp8[index]);\n" "> \n" "> \t/* +16 degrees offset for temp2 for the LM99 */\n" - "> -\tif (data->kind == lm99 && attr->index == 3)\n" - "> +\tif (data->kind == lm99 && index == 3)\n" + "> -\tif (data->kind = lm99 && attr->index = 3)\n" + "> +\tif (data->kind = lm99 && index = 3)\n" "> \t\ttemp += 16000;\n" "> \n" "> -\treturn sprintf(buf, \"%d\\n\", temp);\n" @@ -125,15 +125,15 @@ "> -\t\treturn err;\n" "> -\n" "> \t/* +16 degrees offset for temp2 for the LM99 */\n" - "> -\tif (data->kind == lm99 && attr->index == 3)\n" - "> +\tif (data->kind == lm99 && index == 3)\n" + "> -\tif (data->kind = lm99 && attr->index = 3)\n" + "> +\tif (data->kind = lm99 && index = 3)\n" "> \t\tval -= 16000;\n" "> \n" "> \tmutex_lock(&data->update_lock);\n" - "> \tif (data->kind == adt7461)\n" + "> \tif (data->kind = adt7461)\n" "> -\t\tdata->temp8[nr] = temp_to_u8_adt7461(data, val);\n" "> +\t\tdata->temp8[index] = temp_to_u8_adt7461(data, val);\n" - "> \telse if (data->kind == max6646)\n" + "> \telse if (data->kind = max6646)\n" "> -\t\tdata->temp8[nr] = temp_to_u8(val);\n" "> +\t\tdata->temp8[index] = temp_to_u8(val);\n" "> \telse\n" @@ -181,10 +181,10 @@ "> \tstruct lm90_data *data = lm90_update_device(dev);\n" "> \tint temp;\n" "> \n" - "> \tif (data->kind == adt7461)\n" + "> \tif (data->kind = adt7461)\n" "> -\t\ttemp = temp_from_u16_adt7461(data, data->temp11[attr->index]);\n" "> +\t\ttemp = temp_from_u16_adt7461(data, data->temp11[index]);\n" - "> \telse if (data->kind == max6646)\n" + "> \telse if (data->kind = max6646)\n" "> -\t\ttemp = temp_from_u16(data->temp11[attr->index]);\n" "> +\t\ttemp = temp_from_u16(data->temp11[index]);\n" "> \telse\n" @@ -192,8 +192,8 @@ "> +\t\ttemp = temp_from_s16(data->temp11[index]);\n" "> \n" "> \t/* +16 degrees offset for temp2 for the LM99 */\n" - "> -\tif (data->kind == lm99 && attr->index <= 2)\n" - "> +\tif (data->kind == lm99 && index <= 2)\n" + "> -\tif (data->kind = lm99 && attr->index <= 2)\n" + "> +\tif (data->kind = lm99 && index <= 2)\n" "> \t\ttemp += 16000;\n" "> \n" "> -\treturn sprintf(buf, \"%d\\n\", temp);\n" @@ -231,7 +231,7 @@ "> -\t\treturn err;\n" "> -\n" "> \t/* +16 degrees offset for temp2 for the LM99 */\n" - "> \tif (data->kind == lm99 && index <= 2)\n" + "> \tif (data->kind = lm99 && index <= 2)\n" "> \t\tval -= 16000;\n" "> @@ -832,15 +857,50 @@ static ssize_t set_temp11(struct device *dev, struct device_attribute *devattr,\n" "> \telse\n" @@ -291,6 +291,12 @@ "> \treturn count;\n" "> }\n" "> \n" - > + "> \n" + "\n" + "\n" + "_______________________________________________\n" + "lm-sensors mailing list\n" + "lm-sensors@lm-sensors.org\n" + http://lists.lm-sensors.org/mailman/listinfo/lm-sensors -b27c2d6a3a85ad7cd07d6ad196f191649b818d849fdf09e0b1e90c1e7f838f6a +f9aedcee3bb9db88444aa50d3b417b040888f2f17f9066a6f9e9be670806d136
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.