diff for duplicates of <3E82024A.4000809@portrix.net> diff --git a/a/1.txt b/N1/1.txt index 4be48fd..a1c525a 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -52,7 +52,7 @@ count, int nr) { + struct via686a_data *data = i2c_get_clientdata(client); + int in_min, in_max, ret; + ret = sscanf(buf, "%d %d", &in_min, &in_max); -+ if (ret = -1) return -EINVAL; ++ if (ret == -1) return -EINVAL; + if (ret >= 1) { + data->in_min[nr] = IN_TO_REG(in_min, nr); + via686a_write_value(client, VIA686A_REG_IN_MIN(nr), data->in_min[nr]); @@ -101,7 +101,7 @@ count, int nr) { + int temp_over, temp_hyst, ret; + printk(buf); + ret = sscanf(buf, "%d %d", &temp_over, &temp_hyst); -+ if (ret = -1) return -EINVAL; ++ if (ret == -1) return -EINVAL; + if (ret >= 1) { + data->temp_over[nr] = TEMP_TO_REG(temp_over); + via686a_write_value(client, VIA686A_REG_TEMP_OVER(nr + 1), @@ -147,7 +147,7 @@ count, int nr) { + struct via686a_data *data = i2c_get_clientdata(client); + int fan_min, ret; + ret = sscanf(buf, "%d", &fan_min); -+ if (ret = -1) return -EINVAL; ++ if (ret == -1) return -EINVAL; + if (ret >= 1) { + data->fan_min[nr] = FAN_TO_REG(fan_min, DIV_FROM_REG(data->fan_div[nr])); + via686a_write_value(client, VIA686A_REG_FAN_MIN(nr+1), @@ -207,7 +207,7 @@ size_t count) { -static void via686a_fan_div(struct i2c_client *client, int operation, - int ctl_name, int *nrels_mag, long *results); + ret = sscanf(buf, "%d %d", &fan_div[0], &fan_div[1]); -+ if (ret = -1) return -EINVAL; ++ if (ret == -1) return -EINVAL; + old = via686a_read_value(client, VIA686A_REG_FANDIV); + if (ret >= 2) { + data->fan_min[1] = DIV_TO_REG(fan_div[1]); @@ -389,12 +389,12 @@ template; - sysctl files. Which function is used is defined in the ctl_table in - the extra1 field. - Each function must return the magnitude (power of 10 to divide the date -- with) if it is called with operation=SENSORS_PROC_REAL_INFO. It must +- with) if it is called with operation==SENSORS_PROC_REAL_INFO. It must - put a maximum of *nrels elements in results reflecting the data of this -- file, and set *nrels to the number it actually put in it, if operation= +- file, and set *nrels to the number it actually put in it, if operation== - SENSORS_PROC_REAL_READ. Finally, it must get upto *nrels elements from - results and write them to the chip, if -operations=SENSORS_PROC_REAL_WRITE. +operations==SENSORS_PROC_REAL_WRITE. - Note that on SENSORS_PROC_REAL_READ, I do not check whether results is - large enough (by checking the incoming value of *nrels). This is not very @@ -408,15 +408,15 @@ ctl_name, - struct via686a_data *data = i2c_get_clientdata(client); - int nr = ctl_name - VIA686A_SYSCTL_IN0; - -- if (operation = SENSORS_PROC_REAL_INFO) +- if (operation == SENSORS_PROC_REAL_INFO) - *nrels_mag = 2; -- else if (operation = SENSORS_PROC_REAL_READ) { +- else if (operation == SENSORS_PROC_REAL_READ) { - via686a_update_client(client); - results[0] = IN_FROM_REG(data->in_min[nr], nr); - results[1] = IN_FROM_REG(data->in_max[nr], nr); - results[2] = IN_FROM_REG(data->in[nr], nr); - *nrels_mag = 3; -- } else if (operation = SENSORS_PROC_REAL_WRITE) { +- } else if (operation == SENSORS_PROC_REAL_WRITE) { - if (*nrels_mag >= 1) { - data->in_min[nr] = IN_TO_REG(results[0], nr); - via686a_write_value(client, VIA686A_REG_IN_MIN(nr), @@ -436,9 +436,9 @@ ctl_name, - struct via686a_data *data = i2c_get_clientdata(client); - int nr = ctl_name - VIA686A_SYSCTL_FAN1 + 1; - -- if (operation = SENSORS_PROC_REAL_INFO) +- if (operation == SENSORS_PROC_REAL_INFO) - *nrels_mag = 0; -- else if (operation = SENSORS_PROC_REAL_READ) { +- else if (operation == SENSORS_PROC_REAL_READ) { - via686a_update_client(client); - results[0] = FAN_FROM_REG(data->fan_min[nr - 1], - DIV_FROM_REG(data->fan_div @@ -446,7 +446,7 @@ ctl_name, - results[1] = FAN_FROM_REG(data->fan[nr - 1], - DIV_FROM_REG(data->fan_div[nr - 1])); - *nrels_mag = 2; -- } else if (operation = SENSORS_PROC_REAL_WRITE) { +- } else if (operation == SENSORS_PROC_REAL_WRITE) { - if (*nrels_mag >= 1) { - data->fan_min[nr - 1] = FAN_TO_REG(results[0], - DIV_FROM_REG(data-> @@ -464,15 +464,15 @@ ctl_name, - struct via686a_data *data = i2c_get_clientdata(client); - int nr = ctl_name - VIA686A_SYSCTL_TEMP; - -- if (operation = SENSORS_PROC_REAL_INFO) +- if (operation == SENSORS_PROC_REAL_INFO) - *nrels_mag = 1; -- else if (operation = SENSORS_PROC_REAL_READ) { +- else if (operation == SENSORS_PROC_REAL_READ) { - via686a_update_client(client); - results[0] = TEMP_FROM_REG(data->temp_over[nr]); - results[1] = TEMP_FROM_REG(data->temp_hyst[nr]); - results[2] = TEMP_FROM_REG10(data->temp[nr]); - *nrels_mag = 3; -- } else if (operation = SENSORS_PROC_REAL_WRITE) { +- } else if (operation == SENSORS_PROC_REAL_WRITE) { - if (*nrels_mag >= 1) { - data->temp_over[nr] = TEMP_TO_REG(results[0]); - via686a_write_value(client, @@ -492,9 +492,9 @@ ctl_name, - int *nrels_mag, long *results) -{ - struct via686a_data *data = i2c_get_clientdata(client); -- if (operation = SENSORS_PROC_REAL_INFO) +- if (operation == SENSORS_PROC_REAL_INFO) - *nrels_mag = 0; -- else if (operation = SENSORS_PROC_REAL_READ) { +- else if (operation == SENSORS_PROC_REAL_READ) { - via686a_update_client(client); - results[0] = ALARMS_FROM_REG(data->alarms); - *nrels_mag = 1; @@ -507,14 +507,14 @@ ctl_name, - struct via686a_data *data = i2c_get_clientdata(client); - int old; - -- if (operation = SENSORS_PROC_REAL_INFO) +- if (operation == SENSORS_PROC_REAL_INFO) - *nrels_mag = 0; -- else if (operation = SENSORS_PROC_REAL_READ) { +- else if (operation == SENSORS_PROC_REAL_READ) { - via686a_update_client(client); - results[0] = DIV_FROM_REG(data->fan_div[0]); - results[1] = DIV_FROM_REG(data->fan_div[1]); - *nrels_mag = 2; -- } else if (operation = SENSORS_PROC_REAL_WRITE) { +- } else if (operation == SENSORS_PROC_REAL_WRITE) { - old = via686a_read_value(client, VIA686A_REG_FANDIV); - if (*nrels_mag >= 2) { - data->fan_div[1] = DIV_TO_REG(results[1]); diff --git a/a/content_digest b/N1/content_digest index d702c9b..f5cb382 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,9 +1,9 @@ "ref\01048582394.4774.7.camel@workshop.saharact.lan\0" "ref\020030325175603.GG15823@kroah.com\0" "ref\01048705473.7569.10.camel@nosferatu.lan\0" - "From\0j.dittmer@portrix.net (Jan Dittmer)\0" - "Subject\0w83781d i2c driver updated for 2.5.66 (without sysfs support)\0" - "Date\0Thu, 19 May 2005 06:23:51 +0000\0" + "From\0Jan Dittmer <j.dittmer@portrix.net>\0" + "Subject\0Re: w83781d i2c driver updated for 2.5.66 (without sysfs support)\0" + "Date\0Wed, 26 Mar 2003 20:40:58 +0100\0" "To\0azarah@gentoo.org\0" "Cc\0Greg KH <greg@kroah.com>" KML <linux-kernel@vger.kernel.org> @@ -65,7 +65,7 @@ "+\tstruct via686a_data *data = i2c_get_clientdata(client);\n" "+\tint in_min, in_max, ret;\n" "+\tret = sscanf(buf, \"%d %d\", &in_min, &in_max);\n" - "+\tif (ret = -1) return -EINVAL;\n" + "+\tif (ret == -1) return -EINVAL;\n" "+\tif (ret >= 1) {\n" "+\t\tdata->in_min[nr] = IN_TO_REG(in_min, nr);\n" "+\t\tvia686a_write_value(client, VIA686A_REG_IN_MIN(nr), data->in_min[nr]);\n" @@ -114,7 +114,7 @@ "+\tint temp_over, temp_hyst, ret;\n" "+\tprintk(buf);\n" "+\tret = sscanf(buf, \"%d %d\", &temp_over, &temp_hyst);\n" - "+\tif (ret = -1) return -EINVAL;\n" + "+\tif (ret == -1) return -EINVAL;\n" "+\tif (ret >= 1) {\n" "+\t\tdata->temp_over[nr] = TEMP_TO_REG(temp_over);\n" "+\t\tvia686a_write_value(client, VIA686A_REG_TEMP_OVER(nr + 1), \n" @@ -160,7 +160,7 @@ "+\tstruct via686a_data *data = i2c_get_clientdata(client);\n" "+\tint fan_min, ret;\n" "+\tret = sscanf(buf, \"%d\", &fan_min);\n" - "+\tif (ret = -1) return -EINVAL;\n" + "+\tif (ret == -1) return -EINVAL;\n" "+\tif (ret >= 1) {\n" "+\t\tdata->fan_min[nr] = FAN_TO_REG(fan_min, DIV_FROM_REG(data->fan_div[nr]));\n" "+\t\tvia686a_write_value(client, VIA686A_REG_FAN_MIN(nr+1), \n" @@ -220,7 +220,7 @@ "-static void via686a_fan_div(struct i2c_client *client, int operation,\n" "-\t\t\t int ctl_name, int *nrels_mag, long *results);\n" "+\tret = sscanf(buf, \"%d %d\", &fan_div[0], &fan_div[1]);\n" - "+\tif (ret = -1) return -EINVAL;\n" + "+\tif (ret == -1) return -EINVAL;\n" "+\told = via686a_read_value(client, VIA686A_REG_FANDIV);\n" "+\tif (ret >= 2) {\n" "+\t\tdata->fan_min[1] = DIV_TO_REG(fan_div[1]);\n" @@ -402,12 +402,12 @@ "- sysctl files. Which function is used is defined in the ctl_table in\n" "- the extra1 field.\n" "- Each function must return the magnitude (power of 10 to divide the date\n" - "- with) if it is called with operation=SENSORS_PROC_REAL_INFO. It must\n" + "- with) if it is called with operation==SENSORS_PROC_REAL_INFO. It must\n" "- put a maximum of *nrels elements in results reflecting the data of this\n" - "- file, and set *nrels to the number it actually put in it, if operation=\n" + "- file, and set *nrels to the number it actually put in it, if operation==\n" "- SENSORS_PROC_REAL_READ. Finally, it must get upto *nrels elements from\n" "- results and write them to the chip, if \n" - "operations=SENSORS_PROC_REAL_WRITE.\n" + "operations==SENSORS_PROC_REAL_WRITE.\n" "- Note that on SENSORS_PROC_REAL_READ, I do not check whether results is\n" "- large enough (by checking the incoming value of *nrels). This is not \n" "very\n" @@ -421,15 +421,15 @@ "-\tstruct via686a_data *data = i2c_get_clientdata(client);\n" "-\tint nr = ctl_name - VIA686A_SYSCTL_IN0;\n" "-\n" - "-\tif (operation = SENSORS_PROC_REAL_INFO)\n" + "-\tif (operation == SENSORS_PROC_REAL_INFO)\n" "-\t\t*nrels_mag = 2;\n" - "-\telse if (operation = SENSORS_PROC_REAL_READ) {\n" + "-\telse if (operation == SENSORS_PROC_REAL_READ) {\n" "-\t\tvia686a_update_client(client);\n" "-\t\tresults[0] = IN_FROM_REG(data->in_min[nr], nr);\n" "-\t\tresults[1] = IN_FROM_REG(data->in_max[nr], nr);\n" "-\t\tresults[2] = IN_FROM_REG(data->in[nr], nr);\n" "-\t\t*nrels_mag = 3;\n" - "-\t} else if (operation = SENSORS_PROC_REAL_WRITE) {\n" + "-\t} else if (operation == SENSORS_PROC_REAL_WRITE) {\n" "-\t\tif (*nrels_mag >= 1) {\n" "-\t\t\tdata->in_min[nr] = IN_TO_REG(results[0], nr);\n" "-\t\t\tvia686a_write_value(client, VIA686A_REG_IN_MIN(nr),\n" @@ -449,9 +449,9 @@ "-\tstruct via686a_data *data = i2c_get_clientdata(client);\n" "-\tint nr = ctl_name - VIA686A_SYSCTL_FAN1 + 1;\n" "-\n" - "-\tif (operation = SENSORS_PROC_REAL_INFO)\n" + "-\tif (operation == SENSORS_PROC_REAL_INFO)\n" "-\t\t*nrels_mag = 0;\n" - "-\telse if (operation = SENSORS_PROC_REAL_READ) {\n" + "-\telse if (operation == SENSORS_PROC_REAL_READ) {\n" "-\t\tvia686a_update_client(client);\n" "-\t\tresults[0] = FAN_FROM_REG(data->fan_min[nr - 1],\n" "-\t\t\t\t\t DIV_FROM_REG(data->fan_div\n" @@ -459,7 +459,7 @@ "-\t\tresults[1] = FAN_FROM_REG(data->fan[nr - 1],\n" "-\t\t\t\t DIV_FROM_REG(data->fan_div[nr - 1]));\n" "-\t\t*nrels_mag = 2;\n" - "-\t} else if (operation = SENSORS_PROC_REAL_WRITE) {\n" + "-\t} else if (operation == SENSORS_PROC_REAL_WRITE) {\n" "-\t\tif (*nrels_mag >= 1) {\n" "-\t\t\tdata->fan_min[nr - 1] = FAN_TO_REG(results[0],\n" "-\t\t\t\t\t\t\t DIV_FROM_REG(data->\n" @@ -477,15 +477,15 @@ "-\tstruct via686a_data *data = i2c_get_clientdata(client);\n" "-\tint nr = ctl_name - VIA686A_SYSCTL_TEMP;\n" "-\n" - "-\tif (operation = SENSORS_PROC_REAL_INFO)\n" + "-\tif (operation == SENSORS_PROC_REAL_INFO)\n" "-\t\t*nrels_mag = 1;\n" - "-\telse if (operation = SENSORS_PROC_REAL_READ) {\n" + "-\telse if (operation == SENSORS_PROC_REAL_READ) {\n" "-\t\tvia686a_update_client(client);\n" "-\t\tresults[0] = TEMP_FROM_REG(data->temp_over[nr]);\n" "-\t\tresults[1] = TEMP_FROM_REG(data->temp_hyst[nr]);\n" "-\t\tresults[2] = TEMP_FROM_REG10(data->temp[nr]);\n" "-\t\t*nrels_mag = 3;\n" - "-\t} else if (operation = SENSORS_PROC_REAL_WRITE) {\n" + "-\t} else if (operation == SENSORS_PROC_REAL_WRITE) {\n" "-\t\tif (*nrels_mag >= 1) {\n" "-\t\t\tdata->temp_over[nr] = TEMP_TO_REG(results[0]);\n" "-\t\t\tvia686a_write_value(client,\n" @@ -505,9 +505,9 @@ "-\t\t int *nrels_mag, long *results)\n" "-{\n" "-\tstruct via686a_data *data = i2c_get_clientdata(client);\n" - "-\tif (operation = SENSORS_PROC_REAL_INFO)\n" + "-\tif (operation == SENSORS_PROC_REAL_INFO)\n" "-\t\t*nrels_mag = 0;\n" - "-\telse if (operation = SENSORS_PROC_REAL_READ) {\n" + "-\telse if (operation == SENSORS_PROC_REAL_READ) {\n" "-\t\tvia686a_update_client(client);\n" "-\t\tresults[0] = ALARMS_FROM_REG(data->alarms);\n" "-\t\t*nrels_mag = 1;\n" @@ -520,14 +520,14 @@ "-\tstruct via686a_data *data = i2c_get_clientdata(client);\n" "-\tint old;\n" "-\n" - "-\tif (operation = SENSORS_PROC_REAL_INFO)\n" + "-\tif (operation == SENSORS_PROC_REAL_INFO)\n" "-\t\t*nrels_mag = 0;\n" - "-\telse if (operation = SENSORS_PROC_REAL_READ) {\n" + "-\telse if (operation == SENSORS_PROC_REAL_READ) {\n" "-\t\tvia686a_update_client(client);\n" "-\t\tresults[0] = DIV_FROM_REG(data->fan_div[0]);\n" "-\t\tresults[1] = DIV_FROM_REG(data->fan_div[1]);\n" "-\t\t*nrels_mag = 2;\n" - "-\t} else if (operation = SENSORS_PROC_REAL_WRITE) {\n" + "-\t} else if (operation == SENSORS_PROC_REAL_WRITE) {\n" "-\t\told = via686a_read_value(client, VIA686A_REG_FANDIV);\n" "-\t\tif (*nrels_mag >= 2) {\n" "-\t\t\tdata->fan_div[1] = DIV_TO_REG(results[1]);\n" @@ -556,4 +556,4 @@ " { 0, }\n" }; -87601d943f704e923941b737e76cef6bfe86535e570e10b4344e31890f265764 +f411a099167d4902afda5c2d0f2b0ebad4a6256f280116d816b9222ae5f88284
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.