]> git.baikalelectronics.ru Git - kernel.git/commit
iio:ti-ads1015: fix a wrong pointer definition.
authorGiorgio Dal Molin <giorgio.nicole@arcor.de>
Tue, 16 Aug 2016 18:43:37 +0000 (20:43 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 21 Aug 2016 10:00:45 +0000 (11:00 +0100)
commit2d6b88520014786fbe73d5f4167a206003f3c9d7
treeebdb600c0d9709f2cd5a5795890b410d11a2d189
parent2e07cee61b105a57ca61132be63cf9294391e479
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: Giorgio Dal Molin <giorgio.nicole@arcor.de>
Fixes: ad0bd1f25f79 ("iio: adc: Add TI ADS1015 ADC driver support")
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ti-ads1015.c