diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-11-25 14:15:29 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-05-25 11:51:35 -0400 |
commit | f216ccb3d9d5603f750e50dbe66190de87dc52d8 (patch) | |
tree | 66e99a3aa379a659543640b9918c736ffc0506df /drivers/media/i2c | |
parent | bedc3939dc866e0bf2648ca3700119bf6c3e54de (diff) |
[media] adv7604: Don't put info string arrays on the stack
We do not want to modify the info string arrays ever, so no need to
waste stack space for them. While we are at it also make them const.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/i2c')
-rw-r--r-- | drivers/media/i2c/adv7604.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/i2c/adv7604.c b/drivers/media/i2c/adv7604.c index 7358853bf092..dd0a9a96305d 100644 --- a/drivers/media/i2c/adv7604.c +++ b/drivers/media/i2c/adv7604.c | |||
@@ -1882,13 +1882,13 @@ static int adv7604_log_status(struct v4l2_subdev *sd) | |||
1882 | struct stdi_readback stdi; | 1882 | struct stdi_readback stdi; |
1883 | u8 reg_io_0x02 = io_read(sd, 0x02); | 1883 | u8 reg_io_0x02 = io_read(sd, 0x02); |
1884 | 1884 | ||
1885 | char *csc_coeff_sel_rb[16] = { | 1885 | static const char * const csc_coeff_sel_rb[16] = { |
1886 | "bypassed", "YPbPr601 -> RGB", "reserved", "YPbPr709 -> RGB", | 1886 | "bypassed", "YPbPr601 -> RGB", "reserved", "YPbPr709 -> RGB", |
1887 | "reserved", "RGB -> YPbPr601", "reserved", "RGB -> YPbPr709", | 1887 | "reserved", "RGB -> YPbPr601", "reserved", "RGB -> YPbPr709", |
1888 | "reserved", "YPbPr709 -> YPbPr601", "YPbPr601 -> YPbPr709", | 1888 | "reserved", "YPbPr709 -> YPbPr601", "YPbPr601 -> YPbPr709", |
1889 | "reserved", "reserved", "reserved", "reserved", "manual" | 1889 | "reserved", "reserved", "reserved", "reserved", "manual" |
1890 | }; | 1890 | }; |
1891 | char *input_color_space_txt[16] = { | 1891 | static const char * const input_color_space_txt[16] = { |
1892 | "RGB limited range (16-235)", "RGB full range (0-255)", | 1892 | "RGB limited range (16-235)", "RGB full range (0-255)", |
1893 | "YCbCr Bt.601 (16-235)", "YCbCr Bt.709 (16-235)", | 1893 | "YCbCr Bt.601 (16-235)", "YCbCr Bt.709 (16-235)", |
1894 | "xvYCC Bt.601", "xvYCC Bt.709", | 1894 | "xvYCC Bt.601", "xvYCC Bt.709", |
@@ -1896,12 +1896,12 @@ static int adv7604_log_status(struct v4l2_subdev *sd) | |||
1896 | "invalid", "invalid", "invalid", "invalid", "invalid", | 1896 | "invalid", "invalid", "invalid", "invalid", "invalid", |
1897 | "invalid", "invalid", "automatic" | 1897 | "invalid", "invalid", "automatic" |
1898 | }; | 1898 | }; |
1899 | char *rgb_quantization_range_txt[] = { | 1899 | static const char * const rgb_quantization_range_txt[] = { |
1900 | "Automatic", | 1900 | "Automatic", |
1901 | "RGB limited range (16-235)", | 1901 | "RGB limited range (16-235)", |
1902 | "RGB full range (0-255)", | 1902 | "RGB full range (0-255)", |
1903 | }; | 1903 | }; |
1904 | char *deep_color_mode_txt[4] = { | 1904 | static const char * const deep_color_mode_txt[4] = { |
1905 | "8-bits per channel", | 1905 | "8-bits per channel", |
1906 | "10-bits per channel", | 1906 | "10-bits per channel", |
1907 | "12-bits per channel", | 1907 | "12-bits per channel", |