diff for duplicates of <4933F4B8.90208@cam.ac.uk> diff --git a/a/1.txt b/N1/1.txt index 3c61f95..a5333e6 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -147,13 +147,13 @@ index 0000000..aa8dc01 + int ret = 0; + +idr_again: -+ if (unlikely(idr_pre_get(&iio_trigger_idr, GFP_KERNEL) == 0)) ++ if (unlikely(idr_pre_get(&iio_trigger_idr, GFP_KERNEL) = 0)) + return -ENOMEM; + + spin_lock(&iio_trigger_idr_lock); + ret = idr_get_new(&iio_trigger_idr, NULL, &trig_info->id); + spin_unlock(&iio_trigger_idr_lock); -+ if (unlikely(ret == -EAGAIN)) ++ if (unlikely(ret = -EAGAIN)) + goto idr_again; + else if (likely(!ret)) + trig_info->id = trig_info->id & MAX_ID_MASK; @@ -217,7 +217,7 @@ index 0000000..aa8dc01 + + mutex_lock(&iio_trigger_list_lock); + list_for_each_entry(cursor, &iio_trigger_list, list) -+ if (cursor == trig_info) { ++ if (cursor = trig_info) { + list_del(&cursor->list); + break; + } @@ -237,7 +237,7 @@ index 0000000..aa8dc01 + + mutex_lock(&iio_trigger_list_lock); + list_for_each_entry(trig, &iio_trigger_list, list) { -+ if (strncmp(trig->name, name, len) == 0) { ++ if (strncmp(trig->name, name, len) = 0) { + found = true; + break; + } @@ -270,7 +270,7 @@ index 0000000..aa8dc01 +void iio_trigger_notify_done(struct iio_trigger *trig) +{ + trig->use_count--; -+ if (trig->use_count == 0 && trig->try_reenable) ++ if (trig->use_count = 0 && trig->try_reenable) + if (trig->try_reenable(trig)) { + /* Missed and interrupt so launch new poll now */ + trig->timestamp = 0; @@ -323,7 +323,7 @@ index 0000000..aa8dc01 + + spin_lock_irqsave(&trig->pollfunc_list_lock, flags); + list_for_each_entry(pf_cursor, &trig->pollfunc_list, list) -+ if (pf_cursor == pf) { ++ if (pf_cursor = pf) { + succeeded = 1; + break; + } @@ -380,7 +380,7 @@ index 0000000..aa8dc01 + struct iio_dev *dev_info = dev_get_drvdata(dev); + struct iio_trigger *oldtrig = dev_info->trig; + mutex_lock(&dev_info->mlock); -+ if (dev_info->currentmode == INDIO_RING_TRIGGERED) { ++ if (dev_info->currentmode = INDIO_RING_TRIGGERED) { + mutex_unlock(&dev_info->mlock); + return -EBUSY; + } @@ -548,3 +548,8 @@ index 517213d..bca0678 100644 #else struct iio_trigger{}; static inline int iio_device_register_trigger_consumer(struct iio_dev *dev_info) + +_______________________________________________ +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 86ad307..200cf52 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] [4/13] RFC: IIO trigger support\0" + "Subject\0[lm-sensors] [Industrial I/O] [4/13] RFC: IIO trigger support\0" "Date\0Mon, 01 Dec 2008 14:29:12 +0000\0" "To\0Jonathan Cameron <jic23@cam.ac.uk>\0" "Cc\0LKML <linux-kernel@vger.kernel.org>" @@ -161,13 +161,13 @@ "+\tint ret = 0;\n" "+\n" "+idr_again:\n" - "+\tif (unlikely(idr_pre_get(&iio_trigger_idr, GFP_KERNEL) == 0))\n" + "+\tif (unlikely(idr_pre_get(&iio_trigger_idr, GFP_KERNEL) = 0))\n" "+\t\treturn -ENOMEM;\n" "+\n" "+\tspin_lock(&iio_trigger_idr_lock);\n" "+\tret = idr_get_new(&iio_trigger_idr, NULL, &trig_info->id);\n" "+\tspin_unlock(&iio_trigger_idr_lock);\n" - "+\tif (unlikely(ret == -EAGAIN))\n" + "+\tif (unlikely(ret = -EAGAIN))\n" "+\t\tgoto idr_again;\n" "+\telse if (likely(!ret))\n" "+\t\ttrig_info->id = trig_info->id & MAX_ID_MASK;\n" @@ -231,7 +231,7 @@ "+\n" "+\tmutex_lock(&iio_trigger_list_lock);\n" "+\tlist_for_each_entry(cursor, &iio_trigger_list, list)\n" - "+\t\tif (cursor == trig_info) {\n" + "+\t\tif (cursor = trig_info) {\n" "+\t\t\tlist_del(&cursor->list);\n" "+\t\t\tbreak;\n" "+\t\t}\n" @@ -251,7 +251,7 @@ "+\n" "+\tmutex_lock(&iio_trigger_list_lock);\n" "+\tlist_for_each_entry(trig, &iio_trigger_list, list) {\n" - "+\t\tif (strncmp(trig->name, name, len) == 0) {\n" + "+\t\tif (strncmp(trig->name, name, len) = 0) {\n" "+\t\t\tfound = true;\n" "+\t\t\tbreak;\n" "+\t\t}\n" @@ -284,7 +284,7 @@ "+void iio_trigger_notify_done(struct iio_trigger *trig)\n" "+{\n" "+\ttrig->use_count--;\n" - "+\tif (trig->use_count == 0 && trig->try_reenable)\n" + "+\tif (trig->use_count = 0 && trig->try_reenable)\n" "+\t\tif (trig->try_reenable(trig)) {\n" "+\t\t\t/* Missed and interrupt so launch new poll now */\n" "+\t\t\ttrig->timestamp = 0;\n" @@ -337,7 +337,7 @@ "+\n" "+\tspin_lock_irqsave(&trig->pollfunc_list_lock, flags);\n" "+\tlist_for_each_entry(pf_cursor, &trig->pollfunc_list, list)\n" - "+\t\tif (pf_cursor == pf) {\n" + "+\t\tif (pf_cursor = pf) {\n" "+\t\t\tsucceeded = 1;\n" "+\t\t\tbreak;\n" "+\t\t}\n" @@ -394,7 +394,7 @@ "+\tstruct iio_dev *dev_info = dev_get_drvdata(dev);\n" "+\tstruct iio_trigger *oldtrig = dev_info->trig;\n" "+\tmutex_lock(&dev_info->mlock);\n" - "+\tif (dev_info->currentmode == INDIO_RING_TRIGGERED) {\n" + "+\tif (dev_info->currentmode = INDIO_RING_TRIGGERED) {\n" "+\t\tmutex_unlock(&dev_info->mlock);\n" "+\t\treturn -EBUSY;\n" "+\t}\n" @@ -561,6 +561,11 @@ "+void iio_trigger_notify_done(struct iio_trigger *);\n" " #else\n" " struct iio_trigger{};\n" - static inline int iio_device_register_trigger_consumer(struct iio_dev *dev_info) + " static inline int iio_device_register_trigger_consumer(struct iio_dev *dev_info)\n" + "\n" + "_______________________________________________\n" + "lm-sensors mailing list\n" + "lm-sensors@lm-sensors.org\n" + http://lists.lm-sensors.org/mailman/listinfo/lm-sensors -2ad9b2e2b0e8eaae15627b945b4920fcab22f23f783fc4fc2c5b45d561decca6 +3e5ae75b85b53cba08d355f968a125160b8335a7a1b1095016c85be0ee51bef3
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.