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

Skip to content
Commit 522caebb authored by Giorgio Dal Molin's avatar Giorgio Dal Molin Committed by Jonathan Cameron
Browse files

iio:ti-ads1015: fix a wrong pointer definition.



The call to i2c_get_clientdata(client) returns a struct iio_dev*, not
the needed struct ads1015_data*. We need here an intermediate step as
in the function: void ads1015_get_channels_config(struct i2c_client *client).

Signed-off-by: default avatarGiorgio Dal Molin <giorgio.nicole@arcor.de>
Fixes: ecc24e72 ("iio: adc: Add TI ADS1015 ADC driver support")
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent c2ab4474
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment