diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-01-21 22:29:49 +0530 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-01-22 13:21:42 +0000 |
commit | 3bdafc49f5df9f2f741c71b12b76d202211e06f6 (patch) | |
tree | 1e1abdbf0ddce7796d51b3ddea3093427ea206b6 | |
parent | d5d24bcc0a10a755ee77149e2f311c4ddafc19db (diff) | |
download | linux-stable-3bdafc49f5df9f2f741c71b12b76d202211e06f6.tar.gz linux-stable-3bdafc49f5df9f2f741c71b12b76d202211e06f6.tar.bz2 linux-stable-3bdafc49f5df9f2f741c71b12b76d202211e06f6.zip |
iio: industrialio-trigger: constify device_type structures
Declare device_type structure as const as it is only stored in the
type field of a device structure. This field is of type const, so add
const to declaration of device_type structure.
File size before:
text data bss dec hex filename
5389 208 48 5645 160d iio/industrialio-trigger.o
File size after:
text data bss dec hex filename
5453 176 48 5677 162d iio/industrialio-trigger.o
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/industrialio-trigger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/industrialio-trigger.c b/drivers/iio/industrialio-trigger.c index d0d869eb48f7..54c4d5854ff0 100644 --- a/drivers/iio/industrialio-trigger.c +++ b/drivers/iio/industrialio-trigger.c @@ -492,7 +492,7 @@ static void iio_trig_release(struct device *device) kfree(trig); } -static struct device_type iio_trig_type = { +static const struct device_type iio_trig_type = { .release = iio_trig_release, .groups = iio_trig_dev_groups, }; |