summaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-sw-device.c
Commit message (Collapse)AuthorAgeFilesLines
* iio: make function argument and some structures constBhumika Goyal2017-10-191-3/+3
| | | | | | | | | | | | | | Make the argument of the functions iio_sw{d/t}_group_init_type_name const as they are only passed to the function config_group_init_type_name having the argument as const. Make the config_item_type structures const as they are either passed to the functions having the argument as const or they are stored in the const "ci_type" field of a config_item structure. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Acked-by: Jonathan Cameron <Jonathan.Cameron@Huawei.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
* iio: Add support for creating IIO devices via configfsDaniel Baluta2016-05-041-0/+182
This is similar with support for creating triggers via configfs. Devices will be hosted under: * /config/iio/devices We allow users to register "device types" under: * /config/iio/devices/<device_types>/ Signed-off-by: Daniel Baluta <daniel.baluta@intel.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>