media: media/i2c/video-i2c: rename VFL_TYPE_GRABBER to _VIDEO
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 3 Feb 2020 11:41:16 +0000 (12:41 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 24 Feb 2020 15:53:39 +0000 (16:53 +0100)
'GRABBER' is a weird name, all other types map to the /dev
device names. Rename to 'VIDEO' to be consistent with the
other types.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Cc: Matt Ranostay <matt.ranostay@konsulko.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/i2c/video-i2c.c

index 0781417..3c770ec 100644 (file)
@@ -858,7 +858,7 @@ static int video_i2c_probe(struct i2c_client *client,
                }
        }
 
-       ret = video_register_device(&data->vdev, VFL_TYPE_GRABBER, -1);
+       ret = video_register_device(&data->vdev, VFL_TYPE_VIDEO, -1);
        if (ret < 0)
                goto error_pm_disable;