OSDN Git Service

iio: make function argument and some structures const
authorBhumika Goyal <bhumirks@gmail.com>
Mon, 16 Oct 2017 15:18:43 +0000 (17:18 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 19 Oct 2017 14:15:24 +0000 (16:15 +0200)
commit612a462acbb9f3bfc7c8433b44118b0a156560da
tree5dfe869425cc226f7f1d8c0cea04b609b61edffa
parent973639023444320d4fb5c17af58996463b3392d9
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>
drivers/iio/dummy/iio_simple_dummy.c
drivers/iio/industrialio-configfs.c
drivers/iio/industrialio-sw-device.c
drivers/iio/industrialio-sw-trigger.c
drivers/iio/trigger/iio-trig-hrtimer.c
drivers/iio/trigger/iio-trig-loop.c
include/linux/iio/sw_device.h
include/linux/iio/sw_trigger.h