diff options
Diffstat (limited to 'drivers/staging/iio')
-rw-r--r-- | drivers/staging/iio/Documentation/device.txt | 2 | ||||
-rw-r--r-- | drivers/staging/iio/adc/ad7606_par.c | 2 | ||||
-rw-r--r-- | drivers/staging/iio/iio_simple_dummy.h | 2 | ||||
-rw-r--r-- | drivers/staging/iio/iio_simple_dummy_events.c | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/iio/Documentation/device.txt b/drivers/staging/iio/Documentation/device.txt index 8be32e5a0af1..54ef0deed28f 100644 --- a/drivers/staging/iio/Documentation/device.txt +++ b/drivers/staging/iio/Documentation/device.txt @@ -52,7 +52,7 @@ Then fill in the following: * info->write_event_value: Write the value associated with on sensor event detectors. E.g. a threshold above which an interrupt occurs. Note that the - meaning of the value to be set is event type dependant. + meaning of the value to be set is event type dependent. - indio_dev->modes: Specify whether direct access and / or ring buffer access is supported. diff --git a/drivers/staging/iio/adc/ad7606_par.c b/drivers/staging/iio/adc/ad7606_par.c index 9e24b4d4455f..1d48ae381d16 100644 --- a/drivers/staging/iio/adc/ad7606_par.c +++ b/drivers/staging/iio/adc/ad7606_par.c @@ -119,7 +119,7 @@ static const struct dev_pm_ops ad7606_pm_ops = { #define AD7606_PAR_PM_OPS NULL #endif /* CONFIG_PM */ -static struct platform_device_id ad7606_driver_ids[] = { +static const struct platform_device_id ad7606_driver_ids[] = { { .name = "ad7606-8", .driver_data = ID_AD7606_8, diff --git a/drivers/staging/iio/iio_simple_dummy.h b/drivers/staging/iio/iio_simple_dummy.h index 34989bf248a7..d86ccb76eb6d 100644 --- a/drivers/staging/iio/iio_simple_dummy.h +++ b/drivers/staging/iio/iio_simple_dummy.h @@ -25,7 +25,7 @@ struct iio_dummy_regs; * @accel_calibscale: cache for acceleration calibscale * @lock: lock to ensure state is consistent * @event_irq: irq number for event line (faked) - * @event_val: cache for event theshold value + * @event_val: cache for event threshold value * @event_en: cache of whether event is enabled */ struct iio_dummy_state { diff --git a/drivers/staging/iio/iio_simple_dummy_events.c b/drivers/staging/iio/iio_simple_dummy_events.c index a5cd3bb219fe..c32ef78d8e5f 100644 --- a/drivers/staging/iio/iio_simple_dummy_events.c +++ b/drivers/staging/iio/iio_simple_dummy_events.c @@ -84,6 +84,7 @@ int iio_simple_dummy_write_event_config(struct iio_dev *indio_dev, default: return -EINVAL; } + break; case IIO_STEPS: switch (type) { case IIO_EV_TYPE_CHANGE: @@ -92,6 +93,7 @@ int iio_simple_dummy_write_event_config(struct iio_dev *indio_dev, default: return -EINVAL; } + break; default: return -EINVAL; } |