diff for duplicates of <4E241286.3090103@cam.ac.uk> diff --git a/a/1.txt b/N1/1.txt index 0fb5524..2062858 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -156,10 +156,10 @@ On 07/18/11 08:46, Paul Thomas wrote: > + struct iio_dev_attr *this_attr = to_iio_dev_attr(attr); > + > + gain_real = simple_strtol(buf, NULL, 10); -> + if (gain_real == 0) +> + if (gain_real = 0) > + return -EPERM; > + for (i = 0; i < NUM_CHANNELS; i++) { -> + if (gains[i] == gain_real) { +> + if (gains[i] = gain_real) { > + pdata->gain[this_attr->address] = i; > + return count; > + } @@ -249,11 +249,11 @@ On 07/18/11 08:46, Paul Thomas wrote: > + gain = pdata->gain[this_attr->address]; > + diff = pdata->diff[this_attr->address]; > + -> + if (diff == 1) { +> + if (diff = 1) { > + /*if in0_diff is true, reading in0_input still returns > + * in0, but it is in0-in1, if you read in1_input > + * then you get in1-in0 */ -> + if ((pos_chan % 2) == 0) +> + if ((pos_chan % 2) = 0) > + neg_chan = pos_chan+1; > + else > + neg_chan = pos_chan-1; @@ -300,7 +300,7 @@ On 07/18/11 08:46, Paul Thomas wrote: > + whole = fract / 1000000; > + fract = fract % 1000000; > + -> + if (status == 0) { +> + if (status = 0) { > + mutex_unlock(&pdata->lock); > + if (sign) > + return sprintf(buf, "%d.%.6d\n", whole, fract); @@ -449,7 +449,7 @@ On 07/18/11 08:46, Paul Thomas wrote: > + pdata->spi_dev = spi; > + > + pdata->indio_dev = iio_allocate_device(0); -> + if (pdata->indio_dev == NULL) { +> + if (pdata->indio_dev = NULL) { > + ret = -ENOMEM; > + goto error_free; > + } @@ -512,3 +512,9 @@ On 07/18/11 08:46, Paul Thomas wrote: > +MODULE_AUTHOR("Paul Thomas <pthomas8589@gmail.com>"); > +MODULE_DESCRIPTION("TI AD7194 A/D driver"); > +MODULE_LICENSE("GPL"); + + +_______________________________________________ +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 0f82290..c4ca61c 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\01310975165-19912-1-git-send-email-pthomas8589@gmail.com\0" "From\0Jonathan Cameron <jic23@cam.ac.uk>\0" - "Subject\0Re: [PATCH] iio: add support for Analog Devices ad7194 a/d converter\0" - "Date\0Mon, 18 Jul 2011 12:01:26 +0100\0" + "Subject\0Re: [lm-sensors] [PATCH] iio: add support for Analog Devices ad7194\0" + "Date\0Mon, 18 Jul 2011 11:01:26 +0000\0" "To\0Paul Thomas <pthomas8589@gmail.com>\0" "Cc\0lm-sensors@lm-sensors.org" device-drivers-devel@blackfin.uclinux.org <device-drivers-devel@blackfin.uclinux.org> @@ -166,10 +166,10 @@ "> +\tstruct iio_dev_attr *this_attr = to_iio_dev_attr(attr);\n" "> +\n" "> +\tgain_real = simple_strtol(buf, NULL, 10);\n" - "> +\tif (gain_real == 0)\n" + "> +\tif (gain_real = 0)\n" "> +\t\treturn -EPERM;\n" "> +\tfor (i = 0; i < NUM_CHANNELS; i++) {\n" - "> +\t\tif (gains[i] == gain_real) {\n" + "> +\t\tif (gains[i] = gain_real) {\n" "> +\t\t\tpdata->gain[this_attr->address] = i;\n" "> +\t\t\treturn count;\n" "> +\t\t}\n" @@ -259,11 +259,11 @@ "> +\tgain = pdata->gain[this_attr->address];\n" "> +\tdiff = pdata->diff[this_attr->address];\n" "> +\n" - "> +\tif (diff == 1) {\n" + "> +\tif (diff = 1) {\n" "> +\t\t/*if in0_diff is true, reading in0_input still returns\n" "> +\t\t* in0, but it is in0-in1, if you read in1_input\n" "> +\t\t* then you get in1-in0 */\n" - "> +\t\tif ((pos_chan % 2) == 0)\n" + "> +\t\tif ((pos_chan % 2) = 0)\n" "> +\t\t\tneg_chan = pos_chan+1;\n" "> +\t\telse\n" "> +\t\t\tneg_chan = pos_chan-1;\n" @@ -310,7 +310,7 @@ "> +\twhole = fract / 1000000;\n" "> +\tfract = fract % 1000000;\n" "> +\n" - "> +\tif (status == 0) {\n" + "> +\tif (status = 0) {\n" "> +\t\tmutex_unlock(&pdata->lock);\n" "> +\t\tif (sign)\n" "> +\t\t\treturn sprintf(buf, \"%d.%.6d\\n\", whole, fract);\n" @@ -459,7 +459,7 @@ "> +\tpdata->spi_dev = spi;\n" "> +\n" "> +\tpdata->indio_dev = iio_allocate_device(0);\n" - "> +\tif (pdata->indio_dev == NULL) {\n" + "> +\tif (pdata->indio_dev = NULL) {\n" "> +\t\tret = -ENOMEM;\n" "> +\t\tgoto error_free;\n" "> +\t}\n" @@ -521,6 +521,12 @@ "> +\n" "> +MODULE_AUTHOR(\"Paul Thomas <pthomas8589@gmail.com>\");\n" "> +MODULE_DESCRIPTION(\"TI AD7194 A/D driver\");\n" - "> +MODULE_LICENSE(\"GPL\");" + "> +MODULE_LICENSE(\"GPL\");\n" + "\n" + "\n" + "_______________________________________________\n" + "lm-sensors mailing list\n" + "lm-sensors@lm-sensors.org\n" + http://lists.lm-sensors.org/mailman/listinfo/lm-sensors -39a3bb118a3e869bd7e42efa5a98b013a36abe61ac0b2be4e012de1f7ca6b15f +c3c7bde1b34c8ec4a9d4b006ff04c91fb6b01e85641e44c6a9110166ec1197be
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.