iio: core: Remove IIO_EV_TYPE_INSTANCE
authorIrina Tirdea <irina.tirdea@intel.com>
Sun, 11 Jan 2015 19:10:12 +0000 (21:10 +0200)
committerJonathan Cameron <jic23@kernel.org>
Tue, 27 Jan 2015 18:49:55 +0000 (18:49 +0000)
By introducing IIO_EV_TYPE_CHANGE, IIO_EV_TYPE_INSTANCE becomes redundant.
The effect of IIO_EV_TYPE_INSTANCE can be obtained by using IIO_EV_TYPE_CHANGE
with IIO_EV_INFO_VALUE set to 1.

Remove all instances of IIO_EV_TYPE_INSTANCE and replace them with
IIO_EV_TYPE_CHANGE where needed.

Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-event.c
drivers/staging/iio/Documentation/iio_event_monitor.c
drivers/staging/iio/iio_simple_dummy.c
drivers/staging/iio/iio_simple_dummy_events.c
include/linux/iio/types.h

index b33ce55..a4b3970 100644 (file)
@@ -197,7 +197,6 @@ static const char * const iio_ev_type_text[] = {
        [IIO_EV_TYPE_ROC] = "roc",
        [IIO_EV_TYPE_THRESH_ADAPTIVE] = "thresh_adaptive",
        [IIO_EV_TYPE_MAG_ADAPTIVE] = "mag_adaptive",
-       [IIO_EV_TYPE_INSTANCE] = "instance",
        [IIO_EV_TYPE_CHANGE] = "change",
 };
 
index 2e78d58..72c96aa 100644 (file)
@@ -59,7 +59,6 @@ static const char * const iio_ev_type_text[] = {
        [IIO_EV_TYPE_ROC] = "roc",
        [IIO_EV_TYPE_THRESH_ADAPTIVE] = "thresh_adaptive",
        [IIO_EV_TYPE_MAG_ADAPTIVE] = "mag_adaptive",
-       [IIO_EV_TYPE_INSTANCE] = "instance",
        [IIO_EV_TYPE_CHANGE] = "change",
 };
 
@@ -179,7 +178,6 @@ static bool event_is_known(struct iio_event_data *event)
        case IIO_EV_TYPE_ROC:
        case IIO_EV_TYPE_THRESH_ADAPTIVE:
        case IIO_EV_TYPE_MAG_ADAPTIVE:
-       case IIO_EV_TYPE_INSTANCE:
        case IIO_EV_TYPE_CHANGE:
                break;
        default:
Simple merge