diff for duplicates of <547B7707.5060708@roeck-us.net> diff --git a/a/1.txt b/N1/1.txt index 2f7a082..105feb8 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -59,7 +59,7 @@ We use standard multi-line comment style in hwmon. > + int i; > + > + for (i = 0; i <= ARRAY_SIZE(ina226_avg_tab); i++) { -> + if (avg = ina226_avg_tab[i]) +> + if (avg == ina226_avg_tab[i]) > + return i; Reads beyond the end of the table. @@ -152,11 +152,11 @@ No. > if (status < 0) > return status; > -> - if (val = 0) +> - if (val == 0) > - return -EINVAL; > + switch (attr->index) { > + case INA2XX_RSHUNT: -> + if (val = 0) +> + if (val == 0) > + return -EINVAL; > > - mutex_lock(&data->update_lock); @@ -221,9 +221,3 @@ ENXIO is inappropriate. > }; > ATTRIBUTE_GROUPS(ina2xx); > - - -_______________________________________________ -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 9d5fba4..a87ecad 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,8 +1,8 @@ "ref\01417082350-23470-1-git-send-email-bgolaszewski@baylibre.com\0" "ref\01417082350-23470-4-git-send-email-bgolaszewski@baylibre.com\0" "From\0Guenter Roeck <linux@roeck-us.net>\0" - "Subject\0Re: [lm-sensors] [PATCH v2 3/5] hwmon: ina2xx: allow to change the averaging rate at run-time\0" - "Date\0Sun, 30 Nov 2014 19:59:03 +0000\0" + "Subject\0Re: [PATCH v2 3/5] hwmon: ina2xx: allow to change the averaging rate at run-time\0" + "Date\0Sun, 30 Nov 2014 11:59:03 -0800\0" "To\0Bartosz Golaszewski <bgolaszewski@baylibre.com>\0" "Cc\0LKML <linux-kernel@vger.kernel.org>" Benoit Cousson <bcousson@baylibre.com> @@ -72,7 +72,7 @@ "> +\tint i;\n" "> +\n" "> +\tfor (i = 0; i <= ARRAY_SIZE(ina226_avg_tab); i++) {\n" - "> +\t\tif (avg = ina226_avg_tab[i])\n" + "> +\t\tif (avg == ina226_avg_tab[i])\n" "> +\t\t\treturn i;\n" "\n" "Reads beyond the end of the table.\n" @@ -165,11 +165,11 @@ "> \tif (status < 0)\n" "> \t\treturn status;\n" ">\n" - "> -\tif (val = 0)\n" + "> -\tif (val == 0)\n" "> -\t\treturn -EINVAL;\n" "> +\tswitch (attr->index) {\n" "> +\tcase INA2XX_RSHUNT:\n" - "> +\t\tif (val = 0)\n" + "> +\t\tif (val == 0)\n" "> +\t\t\treturn -EINVAL;\n" ">\n" "> -\tmutex_lock(&data->update_lock);\n" @@ -233,12 +233,6 @@ "> \tNULL,\n" "> };\n" "> ATTRIBUTE_GROUPS(ina2xx);\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 + > -92982f14e904c4c45800902e83497959d90d71549646714e2068ec1e1b973a93 +f0f8cc638e56d18886fbf537e531209129dab2215ae0a42e49d729c4ea8cda58
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.