media: vidtv: use a simpler name in platform_{device|driver}
authorDaniel W. S. Almeida <dwlsalmeida@gmail.com>
Wed, 6 Jan 2021 03:04:48 +0000 (04:04 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 27 Jan 2021 11:29:17 +0000 (12:29 +0100)
Change from "vidtv_bridge" to simply "vidtv" so that vidtv looks
more similar to the other media virtual drivers in /sys/bus/platform.

Signed-off-by: Daniel W. S. Almeida <dwlsalmeida@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/test-drivers/vidtv/vidtv_bridge.c
drivers/media/test-drivers/vidtv/vidtv_bridge.h

index 600e1c5..4ec6a2b 100644 (file)
@@ -564,13 +564,13 @@ static void vidtv_bridge_dev_release(struct device *dev)
 }
 
 static struct platform_device vidtv_bridge_dev = {
-       .name           = "vidtv_bridge",
+       .name           = VIDTV_PDEV_NAME,
        .dev.release    = vidtv_bridge_dev_release,
 };
 
 static struct platform_driver vidtv_bridge_driver = {
        .driver = {
-               .name                = "vidtv_bridge",
+               .name = VIDTV_PDEV_NAME,
        },
        .probe    = vidtv_bridge_probe,
        .remove   = vidtv_bridge_remove,
index da8ef7d..de47ce6 100644 (file)
@@ -16,6 +16,7 @@
  * For now, only one frontend is supported. See vidtv_start_streaming()
  */
 #define NUM_FE 1
+#define VIDTV_PDEV_NAME "vidtv"
 
 #include <linux/i2c.h>
 #include <linux/platform_device.h>