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

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
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -197,7 +197,6 @@ static int as3935_read_raw(struct iio_dev *indio_dev,
}

static const struct iio_info as3935_info = {
	.driver_module = THIS_MODULE,
	.attrs = &as3935_attribute_group,
	.read_raw = &as3935_read_raw,
};
@@ -223,7 +222,6 @@ err_read:
}

static const struct iio_trigger_ops iio_interrupt_trigger_ops = {
	.owner = THIS_MODULE,
};

static void as3935_event_work(struct work_struct *work)
+0 −1
Original line number Diff line number Diff line
@@ -249,7 +249,6 @@ static irqreturn_t lidar_trigger_handler(int irq, void *private)
}

static const struct iio_info lidar_info = {
	.driver_module = THIS_MODULE,
	.read_raw = lidar_read_raw,
};

+0 −1
Original line number Diff line number Diff line
@@ -203,7 +203,6 @@ static int srf04_read_raw(struct iio_dev *indio_dev,
}

static const struct iio_info srf04_iio_info = {
	.driver_module		= THIS_MODULE,
	.read_raw		= srf04_read_raw,
};

+0 −2
Original line number Diff line number Diff line
@@ -436,7 +436,6 @@ static const struct iio_chan_spec srf08_channels[] = {
static const struct iio_info srf08_info = {
	.read_raw = srf08_read_raw,
	.attrs = &srf08_attribute_group,
	.driver_module = THIS_MODULE,
};

/*
@@ -445,7 +444,6 @@ static const struct iio_info srf08_info = {
 */
static const struct iio_info srf02_info = {
	.read_raw = srf08_read_raw,
	.driver_module = THIS_MODULE,
};

static int srf08_probe(struct i2c_client *client,
+0 −2
Original line number Diff line number Diff line
@@ -615,7 +615,6 @@ static const struct attribute_group sx9500_attribute_group = {
};

static const struct iio_info sx9500_info = {
	.driver_module = THIS_MODULE,
	.attrs = &sx9500_attribute_group,
	.read_raw = &sx9500_read_raw,
	.write_raw = &sx9500_write_raw,
@@ -650,7 +649,6 @@ out:

static const struct iio_trigger_ops sx9500_trigger_ops = {
	.set_trigger_state = sx9500_set_trigger_state,
	.owner = THIS_MODULE,
};

static irqreturn_t sx9500_trigger_handler(int irq, void *private)