mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
media: staging/imx: Use a shorter name for driver
[ Upstream commit ce22c6f242b6d7b5e0318da2c92b5b00b5bbc698 ]
Currently v4l2-compliance tool returns the following output:
Compliance test for imx-media-captu device /dev/video0:
Driver Info:
Driver name : imx-media-captu
Card type : imx-media-capture
...
The driver name string is limited to 16 characters, so provide
a shorter name so that we can have a better output.
While at it, use the same shorter name for driver and card.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
46fab2db20
commit
548f67fb8c
1 changed files with 4 additions and 2 deletions
|
|
@ -26,6 +26,8 @@
|
|||
#include <media/imx.h>
|
||||
#include "imx-media.h"
|
||||
|
||||
#define IMX_CAPTURE_NAME "imx-capture"
|
||||
|
||||
struct capture_priv {
|
||||
struct imx_media_video_dev vdev;
|
||||
|
||||
|
|
@ -69,8 +71,8 @@ static int vidioc_querycap(struct file *file, void *fh,
|
|||
{
|
||||
struct capture_priv *priv = video_drvdata(file);
|
||||
|
||||
strscpy(cap->driver, "imx-media-capture", sizeof(cap->driver));
|
||||
strscpy(cap->card, "imx-media-capture", sizeof(cap->card));
|
||||
strscpy(cap->driver, IMX_CAPTURE_NAME, sizeof(cap->driver));
|
||||
strscpy(cap->card, IMX_CAPTURE_NAME, sizeof(cap->card));
|
||||
snprintf(cap->bus_info, sizeof(cap->bus_info),
|
||||
"platform:%s", priv->src_sd->name);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue