iio:stm32-lp-timer and ep93xx: drop assign iio_info.driver_module and iio_trigger_ops...
authorJonathan Cameron <jic23@kernel.org>
Tue, 26 Sep 2017 07:05:08 +0000 (08:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Sep 2017 07:38:57 +0000 (09:38 +0200)
The equivalent of both of these are now done via macro magic when
the relevant register calls are made.  The actual structure
elements have gone away.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/ep93xx_adc.c
drivers/iio/counter/stm32-lptimer-cnt.c
drivers/iio/trigger/stm32-lptimer-trigger.c

index a179ac476c6dc25a783770873c51a53d88a708ae..81c901507ad2432676bc0a9b6a6b811b26b677cd 100644 (file)
@@ -150,7 +150,6 @@ static int ep93xx_read_raw(struct iio_dev *iiodev,
 }
 
 static const struct iio_info ep93xx_adc_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = ep93xx_read_raw,
 };
 
index 1c5909bb160563fa5a7ba7a95284697b964a2760..81ae5f74216d5cac4c2361de0a76f10a487bb5ef 100644 (file)
@@ -178,7 +178,6 @@ static int stm32_lptim_read_raw(struct iio_dev *indio_dev,
 static const struct iio_info stm32_lptim_cnt_iio_info = {
        .read_raw = stm32_lptim_read_raw,
        .write_raw = stm32_lptim_write_raw,
-       .driver_module = THIS_MODULE,
 };
 
 static const char *const stm32_lptim_quadrature_modes[] = {
index 241eae6a4306abb013c67f274f36a618dd238705..de361d8799291d19df83d46ec1f464872ed994fa 100644 (file)
@@ -37,7 +37,6 @@ static int stm32_lptim_validate_device(struct iio_trigger *trig,
 }
 
 static const struct iio_trigger_ops stm32_lptim_trigger_ops = {
-       .owner = THIS_MODULE,
        .validate_device = stm32_lptim_validate_device,
 };