Commit 33d23637 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mauro Carvalho Chehab

media: imx-media-csc-scaler: Use a shorter name for driver

Currently v4l2-compliance tool returns the following output:

Compliance test for imx-media-csc-s device /dev/video8:

Driver Info:
        Driver name      : imx-media-csc-s
        Card type        : imx-media-csc-scaler
        Bus info         : platform:imx-media-csc-scaler

The driver name string is limited to 16 characters, so provide
a shorter name in order to get a better output.

While at it, use the same shorter name for driver, card and platform.
Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent d45c9313
...@@ -25,6 +25,8 @@ ...@@ -25,6 +25,8 @@
#define fh_to_ctx(__fh) container_of(__fh, struct ipu_csc_scaler_ctx, fh) #define fh_to_ctx(__fh) container_of(__fh, struct ipu_csc_scaler_ctx, fh)
#define IMX_CSC_SCALER_NAME "imx-csc-scaler"
enum { enum {
V4L2_M2M_SRC = 0, V4L2_M2M_SRC = 0,
V4L2_M2M_DST = 1, V4L2_M2M_DST = 1,
...@@ -150,10 +152,10 @@ static void device_run(void *_ctx) ...@@ -150,10 +152,10 @@ static void device_run(void *_ctx)
static int ipu_csc_scaler_querycap(struct file *file, void *priv, static int ipu_csc_scaler_querycap(struct file *file, void *priv,
struct v4l2_capability *cap) struct v4l2_capability *cap)
{ {
strscpy(cap->driver, "imx-media-csc-scaler", sizeof(cap->driver)); strscpy(cap->driver, IMX_CSC_SCALER_NAME, sizeof(cap->driver));
strscpy(cap->card, "imx-media-csc-scaler", sizeof(cap->card)); strscpy(cap->card, IMX_CSC_SCALER_NAME, sizeof(cap->card));
strscpy(cap->bus_info, "platform:imx-media-csc-scaler", snprintf(cap->bus_info, sizeof(cap->bus_info),
sizeof(cap->bus_info)); "platform:%s", IMX_CSC_SCALER_NAME);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment