iio:orientation: drop assign iio_info.driver_module
authorJonathan Cameron <jic23@kernel.org>
Sun, 23 Jul 2017 16:26:02 +0000 (17:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 22 Aug 2017 20:33:36 +0000 (21:33 +0100)
The equivalent of this is now done via macro magic when
the relevant register call is made.  The actual structure
elements will shortly go away.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/iio/orientation/hid-sensor-incl-3d.c
drivers/iio/orientation/hid-sensor-rotation.c

index fd1b369..1e5451d 100644 (file)
@@ -186,7 +186,6 @@ static int incl_3d_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info incl_3d_info = {
-       .driver_module = THIS_MODULE,
        .read_raw = &incl_3d_read_raw,
        .write_raw = &incl_3d_write_raw,
 };
index 98fe0c5..a69db20 100644 (file)
@@ -138,7 +138,6 @@ static int dev_rot_write_raw(struct iio_dev *indio_dev,
 }
 
 static const struct iio_info dev_rot_info = {
-       .driver_module = THIS_MODULE,
        .read_raw_multi = &dev_rot_read_raw,
        .write_raw = &dev_rot_write_raw,
 };