From: Bhumika Goyal Date: Sat, 19 Aug 2017 08:22:15 +0000 (-0300) Subject: [media] media: rc: make device_type const X-Git-Tag: v4.19~2007^2~321 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f03f02f9d261902a5761f02ff03a0620ed4f9d0d;p=platform%2Fkernel%2Flinux-rpi.git [media] media: rc: make device_type const Make this const as it is only stored in the type field of a device structure, which is const. Done using Coccinelle. Signed-off-by: Bhumika Goyal Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/rc-main.c b/drivers/media/rc/rc-main.c index 981cccd..33bddba 100644 --- a/drivers/media/rc/rc-main.c +++ b/drivers/media/rc/rc-main.c @@ -1529,7 +1529,7 @@ static const struct attribute_group rc_dev_wakeup_filter_attr_grp = { .attrs = rc_dev_wakeup_filter_attrs, }; -static struct device_type rc_dev_type = { +static const struct device_type rc_dev_type = { .release = rc_dev_release, .uevent = rc_dev_uevent, };