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

Commit bb377961 authored by Wei Yongjun's avatar Wei Yongjun Committed by Jonathan Cameron
Browse files

staging:iio:ad7291: add missing .driver_module to struct iio_info



Add missing .driver_module of struct iio_info. This prevents the
module from being removed from underneath its users.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent bc93aa76
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -517,6 +517,7 @@ static const struct iio_info ad7291_info = {
	.read_event_value = &ad7291_read_event_value,
	.read_event_value = &ad7291_read_event_value,
	.write_event_value = &ad7291_write_event_value,
	.write_event_value = &ad7291_write_event_value,
	.event_attrs = &ad7291_event_attribute_group,
	.event_attrs = &ad7291_event_attribute_group,
	.driver_module = THIS_MODULE,
};
};


static int ad7291_probe(struct i2c_client *client,
static int ad7291_probe(struct i2c_client *client,