diff for duplicates of <87li6bmjwi.fsf@natisbad.org> diff --git a/a/1.txt b/N1/1.txt index 3c7fa39..aa32d07 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -149,7 +149,7 @@ index 0000000..25cc6d8 + } + } + -+ g762: g762@3e { ++ g762: g762 at 3e { + compatible = "gmt,g762"; + reg = <0x3e>; + clocks = <&g762_clk> @@ -164,7 +164,7 @@ index 0000000..923db9c +++ b/Documentation/hwmon/g762 @@ -0,0 +1,65 @@ +Kernel driver g762 -+========= ++================== + +The GMT G762 Fan Speed PWM Controller is connected directly to a fan +and performs closed-loop or open-loop control of the fan speed. Two @@ -451,7 +451,7 @@ index 0000000..e9da8e7 +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); @@ -704,7 +704,7 @@ index 0000000..e9da8e7 + * only in PWM mode). To workaround this bug, we give SET_CNT + * value of 254 if it is 255 when switching to open-loop. + */ -+ if (data->set_cnt = 0xff) ++ if (data->set_cnt == 0xff) + i2c_smbus_write_byte_data(client, G762_REG_SET_CNT, + 254); + break; @@ -920,7 +920,7 @@ index 0000000..e9da8e7 + u32 pval; + + prop = of_get_property(client->dev.of_node, pname, &len); -+ if (prop && len = sizeof(u32)) { ++ if (prop && len == sizeof(u32)) { + pval = be32_to_cpu(prop[0]); + dev_dbg(&client->dev, "found %s (%d)\n", pname, pval); + } else { @@ -1153,7 +1153,7 @@ index 0000000..e9da8e7 + * Following documentation about hwmon's sysfs interface, a pwm1_enable node + * should accept followings: + * -+ * 0 : no fan speed control (i.e. fan at full speed) ++ * 0 : no fan speed control (i.e. fan@full speed) + * 1 : manual fan speed control enabled (use pwm[1-*]) (open-loop) + * 2+: automatic fan speed control enabled (use fan[1-*]_target) (closed-loop) + * @@ -1192,7 +1192,7 @@ index 0000000..e9da8e7 +/* + * Read and write functions for pwm1 sysfs file. Get and set pwm value + * (which affects fan speed) in open-loop mode. 0 stops the fan and 255 -+ * makes it run at full speed. ++ * makes it run@full speed. + */ +static ssize_t get_pwm(struct device *dev, struct device_attribute *da, + char *buf) @@ -1446,10 +1446,3 @@ index 0000000..d3c5128 +#endif /* __LINUX_PLATFORM_DATA_G762_H__ */ -- 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 577da86..5cabb87 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,20 +1,7 @@ "From\0arno@natisbad.org (Arnaud Ebalard)\0" - "Subject\0[lm-sensors] [PATCHv4 1/1] Add support for GMT G762/G763 PWM fan controllers\0" - "Date\0Sat, 15 Jun 2013 16:13:49 +0000\0" - "To\0Guenter Roeck <linux@roeck-us.net>\0" - "Cc\0Andrew Lunn <andrew@lunn.ch>" - Russell King - ARM Linux <linux@arm.linux.org.uk> - Jason Cooper <jason@lakedaemon.net> - linux-doc@vger.kernel.org - devicetree-discuss@lists.ozlabs.org - Olivier Mouchet <olivier.mouchet@gmail.com> - Rob Herring <rob.herring@calxeda.com> - lm-sensors@lm-sensors.org - Grant Likely <grant.likely@secretlab.ca> - Rob Landley <rob@landley.net> - Jean Delvare <khali@linux-fr.org> - Linux ARM Kernel Mailing List <linux-arm-kernel@lists.infradead.org> - " Simon Guinot <simon.guinot@sequanux.org>\0" + "Subject\0[PATCHv4 1/1] Add support for GMT G762/G763 PWM fan controllers\0" + "Date\0Sat, 15 Jun 2013 18:13:49 +0200\0" + "To\0linux-arm-kernel@lists.infradead.org\0" "\00:1\0" "b\0" "\n" @@ -168,7 +155,7 @@ "+\t}\n" "+ }\n" "+\n" - "+ g762: g762@3e {\n" + "+ g762: g762 at 3e {\n" "+\tcompatible = \"gmt,g762\";\n" "+\treg = <0x3e>;\n" "+\tclocks = <&g762_clk>\n" @@ -183,7 +170,7 @@ "+++ b/Documentation/hwmon/g762\n" "@@ -0,0 +1,65 @@\n" "+Kernel driver g762\n" - "+=========\n" + "+==================\n" "+\n" "+The GMT G762 Fan Speed PWM Controller is connected directly to a fan\n" "+and performs closed-loop or open-loop control of the fan speed. Two\n" @@ -470,7 +457,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" @@ -723,7 +710,7 @@ "+\t\t * only in PWM mode). To workaround this bug, we give SET_CNT\n" "+\t\t * value of 254 if it is 255 when switching to open-loop.\n" "+\t\t */\n" - "+\t\tif (data->set_cnt = 0xff)\n" + "+\t\tif (data->set_cnt == 0xff)\n" "+\t\t\ti2c_smbus_write_byte_data(client, G762_REG_SET_CNT,\n" "+\t\t\t\t\t\t 254);\n" "+\t\tbreak;\n" @@ -939,7 +926,7 @@ "+\tu32 pval;\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\tpval = be32_to_cpu(prop[0]);\n" "+\t\tdev_dbg(&client->dev, \"found %s (%d)\\n\", pname, pval);\n" "+\t} else {\n" @@ -1172,7 +1159,7 @@ "+ * Following documentation about hwmon's sysfs interface, a pwm1_enable node\n" "+ * should accept followings:\n" "+ *\n" - "+ * 0 : no fan speed control (i.e. fan at full speed)\n" + "+ * 0 : no fan speed control (i.e. fan@full speed)\n" "+ * 1 : manual fan speed control enabled (use pwm[1-*]) (open-loop)\n" "+ * 2+: automatic fan speed control enabled (use fan[1-*]_target) (closed-loop)\n" "+ *\n" @@ -1211,7 +1198,7 @@ "+/*\n" "+ * Read and write functions for pwm1 sysfs file. Get and set pwm value\n" "+ * (which affects fan speed) in open-loop mode. 0 stops the fan and 255\n" - "+ * makes it run at full speed.\n" + "+ * makes it run@full speed.\n" "+ */\n" "+static ssize_t get_pwm(struct device *dev, struct device_attribute *da,\n" "+\t\t char *buf)\n" @@ -1464,13 +1451,6 @@ "+\n" "+#endif /* __LINUX_PLATFORM_DATA_G762_H__ */\n" "-- \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 + 1.7.10.4 -9201e0e49a69f0da6c9be56c7707227a5c8e42ec38b5e3559117ba8902ae0aa6 +8fe5fe04b38f8b935c9acc454e5e78de81a6fd0fd594562e5dcae4e3a2acf56f
diff --git a/a/1.txt b/N2/1.txt index 3c7fa39..4e83dde 100644 --- a/a/1.txt +++ b/N2/1.txt @@ -164,7 +164,7 @@ index 0000000..923db9c +++ b/Documentation/hwmon/g762 @@ -0,0 +1,65 @@ +Kernel driver g762 -+========= ++================== + +The GMT G762 Fan Speed PWM Controller is connected directly to a fan +and performs closed-loop or open-loop control of the fan speed. Two @@ -451,7 +451,7 @@ index 0000000..e9da8e7 +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); @@ -704,7 +704,7 @@ index 0000000..e9da8e7 + * only in PWM mode). To workaround this bug, we give SET_CNT + * value of 254 if it is 255 when switching to open-loop. + */ -+ if (data->set_cnt = 0xff) ++ if (data->set_cnt == 0xff) + i2c_smbus_write_byte_data(client, G762_REG_SET_CNT, + 254); + break; @@ -920,7 +920,7 @@ index 0000000..e9da8e7 + u32 pval; + + prop = of_get_property(client->dev.of_node, pname, &len); -+ if (prop && len = sizeof(u32)) { ++ if (prop && len == sizeof(u32)) { + pval = be32_to_cpu(prop[0]); + dev_dbg(&client->dev, "found %s (%d)\n", pname, pval); + } else { @@ -1446,10 +1446,3 @@ index 0000000..d3c5128 +#endif /* __LINUX_PLATFORM_DATA_G762_H__ */ -- 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 577da86..4f6a154 100644 --- a/a/content_digest +++ b/N2/content_digest @@ -1,6 +1,6 @@ "From\0arno@natisbad.org (Arnaud Ebalard)\0" - "Subject\0[lm-sensors] [PATCHv4 1/1] Add support for GMT G762/G763 PWM fan controllers\0" - "Date\0Sat, 15 Jun 2013 16:13:49 +0000\0" + "Subject\0[PATCHv4 1/1] Add support for GMT G762/G763 PWM fan controllers\0" + "Date\0Sat, 15 Jun 2013 18:13:49 +0200\0" "To\0Guenter Roeck <linux@roeck-us.net>\0" "Cc\0Andrew Lunn <andrew@lunn.ch>" Russell King - ARM Linux <linux@arm.linux.org.uk> @@ -183,7 +183,7 @@ "+++ b/Documentation/hwmon/g762\n" "@@ -0,0 +1,65 @@\n" "+Kernel driver g762\n" - "+=========\n" + "+==================\n" "+\n" "+The GMT G762 Fan Speed PWM Controller is connected directly to a fan\n" "+and performs closed-loop or open-loop control of the fan speed. Two\n" @@ -470,7 +470,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" @@ -723,7 +723,7 @@ "+\t\t * only in PWM mode). To workaround this bug, we give SET_CNT\n" "+\t\t * value of 254 if it is 255 when switching to open-loop.\n" "+\t\t */\n" - "+\t\tif (data->set_cnt = 0xff)\n" + "+\t\tif (data->set_cnt == 0xff)\n" "+\t\t\ti2c_smbus_write_byte_data(client, G762_REG_SET_CNT,\n" "+\t\t\t\t\t\t 254);\n" "+\t\tbreak;\n" @@ -939,7 +939,7 @@ "+\tu32 pval;\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\tpval = be32_to_cpu(prop[0]);\n" "+\t\tdev_dbg(&client->dev, \"found %s (%d)\\n\", pname, pval);\n" "+\t} else {\n" @@ -1464,13 +1464,6 @@ "+\n" "+#endif /* __LINUX_PLATFORM_DATA_G762_H__ */\n" "-- \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 + 1.7.10.4 -9201e0e49a69f0da6c9be56c7707227a5c8e42ec38b5e3559117ba8902ae0aa6 +f595d8418d3f0a9286c2f56b2ae5cd2f012243fed04213aeaabf168e9c6cc23b
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.