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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
703fe34bac
commit
8643d237a2
@@ -38,7 +38,7 @@
|
|||||||
* Controls
|
* Controls
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static struct uvc_control_info uvc_ctrls[] = {
|
static const struct uvc_control_info uvc_ctrls[] = {
|
||||||
{
|
{
|
||||||
.entity = UVC_GUID_UVC_PROCESSING,
|
.entity = UVC_GUID_UVC_PROCESSING,
|
||||||
.selector = UVC_PU_BRIGHTNESS_CONTROL,
|
.selector = UVC_PU_BRIGHTNESS_CONTROL,
|
||||||
@@ -421,7 +421,7 @@ static void uvc_ctrl_set_rel_speed(struct uvc_control_mapping *mapping,
|
|||||||
data[first+1] = min_t(int, abs(value), 0xff);
|
data[first+1] = min_t(int, abs(value), 0xff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct uvc_control_mapping uvc_ctrl_mappings[] = {
|
static const struct uvc_control_mapping uvc_ctrl_mappings[] = {
|
||||||
{
|
{
|
||||||
.id = V4L2_CID_BRIGHTNESS,
|
.id = V4L2_CID_BRIGHTNESS,
|
||||||
.name = "Brightness",
|
.name = "Brightness",
|
||||||
|
Reference in New Issue
Block a user