mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 12:10:52 -04:00
iio: core: iio_chan_spec_ext_info: Add private handle
There is currently no user, but we might need it in future. So better add it now, before we have to convert drivers afterwards. Signed-off-by: Michael Hennerich <[email protected]> Acked-by: Jonathan Cameron <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
73e016ef94
commit
fc6d11398e
4 changed files with 22 additions and 12 deletions
|
|
@ -281,7 +281,7 @@ static ssize_t iio_read_channel_ext_info(struct device *dev,
|
|||
|
||||
ext_info = &this_attr->c->ext_info[this_attr->address];
|
||||
|
||||
return ext_info->read(indio_dev, this_attr->c, buf);
|
||||
return ext_info->read(indio_dev, ext_info->private, this_attr->c, buf);
|
||||
}
|
||||
|
||||
static ssize_t iio_write_channel_ext_info(struct device *dev,
|
||||
|
|
@ -295,7 +295,8 @@ static ssize_t iio_write_channel_ext_info(struct device *dev,
|
|||
|
||||
ext_info = &this_attr->c->ext_info[this_attr->address];
|
||||
|
||||
return ext_info->write(indio_dev, this_attr->c, buf, len);
|
||||
return ext_info->write(indio_dev, ext_info->private,
|
||||
this_attr->c, buf, len);
|
||||
}
|
||||
|
||||
static ssize_t iio_read_channel_info(struct device *dev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue