Commit a62e256b authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Jonathan Cameron

iio:proximity: drop assign iio_info.driver_module and iio_trigger_ops.owner

The equivalent of both of these are now done via macro magic when
the relevant register calls are made.  The actual structure
elements will shortly go away.
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarLars-Peter Clausen <lars@metafoo.de>
parent 6a15fef2
...@@ -197,7 +197,6 @@ static int as3935_read_raw(struct iio_dev *indio_dev, ...@@ -197,7 +197,6 @@ static int as3935_read_raw(struct iio_dev *indio_dev,
} }
static const struct iio_info as3935_info = { static const struct iio_info as3935_info = {
.driver_module = THIS_MODULE,
.attrs = &as3935_attribute_group, .attrs = &as3935_attribute_group,
.read_raw = &as3935_read_raw, .read_raw = &as3935_read_raw,
}; };
...@@ -223,7 +222,6 @@ static irqreturn_t as3935_trigger_handler(int irq, void *private) ...@@ -223,7 +222,6 @@ static irqreturn_t as3935_trigger_handler(int irq, void *private)
} }
static const struct iio_trigger_ops iio_interrupt_trigger_ops = { static const struct iio_trigger_ops iio_interrupt_trigger_ops = {
.owner = THIS_MODULE,
}; };
static void as3935_event_work(struct work_struct *work) static void as3935_event_work(struct work_struct *work)
......
...@@ -249,7 +249,6 @@ static irqreturn_t lidar_trigger_handler(int irq, void *private) ...@@ -249,7 +249,6 @@ static irqreturn_t lidar_trigger_handler(int irq, void *private)
} }
static const struct iio_info lidar_info = { static const struct iio_info lidar_info = {
.driver_module = THIS_MODULE,
.read_raw = lidar_read_raw, .read_raw = lidar_read_raw,
}; };
......
...@@ -203,7 +203,6 @@ static int srf04_read_raw(struct iio_dev *indio_dev, ...@@ -203,7 +203,6 @@ static int srf04_read_raw(struct iio_dev *indio_dev,
} }
static const struct iio_info srf04_iio_info = { static const struct iio_info srf04_iio_info = {
.driver_module = THIS_MODULE,
.read_raw = srf04_read_raw, .read_raw = srf04_read_raw,
}; };
......
...@@ -436,7 +436,6 @@ static const struct iio_chan_spec srf08_channels[] = { ...@@ -436,7 +436,6 @@ static const struct iio_chan_spec srf08_channels[] = {
static const struct iio_info srf08_info = { static const struct iio_info srf08_info = {
.read_raw = srf08_read_raw, .read_raw = srf08_read_raw,
.attrs = &srf08_attribute_group, .attrs = &srf08_attribute_group,
.driver_module = THIS_MODULE,
}; };
/* /*
...@@ -445,7 +444,6 @@ static const struct iio_info srf08_info = { ...@@ -445,7 +444,6 @@ static const struct iio_info srf08_info = {
*/ */
static const struct iio_info srf02_info = { static const struct iio_info srf02_info = {
.read_raw = srf08_read_raw, .read_raw = srf08_read_raw,
.driver_module = THIS_MODULE,
}; };
static int srf08_probe(struct i2c_client *client, static int srf08_probe(struct i2c_client *client,
......
...@@ -615,7 +615,6 @@ static const struct attribute_group sx9500_attribute_group = { ...@@ -615,7 +615,6 @@ static const struct attribute_group sx9500_attribute_group = {
}; };
static const struct iio_info sx9500_info = { static const struct iio_info sx9500_info = {
.driver_module = THIS_MODULE,
.attrs = &sx9500_attribute_group, .attrs = &sx9500_attribute_group,
.read_raw = &sx9500_read_raw, .read_raw = &sx9500_read_raw,
.write_raw = &sx9500_write_raw, .write_raw = &sx9500_write_raw,
...@@ -650,7 +649,6 @@ static int sx9500_set_trigger_state(struct iio_trigger *trig, ...@@ -650,7 +649,6 @@ static int sx9500_set_trigger_state(struct iio_trigger *trig,
static const struct iio_trigger_ops sx9500_trigger_ops = { static const struct iio_trigger_ops sx9500_trigger_ops = {
.set_trigger_state = sx9500_set_trigger_state, .set_trigger_state = sx9500_set_trigger_state,
.owner = THIS_MODULE,
}; };
static irqreturn_t sx9500_trigger_handler(int irq, void *private) static irqreturn_t sx9500_trigger_handler(int irq, void *private)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment