[media] v4l: Rename V4L2_MBUS_FMT_GREY8_1X8 to V4L2_MBUS_FMT_Y8_1X8
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 28 Sep 2010 10:01:44 +0000 (07:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 22 Mar 2011 07:53:23 +0000 (04:53 -0300)
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>
drivers/media/video/mt9m001.c
drivers/media/video/mt9v022.c
drivers/media/video/ov6650.c
drivers/media/video/sh_mobile_csi2.c
drivers/media/video/soc_mediabus.c
include/linux/v4l2-mediabus.h

index f7fc88d240e6e5bf56f3eb9b4fba1e72ecd9bf36..e2bbd8c35c9860a9ad1bd16d0ded17df64fae1ca 100644 (file)
@@ -79,7 +79,7 @@ static const struct mt9m001_datafmt mt9m001_colour_fmts[] = {
 static const struct mt9m001_datafmt mt9m001_monochrome_fmts[] = {
        /* Order important - see above */
        {V4L2_MBUS_FMT_Y10_1X10, V4L2_COLORSPACE_JPEG},
-       {V4L2_MBUS_FMT_GREY8_1X8, V4L2_COLORSPACE_JPEG},
+       {V4L2_MBUS_FMT_Y8_1X8, V4L2_COLORSPACE_JPEG},
 };
 
 struct mt9m001 {
index 6a784c87e5ffb1434297b1aa7d589a9f066a84ac..e313d83900922a8a9df8020f54d69e69c56e3bd4 100644 (file)
@@ -95,7 +95,7 @@ static const struct mt9v022_datafmt mt9v022_colour_fmts[] = {
 static const struct mt9v022_datafmt mt9v022_monochrome_fmts[] = {
        /* Order important - see above */
        {V4L2_MBUS_FMT_Y10_1X10, V4L2_COLORSPACE_JPEG},
-       {V4L2_MBUS_FMT_GREY8_1X8, V4L2_COLORSPACE_JPEG},
+       {V4L2_MBUS_FMT_Y8_1X8, V4L2_COLORSPACE_JPEG},
 };
 
 struct mt9v022 {
@@ -392,7 +392,7 @@ static int mt9v022_s_fmt(struct v4l2_subdev *sd,
         * icd->try_fmt(), datawidth is from our supported format list
         */
        switch (mf->code) {
-       case V4L2_MBUS_FMT_GREY8_1X8:
+       case V4L2_MBUS_FMT_Y8_1X8:
        case V4L2_MBUS_FMT_Y10_1X10:
                if (mt9v022->model != V4L2_IDENT_MT9V022IX7ATM)
                        return -EINVAL;
index cf93de98806894f36ff0a4504efe88d9658f06bf..fe8e3ebd9ce4c1687752c56143e131fbf6c3b208 100644 (file)
@@ -207,7 +207,7 @@ static enum v4l2_mbus_pixelcode ov6650_codes[] = {
        V4L2_MBUS_FMT_YVYU8_2X8,
        V4L2_MBUS_FMT_VYUY8_2X8,
        V4L2_MBUS_FMT_SBGGR8_1X8,
-       V4L2_MBUS_FMT_GREY8_1X8,
+       V4L2_MBUS_FMT_Y8_1X8,
 };
 
 static const struct v4l2_queryctrl ov6650_controls[] = {
@@ -800,7 +800,7 @@ static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf)
 
        /* select color matrix configuration for given color encoding */
        switch (code) {
-       case V4L2_MBUS_FMT_GREY8_1X8:
+       case V4L2_MBUS_FMT_Y8_1X8:
                dev_dbg(&client->dev, "pixel format GREY8_1X8\n");
                coma_mask |= COMA_RGB | COMA_WORD_SWAP | COMA_BYTE_SWAP;
                coma_set |= COMA_BW;
@@ -846,7 +846,7 @@ static int ov6650_s_fmt(struct v4l2_subdev *sd, struct v4l2_mbus_framefmt *mf)
        }
        priv->code = code;
 
-       if (code == V4L2_MBUS_FMT_GREY8_1X8 ||
+       if (code == V4L2_MBUS_FMT_Y8_1X8 ||
                        code == V4L2_MBUS_FMT_SBGGR8_1X8) {
                coml_mask = COML_ONE_CHANNEL;
                coml_set = 0;
@@ -936,8 +936,8 @@ static int ov6650_try_fmt(struct v4l2_subdev *sd,
 
        switch (mf->code) {
        case V4L2_MBUS_FMT_Y10_1X10:
-               mf->code = V4L2_MBUS_FMT_GREY8_1X8;
-       case V4L2_MBUS_FMT_GREY8_1X8:
+               mf->code = V4L2_MBUS_FMT_Y8_1X8;
+       case V4L2_MBUS_FMT_Y8_1X8:
        case V4L2_MBUS_FMT_YVYU8_2X8:
        case V4L2_MBUS_FMT_YUYV8_2X8:
        case V4L2_MBUS_FMT_VYUY8_2X8:
index 84a6468193183369e1fda6537479d9496c518ce4..dd1b81b1442bcbaa194f9f4830140e184a3d84af 100644 (file)
@@ -56,7 +56,7 @@ static int sh_csi2_try_fmt(struct v4l2_subdev *sd,
                switch (mf->code) {
                case V4L2_MBUS_FMT_UYVY8_2X8:           /* YUV422 */
                case V4L2_MBUS_FMT_YUYV8_1_5X8:         /* YUV420 */
-               case V4L2_MBUS_FMT_GREY8_1X8:           /* RAW8 */
+               case V4L2_MBUS_FMT_Y8_1X8:              /* RAW8 */
                case V4L2_MBUS_FMT_SBGGR8_1X8:
                case V4L2_MBUS_FMT_SGRBG8_1X8:
                        break;
@@ -67,7 +67,7 @@ static int sh_csi2_try_fmt(struct v4l2_subdev *sd,
                break;
        case SH_CSI2I:
                switch (mf->code) {
-               case V4L2_MBUS_FMT_GREY8_1X8:           /* RAW8 */
+               case V4L2_MBUS_FMT_Y8_1X8:              /* RAW8 */
                case V4L2_MBUS_FMT_SBGGR8_1X8:
                case V4L2_MBUS_FMT_SGRBG8_1X8:
                case V4L2_MBUS_FMT_SBGGR10_1X10:        /* RAW10 */
@@ -111,7 +111,7 @@ static int sh_csi2_s_fmt(struct v4l2_subdev *sd,
        case V4L2_MBUS_FMT_RGB565_2X8_BE:
                tmp |= 0x22;    /* RGB565 */
                break;
-       case V4L2_MBUS_FMT_GREY8_1X8:
+       case V4L2_MBUS_FMT_Y8_1X8:
        case V4L2_MBUS_FMT_SBGGR8_1X8:
        case V4L2_MBUS_FMT_SGRBG8_1X8:
                tmp |= 0x2a;    /* RAW8 */
index 73b4138709e40ebb521986d639c5b4fdd132f3ab..ed77aa055b633713f696cacb4612857cfa18c308 100644 (file)
@@ -88,7 +88,7 @@ static const struct soc_mbus_pixelfmt mbus_fmt[] = {
                .packing                = SOC_MBUS_PACKING_EXTEND16,
                .order                  = SOC_MBUS_ORDER_LE,
        },
-       [MBUS_IDX(GREY8_1X8)] = {
+       [MBUS_IDX(Y8_1X8)] = {
                .fourcc                 = V4L2_PIX_FMT_GREY,
                .name                   = "Grey",
                .bits_per_sample        = 8,
index feeb88cf705eaa61e57769dfd77f91cc71c0e9d0..dc1d5c0432d4cf35b4a37c6e9b08888533a6a46e 100644 (file)
@@ -45,7 +45,7 @@ enum v4l2_mbus_pixelcode {
        V4L2_MBUS_FMT_BGR565_2X8_BE,
        V4L2_MBUS_FMT_SBGGR8_1X8,
        V4L2_MBUS_FMT_SBGGR10_1X10,
-       V4L2_MBUS_FMT_GREY8_1X8,
+       V4L2_MBUS_FMT_Y8_1X8,
        V4L2_MBUS_FMT_Y10_1X10,
        V4L2_MBUS_FMT_SBGGR10_2X8_PADHI_LE,
        V4L2_MBUS_FMT_SBGGR10_2X8_PADLO_LE,