diff for duplicates of <20130611151123.GA10221@roeck-us.net> diff --git a/a/1.txt b/N1/1.txt index c0ebf19..9dd02f7 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -240,7 +240,7 @@ Unused defines. > +static inline unsigned int rpm_from_cnt(u8 cnt, u32 clk, u16 p, > + u8 clk_div, u8 gear_mult) > +{ -> + if (cnt = 0xff) /* cnt to 255 stops the fan */ +> + if (cnt == 0xff) /* cnt to 255 stops the fan */ > + return 0; > + > + return (clk * 30 * gear_mult) / ((cnt ? cnt : 1) * p * clk_div); @@ -788,7 +788,7 @@ Please don't hide the original error code. > + int len; > + > + prop = of_get_property(client->dev.of_node, pname, &len); -> + if (prop && len = sizeof(u32)) { +> + if (prop && len == sizeof(u32)) { > + *dest = G762_ATTR_VAL(be32_to_cpu(prop[0])); > + dev_dbg(&client->dev, "found %s (%d)\n", pname, *dest); > + } @@ -1285,9 +1285,4 @@ Unnecessary typecast. > -- > 1.7.10.4 > -> - -_______________________________________________ -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 ba5921e..fbaea7e 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,22 +1,9 @@ "ref\0cover.1370327864.git.arno@natisbad.org\0" "ref\04143a04cb797c2313d2d92bbf30c16c493df80e0.1370327864.git.arno@natisbad.org\0" - "From\0Guenter Roeck <linux@roeck-us.net>\0" - "Subject\0Re: [lm-sensors] [PATCHv4 1/3] Add support for GMT G762/G763 PWM fan controller\0" - "Date\0Tue, 11 Jun 2013 15:11:23 +0000\0" - "To\0Arnaud Ebalard <arno@natisbad.org>\0" - "Cc\0Jean Delvare <khali@linux-fr.org>" - Grant Likely <grant.likely@secretlab.ca> - Rob Herring <rob.herring@calxeda.com> - lm-sensors@lm-sensors.org - devicetree-discuss@lists.ozlabs.org - Rob Landley <rob@landley.net> - linux-doc@vger.kernel.org - Linux ARM Kernel Mailing List <linux-arm-kernel@lists.infradead.org> - Russell King - ARM Linux <linux@arm.linux.org.uk> - Andrew Lunn <andrew@lunn.ch> - Jason Cooper <jason@lakedaemon.net> - Simon Guinot <simon.guinot@sequanux.org> - " Olivier Mouchet <olivier.mouchet@gmail.com>\0" + "From\0linux@roeck-us.net (Guenter Roeck)\0" + "Subject\0[PATCHv4 1/3] Add support for GMT G762/G763 PWM fan controller\0" + "Date\0Tue, 11 Jun 2013 08:11:23 -0700\0" + "To\0linux-arm-kernel@lists.infradead.org\0" "\00:1\0" "b\0" "On Tue, Jun 04, 2013 at 09:14:29AM +0200, Arnaud Ebalard wrote:\n" @@ -261,7 +248,7 @@ "> +static inline unsigned int rpm_from_cnt(u8 cnt, u32 clk, u16 p,\n" "> +\t\t\t\t\tu8 clk_div, u8 gear_mult)\n" "> +{\n" - "> +\tif (cnt = 0xff) /* cnt to 255 stops the fan */\n" + "> +\tif (cnt == 0xff) /* cnt to 255 stops the fan */\n" "> +\t\treturn 0;\n" "> +\n" "> +\treturn (clk * 30 * gear_mult) / ((cnt ? cnt : 1) * p * clk_div);\n" @@ -809,7 +796,7 @@ "> +\tint len;\n" "> +\n" "> +\tprop = of_get_property(client->dev.of_node, pname, &len);\n" - "> +\tif (prop && len = sizeof(u32)) {\n" + "> +\tif (prop && len == sizeof(u32)) {\n" "> +\t\t*dest = G762_ATTR_VAL(be32_to_cpu(prop[0]));\n" "> +\t\tdev_dbg(&client->dev, \"found %s (%d)\\n\", pname, *dest);\n" "> +\t}\n" @@ -1306,11 +1293,6 @@ "> -- \n" "> 1.7.10.4\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 + > -80b59e4a9358b5b8057e387642292386c76ec5af6b00c1f142c9a107d2727458 +562712b361fc6e34703f8287289e6297c8d1628d35a1bc895e6233b645881eb7
diff --git a/a/1.txt b/N2/1.txt index c0ebf19..9dd02f7 100644 --- a/a/1.txt +++ b/N2/1.txt @@ -240,7 +240,7 @@ Unused defines. > +static inline unsigned int rpm_from_cnt(u8 cnt, u32 clk, u16 p, > + u8 clk_div, u8 gear_mult) > +{ -> + if (cnt = 0xff) /* cnt to 255 stops the fan */ +> + if (cnt == 0xff) /* cnt to 255 stops the fan */ > + return 0; > + > + return (clk * 30 * gear_mult) / ((cnt ? cnt : 1) * p * clk_div); @@ -788,7 +788,7 @@ Please don't hide the original error code. > + int len; > + > + prop = of_get_property(client->dev.of_node, pname, &len); -> + if (prop && len = sizeof(u32)) { +> + if (prop && len == sizeof(u32)) { > + *dest = G762_ATTR_VAL(be32_to_cpu(prop[0])); > + dev_dbg(&client->dev, "found %s (%d)\n", pname, *dest); > + } @@ -1285,9 +1285,4 @@ Unnecessary typecast. > -- > 1.7.10.4 > -> - -_______________________________________________ -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/N2/content_digest index ba5921e..adc736a 100644 --- a/a/content_digest +++ b/N2/content_digest @@ -1,8 +1,8 @@ "ref\0cover.1370327864.git.arno@natisbad.org\0" "ref\04143a04cb797c2313d2d92bbf30c16c493df80e0.1370327864.git.arno@natisbad.org\0" "From\0Guenter Roeck <linux@roeck-us.net>\0" - "Subject\0Re: [lm-sensors] [PATCHv4 1/3] Add support for GMT G762/G763 PWM fan controller\0" - "Date\0Tue, 11 Jun 2013 15:11:23 +0000\0" + "Subject\0Re: [PATCHv4 1/3] Add support for GMT G762/G763 PWM fan controller\0" + "Date\0Tue, 11 Jun 2013 08:11:23 -0700\0" "To\0Arnaud Ebalard <arno@natisbad.org>\0" "Cc\0Jean Delvare <khali@linux-fr.org>" Grant Likely <grant.likely@secretlab.ca> @@ -261,7 +261,7 @@ "> +static inline unsigned int rpm_from_cnt(u8 cnt, u32 clk, u16 p,\n" "> +\t\t\t\t\tu8 clk_div, u8 gear_mult)\n" "> +{\n" - "> +\tif (cnt = 0xff) /* cnt to 255 stops the fan */\n" + "> +\tif (cnt == 0xff) /* cnt to 255 stops the fan */\n" "> +\t\treturn 0;\n" "> +\n" "> +\treturn (clk * 30 * gear_mult) / ((cnt ? cnt : 1) * p * clk_div);\n" @@ -809,7 +809,7 @@ "> +\tint len;\n" "> +\n" "> +\tprop = of_get_property(client->dev.of_node, pname, &len);\n" - "> +\tif (prop && len = sizeof(u32)) {\n" + "> +\tif (prop && len == sizeof(u32)) {\n" "> +\t\t*dest = G762_ATTR_VAL(be32_to_cpu(prop[0]));\n" "> +\t\tdev_dbg(&client->dev, \"found %s (%d)\\n\", pname, *dest);\n" "> +\t}\n" @@ -1306,11 +1306,6 @@ "> -- \n" "> 1.7.10.4\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 + > -80b59e4a9358b5b8057e387642292386c76ec5af6b00c1f142c9a107d2727458 +bd9e403826c6acd0a165dd9ebf8fe0570ba7bf9e11289a6e3d08a9f7bb0decc1
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.