diff options
author | Joe Perches <joe@perches.com> | 2017-11-04 13:23:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-09-11 08:40:11 -0400 |
commit | 8643d237a2f7dab27c6c9189d24c5e7d4a5c5f68 (patch) | |
tree | 7c0cbda0ec8226684f6acaaac3870799c25d878e | |
parent | 703fe34bac0c9335d019f15c877cdb179971ddeb (diff) |
media: uvcvideo: Make some structs const
Move some data to text
$ size drivers/media/usb/uvc/uvc_ctrl.o*
text data bss dec hex filename
34323 2364 0 36687 8f4f drivers/media/usb/uvc/uvc_ctrl.o.new
28659 8028 0 36687 8f4f drivers/media/usb/uvc/uvc_ctrl.o.old
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r-- | drivers/media/usb/uvc/uvc_ctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/usb/uvc/uvc_ctrl.c b/drivers/media/usb/uvc/uvc_ctrl.c index c2ad102bd693..2cdd32ef1d43 100644 --- a/drivers/media/usb/uvc/uvc_ctrl.c +++ b/drivers/media/usb/uvc/uvc_ctrl.c | |||
@@ -38,7 +38,7 @@ | |||
38 | * Controls | 38 | * Controls |
39 | */ | 39 | */ |
40 | 40 | ||
41 | static struct uvc_control_info uvc_ctrls[] = { | 41 | static const struct uvc_control_info uvc_ctrls[] = { |
42 | { | 42 | { |
43 | .entity = UVC_GUID_UVC_PROCESSING, | 43 | .entity = UVC_GUID_UVC_PROCESSING, |
44 | .selector = UVC_PU_BRIGHTNESS_CONTROL, | 44 | .selector = UVC_PU_BRIGHTNESS_CONTROL, |
@@ -421,7 +421,7 @@ static void uvc_ctrl_set_rel_speed(struct uvc_control_mapping *mapping, | |||
421 | data[first+1] = min_t(int, abs(value), 0xff); | 421 | data[first+1] = min_t(int, abs(value), 0xff); |
422 | } | 422 | } |
423 | 423 | ||
424 | static struct uvc_control_mapping uvc_ctrl_mappings[] = { | 424 | static const struct uvc_control_mapping uvc_ctrl_mappings[] = { |
425 | { | 425 | { |
426 | .id = V4L2_CID_BRIGHTNESS, | 426 | .id = V4L2_CID_BRIGHTNESS, |
427 | .name = "Brightness", | 427 | .name = "Brightness", |