aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-09-28 06:01:44 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 03:53:23 -0400
commit076704332ca6da550cbc279918ef8b88b4ac1e45 (patch)
tree0a924fb5817d63f33f329992372d3a4215d10d80 /drivers
parent84d0688dfc7eedb2147532bf52ff7073d5c3c7b9 (diff)
[media] v4l: Rename V4L2_MBUS_FMT_GREY8_1X8 to V4L2_MBUS_FMT_Y8_1X8
For consistency with the V4L2_MBUS_FMT_Y10_1X10 format. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/mt9m001.c2
-rw-r--r--drivers/media/video/mt9v022.c4
-rw-r--r--drivers/media/video/ov6650.c10
-rw-r--r--drivers/media/video/sh_mobile_csi2.c6
-rw-r--r--drivers/media/video/soc_mediabus.c2
5 files changed, 12 insertions, 12 deletions
diff --git a/drivers/media/video/mt9m001.c b/drivers/media/video/mt9m001.c
index f7fc88d240e6..e2bbd8c35c98 100644
--- a/drivers/media/video/mt9m001.c
+++ b/drivers/media/video/mt9m001.c
@@ -79,7 +79,7 @@ static const struct mt9m001_datafmt mt9m001_colour_fmts[] = {
79static const struct mt9m001_datafmt mt9m001_monochrome_fmts[] = { 79static const struct mt9m001_datafmt mt9m001_monochrome_fmts[] = {
80 /* Order important - see above */ 80 /* Order important - see above */
81 {V4L2_MBUS_FMT_Y10_1X10, V4L2_COLORSPACE_JPEG}, 81 {V4L2_MBUS_FMT_Y10_1X10, V4L2_COLORSPACE_JPEG},
82 {V4L2_MBUS_FMT_GREY8_1X8, V4L2_COLORSPACE_JPEG}, 82 {V4L2_MBUS_FMT_Y8_1X8, V4L2_COLORSPACE_JPEG},
83}; 83};
84 84
85struct mt9m001 { 85struct mt9m001 {
diff --git a/drivers/media/video/mt9v022.c b/drivers/media/video/mt9v022.c
index 6a784c87e5ff..e313d8390092 100644
--- a/drivers/media/video/mt9v022.c
+++ b/drivers/media/video/mt9v022.c
@@ -95,7 +95,7 @@ static const struct mt9v022_datafmt mt9v022_colour_fmts[] = {
95static const struct mt9v022_datafmt mt9v022_monochrome_fmts[] = { 95static const struct mt9v022_datafmt mt9v022_monochrome_fmts[] = {
96 /* Order important - see above */ 96 /* Order important - see above */
97 {V4L2_MBUS_FMT_Y10_1X10, V4L2_COLORSPACE_JPEG}, 97 {V4L2_MBUS_FMT_Y10_1X10, V4L2_COLORSPACE_JPEG},
98 {V4L2_MBUS_FMT_GREY8_1X8, V4L2_COLORSPACE_JPEG}, 98 {V4L2_MBUS_FMT_Y8_1X8, V4L2_COLORSPACE_JPEG},
99}; 99};
100 100
101struct mt9v022 { 101struct mt9v022 {
@@ -392,7 +392,7 @@ static int mt9v022_s_fmt(struct v4l2_subdev *sd,
392 * icd->try_fmt(), datawidth is from our supported format list 392 * icd->try_fmt(), datawidth is from our supported format list
393 */ 393 */
394 switch (mf->code) { 394 switch (mf->code) {
395 case V4L2_MBUS_FMT_GREY8_1X8: 395 case V4L2_MBUS_FMT_Y8_1X8:
396 case V4L2_MBUS_FMT_Y10_1X10: 396 case V4L2_MBUS_FMT_Y10_1X10:
397 if (mt9v022->model != V4L2_IDENT_MT9V022IX7ATM) 397 if (mt9v022->model != V4L2_IDENT_MT9V022IX7ATM)
398 return -EINVAL; 398 return -EINVAL;
diff --git a/drivers/media/video/ov6650.c b/drivers/media/video/ov6650.c
index cf93de988068..fe8e3ebd9ce4 100644
--- a/drivers/media/video/ov6650.c
+++ b/drivers/media/video/ov6650.c
@@ -207,7 +207,7 @@ static enum v4l2_mbus_pixelcode ov6650_codes[] = {
207 V4L2_MBUS_FMT_YVYU8_2X8, 207 V4L2_MBUS_FMT_YVYU8_2X8,
208 V4L2_MBUS_FMT_VYUY8_2X8, 208 V4L2_MBUS_FMT_VYUY8_2X8,
209 V4L2_MBUS_FMT_SBGGR8_1X8, 209 V4L2_MBUS_FMT_SBGGR8_1X8,
210 V4L2_MBUS_FMT_GREY8_1X8, 210 V4L2_MBUS_FMT_Y8_1X8,
211}; 211};
212 212
213static const struct v4l2_queryctrl ov6650_controls[] = { 213static const struct v4l2_queryctrl ov6650_controls[] = {
@@ -800,7 +800,7 @@ static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf)
800 800
801 /* select color matrix configuration for given color encoding */ 801 /* select color matrix configuration for given color encoding */
802 switch (code) { 802 switch (code) {
803 case V4L2_MBUS_FMT_GREY8_1X8: 803 case V4L2_MBUS_FMT_Y8_1X8:
804 dev_dbg(&client->dev, "pixel format GREY8_1X8\n"); 804 dev_dbg(&client->dev, "pixel format GREY8_1X8\n");
805 coma_mask |= COMA_RGB | COMA_WORD_SWAP | COMA_BYTE_SWAP; 805 coma_mask |= COMA_RGB | COMA_WORD_SWAP | COMA_BYTE_SWAP;
806 coma_set |= COMA_BW; 806 coma_set |= COMA_BW;
@@ -846,7 +846,7 @@ static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf)
846 } 846 }
847 priv->code = code; 847 priv->code = code;
848 848
849 if (code == V4L2_MBUS_FMT_GREY8_1X8 || 849 if (code == V4L2_MBUS_FMT_Y8_1X8 ||
850 code == V4L2_MBUS_FMT_SBGGR8_1X8) { 850 code == V4L2_MBUS_FMT_SBGGR8_1X8) {
851 coml_mask = COML_ONE_CHANNEL; 851 coml_mask = COML_ONE_CHANNEL;
852 coml_set = 0; 852 coml_set = 0;
@@ -936,8 +936,8 @@ static int ov6650_try_fmt(struct v4l2_subdev *sd,
936 936
937 switch (mf->code) { 937 switch (mf->code) {
938 case V4L2_MBUS_FMT_Y10_1X10: 938 case V4L2_MBUS_FMT_Y10_1X10:
939 mf->code = V4L2_MBUS_FMT_GREY8_1X8; 939 mf->code = V4L2_MBUS_FMT_Y8_1X8;
940 case V4L2_MBUS_FMT_GREY8_1X8: 940 case V4L2_MBUS_FMT_Y8_1X8:
941 case V4L2_MBUS_FMT_YVYU8_2X8: 941 case V4L2_MBUS_FMT_YVYU8_2X8:
942 case V4L2_MBUS_FMT_YUYV8_2X8: 942 case V4L2_MBUS_FMT_YUYV8_2X8:
943 case V4L2_MBUS_FMT_VYUY8_2X8: 943 case V4L2_MBUS_FMT_VYUY8_2X8:
diff --git a/drivers/media/video/sh_mobile_csi2.c b/drivers/media/video/sh_mobile_csi2.c
index 84a646819318..dd1b81b1442b 100644
--- a/drivers/media/video/sh_mobile_csi2.c
+++ b/drivers/media/video/sh_mobile_csi2.c
@@ -56,7 +56,7 @@ static int sh_csi2_try_fmt(struct v4l2_subdev *sd,
56 switch (mf->code) { 56 switch (mf->code) {
57 case V4L2_MBUS_FMT_UYVY8_2X8: /* YUV422 */ 57 case V4L2_MBUS_FMT_UYVY8_2X8: /* YUV422 */
58 case V4L2_MBUS_FMT_YUYV8_1_5X8: /* YUV420 */ 58 case V4L2_MBUS_FMT_YUYV8_1_5X8: /* YUV420 */
59 case V4L2_MBUS_FMT_GREY8_1X8: /* RAW8 */ 59 case V4L2_MBUS_FMT_Y8_1X8: /* RAW8 */
60 case V4L2_MBUS_FMT_SBGGR8_1X8: 60 case V4L2_MBUS_FMT_SBGGR8_1X8:
61 case V4L2_MBUS_FMT_SGRBG8_1X8: 61 case V4L2_MBUS_FMT_SGRBG8_1X8:
62 break; 62 break;
@@ -67,7 +67,7 @@ static int sh_csi2_try_fmt(struct v4l2_subdev *sd,
67 break; 67 break;
68 case SH_CSI2I: 68 case SH_CSI2I:
69 switch (mf->code) { 69 switch (mf->code) {
70 case V4L2_MBUS_FMT_GREY8_1X8: /* RAW8 */ 70 case V4L2_MBUS_FMT_Y8_1X8: /* RAW8 */
71 case V4L2_MBUS_FMT_SBGGR8_1X8: 71 case V4L2_MBUS_FMT_SBGGR8_1X8:
72 case V4L2_MBUS_FMT_SGRBG8_1X8: 72 case V4L2_MBUS_FMT_SGRBG8_1X8:
73 case V4L2_MBUS_FMT_SBGGR10_1X10: /* RAW10 */ 73 case V4L2_MBUS_FMT_SBGGR10_1X10: /* RAW10 */
@@ -111,7 +111,7 @@ static int sh_csi2_s_fmt(struct v4l2_subdev *sd,
111 case V4L2_MBUS_FMT_RGB565_2X8_BE: 111 case V4L2_MBUS_FMT_RGB565_2X8_BE:
112 tmp |= 0x22; /* RGB565 */ 112 tmp |= 0x22; /* RGB565 */
113 break; 113 break;
114 case V4L2_MBUS_FMT_GREY8_1X8: 114 case V4L2_MBUS_FMT_Y8_1X8:
115 case V4L2_MBUS_FMT_SBGGR8_1X8: 115 case V4L2_MBUS_FMT_SBGGR8_1X8:
116 case V4L2_MBUS_FMT_SGRBG8_1X8: 116 case V4L2_MBUS_FMT_SGRBG8_1X8:
117 tmp |= 0x2a; /* RAW8 */ 117 tmp |= 0x2a; /* RAW8 */
diff --git a/drivers/media/video/soc_mediabus.c b/drivers/media/video/soc_mediabus.c
index 73b4138709e4..ed77aa055b63 100644
--- a/drivers/media/video/soc_mediabus.c
+++ b/drivers/media/video/soc_mediabus.c
@@ -88,7 +88,7 @@ static const struct soc_mbus_pixelfmt mbus_fmt[] = {
88 .packing = SOC_MBUS_PACKING_EXTEND16, 88 .packing = SOC_MBUS_PACKING_EXTEND16,
89 .order = SOC_MBUS_ORDER_LE, 89 .order = SOC_MBUS_ORDER_LE,
90 }, 90 },
91 [MBUS_IDX(GREY8_1X8)] = { 91 [MBUS_IDX(Y8_1X8)] = {
92 .fourcc = V4L2_PIX_FMT_GREY, 92 .fourcc = V4L2_PIX_FMT_GREY,
93 .name = "Grey", 93 .name = "Grey",
94 .bits_per_sample = 8, 94 .bits_per_sample = 8,