iio: core: move channel list & group to private iio device object
This change bit straightforward and simple, since the 'channel_attr_list' & 'chan_attr_group' fields are only used in 'industrialio-core.c'. This change moves to the private IIO device object Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
96fb1b6742
commit
207c2d27a0
@@ -506,9 +506,6 @@ struct iio_buffer_setup_ops {
|
||||
* @pollfunc_event: [DRIVER] function run on events trigger being received
|
||||
* @channels: [DRIVER] channel specification structure table
|
||||
* @num_channels: [DRIVER] number of channels specified in @channels.
|
||||
* @channel_attr_list: [INTERN] keep track of automatically created channel
|
||||
* attributes
|
||||
* @chan_attr_group: [INTERN] group for all attrs in base directory
|
||||
* @name: [DRIVER] name of the device.
|
||||
* @label: [DRIVER] unique name to identify which device this is
|
||||
* @info: [DRIVER] callbacks and constant info from driver
|
||||
@@ -551,8 +548,6 @@ struct iio_dev {
|
||||
struct iio_chan_spec const *channels;
|
||||
int num_channels;
|
||||
|
||||
struct list_head channel_attr_list;
|
||||
struct attribute_group chan_attr_group;
|
||||
const char *name;
|
||||
const char *label;
|
||||
const struct iio_info *info;
|
||||
|
||||
Reference in New Issue
Block a user