diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-10-16 17:18:43 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-10-19 16:15:24 +0200 |
commit | 612a462acbb9f3bfc7c8433b44118b0a156560da (patch) | |
tree | 5dfe869425cc226f7f1d8c0cea04b609b61edffa /drivers/iio/industrialio-configfs.c | |
parent | 973639023444320d4fb5c17af58996463b3392d9 (diff) | |
download | blackbird-op-linux-612a462acbb9f3bfc7c8433b44118b0a156560da.tar.gz blackbird-op-linux-612a462acbb9f3bfc7c8433b44118b0a156560da.zip |
iio: make function argument and some structures const
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>
Diffstat (limited to 'drivers/iio/industrialio-configfs.c')
-rw-r--r-- | drivers/iio/industrialio-configfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-configfs.c b/drivers/iio/industrialio-configfs.c index 45ce2bc47180..5a0aae119369 100644 --- a/drivers/iio/industrialio-configfs.c +++ b/drivers/iio/industrialio-configfs.c @@ -17,7 +17,7 @@ #include <linux/iio/iio.h> #include <linux/iio/configfs.h> -static struct config_item_type iio_root_group_type = { +static const struct config_item_type iio_root_group_type = { .ct_owner = THIS_MODULE, }; |