All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <4933F66B.7060203@cam.ac.uk>

diff --git a/a/1.txt b/N1/1.txt
index 79602f2..6ff177b 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -156,7 +156,7 @@ index 0000000..f9b2b50
 +		goto error_ret;
 +	}
 +
-+	if (!(mask & t) == state) {
++	if (!(mask & t) = state) {
 +		if (state)
 +			t |= mask;
 +		else
@@ -248,7 +248,7 @@ index 0000000..f9b2b50
 +		el = to_iio_scan_el((struct device_attribute *)
 +				    (dev_info->scan_el_attrs->attrs[i]));
 +		/* label is in fact the address */
-+		if (el->label == this_attr->address)
++		if (el->label = this_attr->address)
 +			break;
 +		i++;
 +	}
@@ -260,7 +260,7 @@ index 0000000..f9b2b50
 +	if (el->mask & dev_info->scan_mask) {
 +		data = kmalloc(dev_info->ring_access.get_bpd(dev_info->ring),
 +			       GFP_KERNEL);
-+		if (data == NULL)
++		if (data = NULL)
 +			return -ENOMEM;
 +		ret = dev_info->ring_access.read_last(dev_info->ring,
 +						      (u8 *)data);
@@ -280,8 +280,7 @@ index 0000000..f9b2b50
 +
 +}
 +
-+static const u8 read_all_tx_array[] =
-+{
++static const u8 read_all_tx_array[] +{
 +	LIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_X_L_ADDR), 0,
 +	LIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_X_H_ADDR), 0,
 +	LIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_Y_L_ADDR), 0,
@@ -365,7 +364,7 @@ index 0000000..f9b2b50
 +		->ring_access.get_bpd(st->indio_dev->ring);
 +
 +	data = kmalloc(datasize , GFP_KERNEL);
