mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
UPSTREAM: [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 <bhumirks@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
(cherry picked from commit f03f02f9d2)
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user