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>
此提交包含在:
Bhumika Goyal
2017-10-16 17:18:43 +02:00
提交者 Christoph Hellwig
父節點 9736390234
當前提交 612a462acb
共有 8 個檔案被更改,包括 12 行新增12 行删除

查看文件

@@ -30,7 +30,7 @@ struct iio_hrtimer_info {
ktime_t period;
};
static struct config_item_type iio_hrtimer_type = {
static const struct config_item_type iio_hrtimer_type = {
.ct_owner = THIS_MODULE,
};

查看文件

@@ -36,7 +36,7 @@ struct iio_loop_info {
struct task_struct *task;
};
static struct config_item_type iio_loop_type = {
static const struct config_item_type iio_loop_type = {
.ct_owner = THIS_MODULE,
};