diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-12-29 05:49:41 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-30 06:40:07 -0500 |
commit | cc611b8aef7a8a9a2e614f1bdf3e2b8f066c8c8d (patch) | |
tree | 1d05177ca24588bbeba596f44704af4bf109b16b /drivers/media/video/gspca/sunplus.c | |
parent | 4c98834addfee3fdd42c505c37569261bf669d94 (diff) |
V4L/DVB (10049): gspca - many subdrivers: Set 'const' the pixel format table.
Signed-off-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/sunplus.c')
-rw-r--r-- | drivers/media/video/gspca/sunplus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c index bd9288665a80..6d904d5e4c74 100644 --- a/drivers/media/video/gspca/sunplus.c +++ b/drivers/media/video/gspca/sunplus.c | |||
@@ -123,7 +123,7 @@ static struct ctrl sd_ctrls[] = { | |||
123 | }, | 123 | }, |
124 | }; | 124 | }; |
125 | 125 | ||
126 | static struct v4l2_pix_format vga_mode[] = { | 126 | static const struct v4l2_pix_format vga_mode[] = { |
127 | {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | 127 | {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
128 | .bytesperline = 320, | 128 | .bytesperline = 320, |
129 | .sizeimage = 320 * 240 * 3 / 8 + 590, | 129 | .sizeimage = 320 * 240 * 3 / 8 + 590, |
@@ -136,7 +136,7 @@ static struct v4l2_pix_format vga_mode[] = { | |||
136 | .priv = 1}, | 136 | .priv = 1}, |
137 | }; | 137 | }; |
138 | 138 | ||
139 | static struct v4l2_pix_format custom_mode[] = { | 139 | static const struct v4l2_pix_format custom_mode[] = { |
140 | {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | 140 | {320, 240, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
141 | .bytesperline = 320, | 141 | .bytesperline = 320, |
142 | .sizeimage = 320 * 240 * 3 / 8 + 590, | 142 | .sizeimage = 320 * 240 * 3 / 8 + 590, |
@@ -149,7 +149,7 @@ static struct v4l2_pix_format custom_mode[] = { | |||
149 | .priv = 1}, | 149 | .priv = 1}, |
150 | }; | 150 | }; |
151 | 151 | ||
152 | static struct v4l2_pix_format vga_mode2[] = { | 152 | static const struct v4l2_pix_format vga_mode2[] = { |
153 | {176, 144, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, | 153 | {176, 144, V4L2_PIX_FMT_JPEG, V4L2_FIELD_NONE, |
154 | .bytesperline = 176, | 154 | .bytesperline = 176, |
155 | .sizeimage = 176 * 144 * 3 / 8 + 590, | 155 | .sizeimage = 176 * 144 * 3 / 8 + 590, |