-+	if (data == NULL) {
++	if (data = NULL) {
 +		dev_err(&st->us->dev, "memory alloc failed in ring bh");
 +		return;
 +	}
@@ -373,7 +372,7 @@ index 0000000..f9b2b50
 +	 * twice the number of bytes, or 4 times the number of channels
 +	 */
 +	rx_array = kmalloc(4 * (st->indio_dev->scan_count), GFP_KERNEL);
-+	if (rx_array == NULL) {
++	if (rx_array = NULL) {
 +		dev_err(&st->us->dev, "memory alloc failed in ring bh");
 +		return;
 +	}
@@ -525,7 +524,7 @@ index 0000000..f9b2b50
 +					    &iio_event_data_rdy_trig,
 +					    state);
 +	/* Clear any outstanding ready events */
-+	if (state == false)
++	if (state = false)
 +		ret = lis3l02dq_read_all(st, NULL);
 +
 +	lis3l02dq_spi_read_reg_8(st->indio_dev->dev,
@@ -562,10 +561,10 @@ index 0000000..f9b2b50
 +	enable_irq(st->us->irq);
 +	/* If gpio still high (or high again) */
 +	if (gpio_get_value(irq_to_gpio(st->us->irq)))
-+		if (st->inter == 0) {
++		if (st->inter = 0) {
 +			/* already interrupt handler dealing with it */
 +			disable_irq_nosync(st->us->irq);
-+			if (st->inter == 1) {
++			if (st->inter = 1) {
 +				/* interrupt handler snuck in between test
 +				 * and disable */
 +				enable_irq(st->us->irq);
@@ -650,7 +649,7 @@ index 0000000..f9b2b50
 +	INIT_LIST_HEAD(&iio_event_data_rdy_trig.list);
 +
 +	indio_dev->pollfunc = kzalloc(sizeof(*indio_dev->pollfunc), GFP_KERNEL);
-+	if (indio_dev->pollfunc == NULL) {
++	if (indio_dev->pollfunc = NULL) {
 +		ret = -ENOMEM;
 +		goto error_ret;
 +	}
@@ -676,3 +675,8 @@ index 0000000..f9b2b50
 +}
 +
 +
+
+_______________________________________________
+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 6e0beb2..85d34a1 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] [10/13] RFC: ST LIS3L02DQ 3d accelerometer driver via SPI (ring)\0"
+ "Subject\0[lm-sensors] [Industrial I/O] [10/13] RFC: ST LIS3L02DQ 3d\0"
  "Date\0Mon, 01 Dec 2008 14:36:27 +0000\0"
  "To\0Jonathan Cameron <jic23@cam.ac.uk>\0"
  "Cc\0LKML <linux-kernel@vger.kernel.org>"
@@ -170,7 +170,7 @@
  "+\t\tgoto error_ret;\n"
  "+\t}\n"
  "+\n"
- "+\tif (!(mask & t) == state) {\n"
+ "+\tif (!(mask & t) = state) {\n"
  "+\t\tif (state)\n"
  "+\t\t\tt |= mask;\n"
  "+\t\telse\n"
@@ -262,7 +262,7 @@
  "+\t\tel = to_iio_scan_el((struct device_attribute *)\n"
  "+\t\t\t\t    (dev_info->scan_el_attrs->attrs[i]));\n"
  "+\t\t/* label is in fact the address */\n"
- "+\t\tif (el->label == this_attr->address)\n"
+ "+\t\tif (el->label = this_attr->address)\n"
  "+\t\t\tbreak;\n"
  "+\t\ti++;\n"
  "+\t}\n"
@@ -274,7 +274,7 @@
  "+\tif (el->mask & dev_info->scan_mask) {\n"
  "+\t\tdata = kmalloc(dev_info->ring_access.get_bpd(dev_info->ring),\n"
  "+\t\t\t       GFP_KERNEL);\n"
- "+\t\tif (data == NULL)\n"
+ "+\t\tif (data = NULL)\n"
  "+\t\t\treturn -ENOMEM;\n"
  "+\t\tret = dev_info->ring_access.read_last(dev_info->ring,\n"
  "+\t\t\t\t\t\t      (u8 *)data);\n"
@@ -294,8 +294,7 @@
  "+\n"
  "+}\n"
  "+\n"
- "+static const u8 read_all_tx_array[] =\n"
- "+{\n"
+ "+static const u8 read_all_tx_array[] +{\n"
  "+\tLIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_X_L_ADDR), 0,\n"
  "+\tLIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_X_H_ADDR), 0,\n"
  "+\tLIS3L02DQ_READ_REG(LIS3L02DQ_REG_OUT_Y_L_ADDR), 0,\n"
@@ -379,7 +378,7 @@
  "+\t\t->ring_access.get_bpd(st->indio_dev->ring);\n"
  "+\n"
  "+\tdata = kmalloc(datasize , GFP_KERNEL);\n"
- "+\tif (data == NULL) {\n"
+ "+\tif (data = NULL) {\n"
  "+\t\tdev_err(&st->us->dev, \"memory alloc failed in ring bh\");\n"
  "+\t\treturn;\n"
  "+\t}\n"
@@ -387,7 +386,7 @@
  "+\t * twice the number of bytes, or 4 times the number of channels\n"
  "+\t */\n"
  "+\trx_array = kmalloc(4 * (st->indio_dev->scan_count), GFP_KERNEL);\n"
- "+\tif (rx_array == NULL) {\n"
+ "+\tif (rx_array = NULL) {\n"
  "+\t\tdev_err(&st->us->dev, \"memory alloc failed in ring bh\");\n"
  "+\t\treturn;\n"
  "+\t}\n"
@@ -539,7 +538,7 @@
  "+\t\t\t\t\t    &iio_event_data_rdy_trig,\n"
  "+\t\t\t\t\t    state);\n"
  "+\t/* Clear any outstanding ready events */\n"
- "+\tif (state == false)\n"
+ "+\tif (state = false)\n"
  "+\t\tret = lis3l02dq_read_all(st, NULL);\n"
  "+\n"
  "+\tlis3l02dq_spi_read_reg_8(st->indio_dev->dev,\n"
@@ -576,10 +575,10 @@
  "+\tenable_irq(st->us->irq);\n"
  "+\t/* If gpio still high (or high again) */\n"
  "+\tif (gpio_get_value(irq_to_gpio(st->us->irq)))\n"
- "+\t\tif (st->inter == 0) {\n"
+ "+\t\tif (st->inter = 0) {\n"
  "+\t\t\t/* already interrupt handler dealing with it */\n"
  "+\t\t\tdisable_irq_nosync(st->us->irq);\n"
- "+\t\t\tif (st->inter == 1) {\n"
+ "+\t\t\tif (st->inter = 1) {\n"
  "+\t\t\t\t/* interrupt handler snuck in between test\n"
  "+\t\t\t\t * and disable */\n"
  "+\t\t\t\tenable_irq(st->us->irq);\n"
@@ -664,7 +663,7 @@
  "+\tINIT_LIST_HEAD(&iio_event_data_rdy_trig.list);\n"
  "+\n"
  "+\tindio_dev->pollfunc = kzalloc(sizeof(*indio_dev->pollfunc), GFP_KERNEL);\n"
- "+\tif (indio_dev->pollfunc == NULL) {\n"
+ "+\tif (indio_dev->pollfunc = NULL) {\n"
  "+\t\tret = -ENOMEM;\n"
  "+\t\tgoto error_ret;\n"
  "+\t}\n"
@@ -689,6 +688,11 @@
  "+\treturn 0;\n"
  "+}\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
 
-937394fd0627c81d45958ac26e6adeb9bc27db43bfd002684bbc37acce380582
+350fe0c9bd9ae3d97dda4aac8527df437b81fc6931cf88db57705efdb46e49e2

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.