diff for duplicates of <4887664C.7030301@gmail.com> diff --git a/a/1.txt b/N1/1.txt index 2c80000..ea89c5b 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -537,7 +537,7 @@ Patch depends on iio_core patch + msg.buf = tx_buf; + + ret = i2c_transfer(client->adapter, &msg, 1); -+ if (ret = 1) ++ if (ret == 1) + ret = 0; + + kfree(tx_buf); @@ -586,7 +586,7 @@ Patch depends on iio_core patch + tx_buf[14] = 0xFF; + + ret = i2c_transfer(client->adapter, &msg, 1); -+ if (ret = 1) ++ if (ret == 1) + ret = 0; + + kfree(tx_buf); @@ -676,7 +676,7 @@ Patch depends on iio_core patch + char *ring_data; + + ring_data = kmalloc(info->current_mode->numvals*2, GFP_KERNEL); -+ if (ring_data = NULL) { ++ if (ring_data == NULL) { + ret = -ENOMEM; + goto error_ret; + } @@ -717,16 +717,16 @@ Patch depends on iio_core patch + }; + char *rxbuf; + -+ if (data->current_mode->numvals = 0) ++ if (data->current_mode->numvals == 0) + return 0; + rxbuf = kmalloc(data->current_mode->numvals*2, GFP_KERNEL); -+ if (rxbuf = NULL) ++ if (rxbuf == NULL) + return -ENOMEM; + msg.buf = rxbuf; + /* Interpretation depends on whether these are signed or not!*/ + /* Assume not for now */ + ret = i2c_transfer(client->adapter, &msg, 1); -+ if (ret = 1) ++ if (ret == 1) + ret = 0; + for (i = 0; i < data->current_mode->numvals; i++) + len += sprintf(buf+len, "%d ", @@ -746,7 +746,7 @@ Patch depends on iio_core patch + int ret; + + mutex_lock(&dev_info->mlock); -+ if (dev_info->currentmode = INDIO_RING_POLLED) ++ if (dev_info->currentmode == INDIO_RING_POLLED) + ret = max1363_scan_from_ring(dev, attr, buf); + else + ret = max1363_scan_direct(dev, attr, buf); @@ -782,7 +782,7 @@ Patch depends on iio_core patch + data->current_mode = NULL; + for (i = 0; i < data->chip_info->num_modes; i++) { + if (strncmp(max1363_mode_table[data->chip_info->mode_list[i]] -+ .name, buf, strlen(buf)-1) = 0) { ++ .name, buf, strlen(buf)-1) == 0) { + data->current_mode + = &max1363_mode_table[data + ->chip_info @@ -886,15 +886,15 @@ Patch depends on iio_core patch + return; + + /* Monitor mode prevents reading */ -+ if (data->current_mode->numvals = 0) ++ if (data->current_mode->numvals == 0) + return; + /* FIXME - missmatch in size somewhere */ + rxbuf = kmalloc(data->current_mode->numvals*2+8, GFP_KERNEL); -+ if (rxbuf = NULL) ++ if (rxbuf == NULL) + return; + msg.buf = rxbuf; + ret = i2c_transfer(data->client->adapter, &msg, 1); -+ if (ret = 1) ++ if (ret == 1) + ret = 0; + else if (ret) + goto done; @@ -916,7 +916,7 @@ Patch depends on iio_core patch + + data = kzalloc(sizeof(struct max1363_data), GFP_KERNEL); + -+ if (data = NULL) { ++ if (data == NULL) { + dev_err(&client->dev, "Memory allocation error \n"); + ret = -ENOMEM; + goto error_ret; @@ -938,7 +938,7 @@ Patch depends on iio_core patch + + data->client = client; + data->indio_dev = kzalloc(sizeof(struct iio_dev), GFP_KERNEL); -+ if (data->indio_dev = NULL) { ++ if (data->indio_dev == NULL) { + dev_err(&client->dev, "Memory allocation error\n"); + ret = -ENOMEM; + goto error_free_data; @@ -1069,9 +1069,3 @@ Patch depends on iio_core patch + +module_init(max1363_init); +module_exit(max1363_exit); - - -_______________________________________________ -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 3b0e454..af69b21 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\0488763AD.4050400@gmail.com\0" "From\0Jonathan Cameron <Jonathan.Cameron@gmail.com>\0" - "Subject\0[lm-sensors] [Patch 2/4] Max1363 (and similar) ADCs\0" - "Date\0Wed, 23 Jul 2008 17:11:40 +0000\0" + "Subject\0[Patch 2/4] Max1363 (and similar) ADCs\0" + "Date\0Wed, 23 Jul 2008 18:11:40 +0100\0" "To\0LKML <linux-kernel@vger.kernel.org>" " LM Sensors <lm-sensors@lm-sensors.org>\0" "Cc\0Jean Delvare <khali@linux-fr.org>" @@ -553,7 +553,7 @@ "+\tmsg.buf = tx_buf;\n" "+\n" "+\tret = i2c_transfer(client->adapter, &msg, 1);\n" - "+\tif (ret = 1)\n" + "+\tif (ret == 1)\n" "+\t\tret = 0;\n" "+\n" "+\tkfree(tx_buf);\n" @@ -602,7 +602,7 @@ "+\ttx_buf[14] = 0xFF;\n" "+\n" "+\tret = i2c_transfer(client->adapter, &msg, 1);\n" - "+\tif (ret = 1)\n" + "+\tif (ret == 1)\n" "+\t\tret = 0;\n" "+\n" "+\tkfree(tx_buf);\n" @@ -692,7 +692,7 @@ "+\tchar *ring_data;\n" "+\n" "+\tring_data = kmalloc(info->current_mode->numvals*2, GFP_KERNEL);\n" - "+\tif (ring_data = NULL) {\n" + "+\tif (ring_data == NULL) {\n" "+\t\tret = -ENOMEM;\n" "+\t\tgoto error_ret;\n" "+\t}\n" @@ -733,16 +733,16 @@ "+\t};\n" "+\tchar *rxbuf;\n" "+\n" - "+\tif (data->current_mode->numvals = 0)\n" + "+\tif (data->current_mode->numvals == 0)\n" "+\t\treturn 0;\n" "+\trxbuf = kmalloc(data->current_mode->numvals*2, GFP_KERNEL);\n" - "+\tif (rxbuf = NULL)\n" + "+\tif (rxbuf == NULL)\n" "+\t\treturn -ENOMEM;\n" "+\tmsg.buf = rxbuf;\n" "+\t/* Interpretation depends on whether these are signed or not!*/\n" "+\t/* Assume not for now */\n" "+\tret = i2c_transfer(client->adapter, &msg, 1);\n" - "+\tif (ret = 1)\n" + "+\tif (ret == 1)\n" "+\t\tret = 0;\n" "+\tfor (i = 0; i < data->current_mode->numvals; i++)\n" "+\t\tlen += sprintf(buf+len, \"%d \",\n" @@ -762,7 +762,7 @@ "+\tint ret;\n" "+\n" "+\tmutex_lock(&dev_info->mlock);\n" - "+\tif (dev_info->currentmode = INDIO_RING_POLLED)\n" + "+\tif (dev_info->currentmode == INDIO_RING_POLLED)\n" "+\t\tret = max1363_scan_from_ring(dev, attr, buf);\n" "+\telse\n" "+\t\tret = max1363_scan_direct(dev, attr, buf);\n" @@ -798,7 +798,7 @@ "+\tdata->current_mode = NULL;\n" "+\tfor (i = 0; i < data->chip_info->num_modes; i++) {\n" "+\t\tif (strncmp(max1363_mode_table[data->chip_info->mode_list[i]]\n" - "+\t\t\t .name, buf, strlen(buf)-1) = 0) {\n" + "+\t\t\t .name, buf, strlen(buf)-1) == 0) {\n" "+\t\t\tdata->current_mode\n" "+\t\t\t\t= &max1363_mode_table[data\n" "+\t\t\t\t\t\t ->chip_info\n" @@ -902,15 +902,15 @@ "+\t return;\n" "+\n" "+\t/* Monitor mode prevents reading */\n" - "+\tif (data->current_mode->numvals = 0)\n" + "+\tif (data->current_mode->numvals == 0)\n" "+\t\treturn;\n" "+\t/* FIXME - missmatch in size somewhere */\n" "+\trxbuf = kmalloc(data->current_mode->numvals*2+8, GFP_KERNEL);\n" - "+\tif (rxbuf = NULL)\n" + "+\tif (rxbuf == NULL)\n" "+\t\treturn;\n" "+\tmsg.buf = rxbuf;\n" "+\tret = i2c_transfer(data->client->adapter, &msg, 1);\n" - "+\tif (ret = 1)\n" + "+\tif (ret == 1)\n" "+\t\tret = 0;\n" "+\telse if (ret)\n" "+\t\tgoto done;\n" @@ -932,7 +932,7 @@ "+\n" "+\tdata = kzalloc(sizeof(struct max1363_data), GFP_KERNEL);\n" "+\n" - "+\tif (data = NULL) {\n" + "+\tif (data == NULL) {\n" "+\t\tdev_err(&client->dev, \"Memory allocation error \\n\");\n" "+\t\tret = -ENOMEM;\n" "+\t\tgoto error_ret;\n" @@ -954,7 +954,7 @@ "+\n" "+\tdata->client = client;\n" "+\tdata->indio_dev = kzalloc(sizeof(struct iio_dev), GFP_KERNEL);\n" - "+\tif (data->indio_dev = NULL) {\n" + "+\tif (data->indio_dev == NULL) {\n" "+\t\tdev_err(&client->dev, \"Memory allocation error\\n\");\n" "+\t\tret = -ENOMEM;\n" "+\t\tgoto error_free_data;\n" @@ -1084,12 +1084,6 @@ "+MODULE_LICENSE(\"GPL v2\");\n" "+\n" "+module_init(max1363_init);\n" - "+module_exit(max1363_exit);\n" - "\n" - "\n" - "_______________________________________________\n" - "lm-sensors mailing list\n" - "lm-sensors@lm-sensors.org\n" - http://lists.lm-sensors.org/mailman/listinfo/lm-sensors + +module_exit(max1363_exit); -64b548f44fbf0c3fd331815d48d4208a227778a08708fa9652b6e6aef338020d +3f9ccd1d4bcc0045bfa5d21c084e40529a416396b1b4cc115dc839613637b1d6
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.