Commit 6a83fee5 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] C99 initializers for drivers/media/common/saa7146_video.c

From: "Art Haas" <ahaas@airmail.net>

Here's a small patch changing the GNU-style initializers to C99
initializers.
parent 7dabe99a
...@@ -381,41 +381,41 @@ static int s_fmt(struct saa7146_fh *fh, struct v4l2_format *f) ...@@ -381,41 +381,41 @@ static int s_fmt(struct saa7146_fh *fh, struct v4l2_format *f)
static struct v4l2_queryctrl controls[] = { static struct v4l2_queryctrl controls[] = {
{ {
id: V4L2_CID_BRIGHTNESS, .id = V4L2_CID_BRIGHTNESS,
name: "Brightness", .name = "Brightness",
minimum: 0, .minimum = 0,
maximum: 255, .maximum = 255,
step: 1, .step = 1,
default_value: 128, .default_value = 128,
type: V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
},{ },{
id: V4L2_CID_CONTRAST, .id = V4L2_CID_CONTRAST,
name: "Contrast", .name = "Contrast",
minimum: 0, .minimum = 0,
maximum: 127, .maximum = 127,
step: 1, .step = 1,
default_value: 64, .default_value = 64,
type: V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
},{ },{
id: V4L2_CID_SATURATION, .id = V4L2_CID_SATURATION,
name: "Saturation", .name = "Saturation",
minimum: 0, .minimum = 0,
maximum: 127, .maximum = 127,
step: 1, .step = 1,
default_value: 64, .default_value = 64,
type: V4L2_CTRL_TYPE_INTEGER, .type = V4L2_CTRL_TYPE_INTEGER,
},{ },{
id: V4L2_CID_VFLIP, .id = V4L2_CID_VFLIP,
name: "Vertical flip", .name = "Vertical flip",
minimum: 0, .minimum = 0,
maximum: 1, .maximum = 1,
type: V4L2_CTRL_TYPE_BOOLEAN, .type = V4L2_CTRL_TYPE_BOOLEAN,
},{ },{
id: V4L2_CID_HFLIP, .id = V4L2_CID_HFLIP,
name: "Horizontal flip", .name = "Horizontal flip",
minimum: 0, .minimum = 0,
maximum: 1, .maximum = 1,
type: V4L2_CTRL_TYPE_BOOLEAN, .type = V4L2_CTRL_TYPE_BOOLEAN,
}, },
}; };
static int NUM_CONTROLS = sizeof(controls)/sizeof(struct v4l2_queryctrl); static int NUM_CONTROLS = sizeof(controls)/sizeof(struct v4l2_queryctrl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment