Commit 13a8c6c2 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Jonathan Cameron
Browse files

iio:humidity: 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 73bba670
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -215,7 +215,6 @@ static int am2315_read_raw(struct iio_dev *indio_dev,
}

static const struct iio_info am2315_info = {
	.driver_module		= THIS_MODULE,
	.read_raw		= am2315_read_raw,
};

+0 −1
Original line number Diff line number Diff line
@@ -284,7 +284,6 @@ err:
}

static const struct iio_info dht11_iio_info = {
	.driver_module		= THIS_MODULE,
	.read_raw		= dht11_read_raw,
};

+0 −1
Original line number Diff line number Diff line
@@ -357,7 +357,6 @@ static const struct iio_info hdc100x_info = {
	.read_raw = hdc100x_read_raw,
	.write_raw = hdc100x_write_raw,
	.attrs = &hdc100x_attribute_group,
	.driver_module = THIS_MODULE,
};

static int hdc100x_probe(struct i2c_client *client,
+0 −1
Original line number Diff line number Diff line
@@ -125,7 +125,6 @@ static int humidity_write_raw(struct iio_dev *indio_dev,
}

static const struct iio_info humidity_info = {
	.driver_module = THIS_MODULE,
	.read_raw = &humidity_read_raw,
	.write_raw = &humidity_write_raw,
};
+0 −1
Original line number Diff line number Diff line
@@ -47,7 +47,6 @@ static int hts221_trig_set_state(struct iio_trigger *trig, bool state)
}

static const struct iio_trigger_ops hts221_trigger_ops = {
	.owner = THIS_MODULE,
	.set_trigger_state = hts221_trig_set_state,
};

Loading