Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4166b47c authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Jonathan Cameron
Browse files

iio:light: 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 79978a9b
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -171,7 +171,6 @@ static int acpi_als_read_raw(struct iio_dev *indio_dev,
}
}


static const struct iio_info acpi_als_info = {
static const struct iio_info acpi_als_info = {
	.driver_module		= THIS_MODULE,
	.read_raw		= acpi_als_read_raw,
	.read_raw		= acpi_als_read_raw,
};
};


+0 −1
Original line number Original line Diff line number Diff line
@@ -245,7 +245,6 @@ static const struct iio_info adjd_s311_info = {
	.read_raw = adjd_s311_read_raw,
	.read_raw = adjd_s311_read_raw,
	.write_raw = adjd_s311_write_raw,
	.write_raw = adjd_s311_write_raw,
	.update_scan_mode = adjd_s311_update_scan_mode,
	.update_scan_mode = adjd_s311_update_scan_mode,
	.driver_module = THIS_MODULE,
};
};


static int adjd_s311_probe(struct i2c_client *client,
static int adjd_s311_probe(struct i2c_client *client,
+0 −1
Original line number Original line Diff line number Diff line
@@ -168,7 +168,6 @@ static int al3320a_write_raw(struct iio_dev *indio_dev,
}
}


static const struct iio_info al3320a_info = {
static const struct iio_info al3320a_info = {
	.driver_module	= THIS_MODULE,
	.read_raw	= al3320a_read_raw,
	.read_raw	= al3320a_read_raw,
	.write_raw	= al3320a_write_raw,
	.write_raw	= al3320a_write_raw,
	.attrs		= &al3320a_attribute_group,
	.attrs		= &al3320a_attribute_group,
+0 −2
Original line number Original line Diff line number Diff line
@@ -337,12 +337,10 @@ static int apds9300_write_interrupt_config(struct iio_dev *indio_dev,
}
}


static const struct iio_info apds9300_info_no_irq = {
static const struct iio_info apds9300_info_no_irq = {
	.driver_module	= THIS_MODULE,
	.read_raw	= apds9300_read_raw,
	.read_raw	= apds9300_read_raw,
};
};


static const struct iio_info apds9300_info = {
static const struct iio_info apds9300_info = {
	.driver_module		= THIS_MODULE,
	.read_raw		= apds9300_read_raw,
	.read_raw		= apds9300_read_raw,
	.read_event_value	= apds9300_read_thresh,
	.read_event_value	= apds9300_read_thresh,
	.write_event_value	= apds9300_write_thresh,
	.write_event_value	= apds9300_write_thresh,
+0 −1
Original line number Original line Diff line number Diff line
@@ -744,7 +744,6 @@ static int apds9960_write_event_config(struct iio_dev *indio_dev,
}
}


static const struct iio_info apds9960_info = {
static const struct iio_info apds9960_info = {
	.driver_module = THIS_MODULE,
	.attrs = &apds9960_attribute_group,
	.attrs = &apds9960_attribute_group,
	.read_raw = apds9960_read_raw,
	.read_raw = apds9960_read_raw,
	.write_raw = apds9960_write_raw,
	.write_raw = apds9960_write_raw,
Loading