|
@@ -489,7 +489,8 @@ static struct iio_info ads1115_info = {
|
|
#ifdef CONFIG_OF
|
|
#ifdef CONFIG_OF
|
|
static int ads1015_get_channels_config_of(struct i2c_client *client)
|
|
static int ads1015_get_channels_config_of(struct i2c_client *client)
|
|
{
|
|
{
|
|
- struct ads1015_data *data = i2c_get_clientdata(client);
|
|
|
|
|
|
+ struct iio_dev *indio_dev = i2c_get_clientdata(client);
|
|
|
|
+ struct ads1015_data *data = iio_priv(indio_dev);
|
|
struct device_node *node;
|
|
struct device_node *node;
|
|
|
|
|
|
if (!client->dev.of_node ||
|
|
if (!client->dev.of_node ||
|