diff for duplicates of <4933F630.1050309@cam.ac.uk> diff --git a/a/1.txt b/N1/1.txt index 9ca400b..1acc278 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -589,7 +589,7 @@ index 0000000..61d82ce + ssize_t returnval; + + mutex_lock(&indio_dev->mlock); -+ if (indio_dev->currentmode == INDIO_RING_TRIGGERED) ++ if (indio_dev->currentmode = INDIO_RING_TRIGGERED) + returnval = lis3l02dq_read_accel_from_ring(dev, attr, buf); + else + returnval = lis3l02dq_read_16bit_signed(dev, attr, buf); @@ -628,11 +628,11 @@ index 0000000..61d82ce + if (ret) + goto error_ret; + t &= LIS3L02DQ_DEC_MASK; -+ if (t == LIS3L02DQ_REG_CTRL_1_DF_128) ++ if (t = LIS3L02DQ_REG_CTRL_1_DF_128) + len = sprintf(buf, "280"); -+ else if (t == LIS3L02DQ_REG_CTRL_1_DF_64) ++ else if (t = LIS3L02DQ_REG_CTRL_1_DF_64) + len = sprintf(buf, "560"); -+ else if (t == LIS3L02DQ_REG_CTRL_1_DF_32) ++ else if (t = LIS3L02DQ_REG_CTRL_1_DF_32) + len = sprintf(buf, "1120"); + else + len = sprintf(buf, "4480"); @@ -826,7 +826,7 @@ index 0000000..61d82ce + u8 valold, controlold; + bool val; + -+ val = (buf[0] == '0') ? 0 : 1; ++ val = (buf[0] = '0') ? 0 : 1; + + mutex_lock(&indio_dev->mlock); + /* read current value */ @@ -843,7 +843,7 @@ index 0000000..61d82ce + if (ret) + goto error_mutex_unlock; + currentlyset = valold & this_attr->mask ? 1 : 0; -+ if (val == false && currentlyset) { ++ if (val = false && currentlyset) { + valold &= ~this_attr->mask; + changed = 1; + ret = iio_remove_event_from_list(this_attr->listel, @@ -851,7 +851,7 @@ index 0000000..61d82ce + ->ev_list); + if (ret) + goto error_mutex_unlock; -+ } else if (val == true && !currentlyset) { ++ } else if (val = true && !currentlyset) { + changed = 1; + valold |= this_attr->mask; + ret = iio_add_event_to_list(this_attr->listel, @@ -1031,17 +1031,17 @@ index 0000000..61d82ce + int ret; + + st = kzalloc(sizeof(struct lis3l02dq_state), GFP_KERNEL); -+ if (st == NULL) { ++ if (st = NULL) { + ret = -ENOMEM; + goto error_ret; + } + st->rx = kzalloc(sizeof(*st->rx)*LIS3L02DQ_MAX_RX, GFP_KERNEL); -+ if (st == NULL) { ++ if (st = NULL) { + ret = -ENOMEM; + goto error_free_st; + } + st->tx = kzalloc(sizeof(*st->tx)*LIS3L02DQ_MAX_TX, GFP_KERNEL); -+ if (st == NULL) { ++ if (st = NULL) { + ret = -ENOMEM; + goto error_free_rx; + } @@ -1050,7 +1050,7 @@ index 0000000..61d82ce + + /* setup the industrialio driver allocated elements */ + st->indio_dev = kzalloc(sizeof(struct iio_dev), GFP_KERNEL); -+ if (st->indio_dev == NULL) { ++ if (st->indio_dev = NULL) { + ret = -ENOMEM; + goto error_free_tx; + } @@ -1368,3 +1368,8 @@ index 0000000..39c00b8 + IIO_EVENT_ATTR_SH(accel_z_roc_low, _evlist, _show, _store, _mask) + +#define IIO_EVENT_CODE_ACCEL_Z_ROC_LOW IIO_EVENT_CODE_ACCEL_BASE + 15 + +_______________________________________________ +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 66d7f20..9cd8697 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "ref\04933F291.4020001@cam.ac.uk\0" "From\0Jonathan Cameron <jic23@cam.ac.uk>\0" - "Subject\0[Industrial I/O] [9/13] RFC: ST LIS3L02DQ 3d accelerometer driver via SPI (core)\0" + "Subject\0[lm-sensors] [Industrial I/O] [9/13] RFC: ST LIS3L02DQ 3d\0" "Date\0Mon, 01 Dec 2008 14:35:28 +0000\0" "To\0Jonathan Cameron <jic23@cam.ac.uk>\0" "Cc\0LKML <linux-kernel@vger.kernel.org>" @@ -603,7 +603,7 @@ "+\tssize_t returnval;\n" "+\n" "+\tmutex_lock(&indio_dev->mlock);\n" - "+\tif (indio_dev->currentmode == INDIO_RING_TRIGGERED)\n" + "+\tif (indio_dev->currentmode = INDIO_RING_TRIGGERED)\n" "+\t\treturnval = lis3l02dq_read_accel_from_ring(dev, attr, buf);\n" "+\telse\n" "+\t\treturnval = lis3l02dq_read_16bit_signed(dev, attr, buf);\n" @@ -642,11 +642,11 @@ "+\tif (ret)\n" "+\t\tgoto error_ret;\n" "+\tt &= LIS3L02DQ_DEC_MASK;\n" - "+\tif (t == LIS3L02DQ_REG_CTRL_1_DF_128)\n" + "+\tif (t = LIS3L02DQ_REG_CTRL_1_DF_128)\n" "+\t\tlen = sprintf(buf, \"280\");\n" - "+\telse if (t == LIS3L02DQ_REG_CTRL_1_DF_64)\n" + "+\telse if (t = LIS3L02DQ_REG_CTRL_1_DF_64)\n" "+\t\tlen = sprintf(buf, \"560\");\n" - "+\telse if (t == LIS3L02DQ_REG_CTRL_1_DF_32)\n" + "+\telse if (t = LIS3L02DQ_REG_CTRL_1_DF_32)\n" "+\t\tlen = sprintf(buf, \"1120\");\n" "+\telse\n" "+\t\tlen = sprintf(buf, \"4480\");\n" @@ -840,7 +840,7 @@ "+\tu8 valold, controlold;\n" "+\tbool val;\n" "+\n" - "+\tval = (buf[0] == '0') ? 0 : 1;\n" + "+\tval = (buf[0] = '0') ? 0 : 1;\n" "+\n" "+\tmutex_lock(&indio_dev->mlock);\n" "+\t/* read current value */\n" @@ -857,7 +857,7 @@ "+\tif (ret)\n" "+\t\tgoto error_mutex_unlock;\n" "+\tcurrentlyset = valold & this_attr->mask ? 1 : 0;\n" - "+\tif (val == false && currentlyset) {\n" + "+\tif (val = false && currentlyset) {\n" "+\t\tvalold &= ~this_attr->mask;\n" "+\t\tchanged = 1;\n" "+\t\tret = iio_remove_event_from_list(this_attr->listel,\n" @@ -865,7 +865,7 @@ "+\t\t\t\t\t\t ->ev_list);\n" "+\t\tif (ret)\n" "+\t\t\tgoto error_mutex_unlock;\n" - "+\t} else if (val == true && !currentlyset) {\n" + "+\t} else if (val = true && !currentlyset) {\n" "+\t\tchanged = 1;\n" "+\t\tvalold |= this_attr->mask;\n" "+\t\tret = iio_add_event_to_list(this_attr->listel,\n" @@ -1045,17 +1045,17 @@ "+\tint ret;\n" "+\n" "+\tst = kzalloc(sizeof(struct lis3l02dq_state), GFP_KERNEL);\n" - "+\tif (st == NULL) {\n" + "+\tif (st = NULL) {\n" "+\t\tret = -ENOMEM;\n" "+\t\tgoto error_ret;\n" "+\t}\n" "+\tst->rx = kzalloc(sizeof(*st->rx)*LIS3L02DQ_MAX_RX, GFP_KERNEL);\n" - "+\tif (st == NULL) {\n" + "+\tif (st = NULL) {\n" "+\t\tret = -ENOMEM;\n" "+\t\tgoto error_free_st;\n" "+\t}\n" "+\tst->tx = kzalloc(sizeof(*st->tx)*LIS3L02DQ_MAX_TX, GFP_KERNEL);\n" - "+\tif (st == NULL) {\n" + "+\tif (st = NULL) {\n" "+\t\tret = -ENOMEM;\n" "+\t\tgoto error_free_rx;\n" "+\t}\n" @@ -1064,7 +1064,7 @@ "+\n" "+\t/* setup the industrialio driver allocated elements */\n" "+\tst->indio_dev = kzalloc(sizeof(struct iio_dev), GFP_KERNEL);\n" - "+\tif (st->indio_dev == NULL) {\n" + "+\tif (st->indio_dev = NULL) {\n" "+\t\tret = -ENOMEM;\n" "+\t\tgoto error_free_tx;\n" "+\t}\n" @@ -1381,6 +1381,11 @@ "+#define IIO_EVENT_ATTR_ACCEL_Z_ROC_LOW_SH(_evlist, _show, _store, _mask)\t\\\n" "+\tIIO_EVENT_ATTR_SH(accel_z_roc_low, _evlist, _show, _store, _mask)\n" "+\n" - +#define IIO_EVENT_CODE_ACCEL_Z_ROC_LOW IIO_EVENT_CODE_ACCEL_BASE + 15 + "+#define IIO_EVENT_CODE_ACCEL_Z_ROC_LOW IIO_EVENT_CODE_ACCEL_BASE + 15\n" + "\n" + "_______________________________________________\n" + "lm-sensors mailing list\n" + "lm-sensors@lm-sensors.org\n" + http://lists.lm-sensors.org/mailman/listinfo/lm-sensors -ad274b1fed60acf1a80e81405484bb9b26de69051adc13ecaa8b843f2eb24a8e +d4ad5ba018815ef230012c434b38496da1d98ea0f9b4bd12e05635b744f9f30c
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.