diff options
author | Benoit Parrot | 2017-09-20 13:47:34 -0500 |
---|---|---|
committer | Jean-Jacques Hiblot | 2018-02-19 05:09:42 -0600 |
commit | 7393b66192f27470cf10dd43488be3906ac497ef (patch) | |
tree | 3eeec125e3e07110717b4fceadb8c7f58f429960 | |
parent | bc799e4b6f2c4c035f85ee8949130bb9c79debca (diff) | |
download | kernel-omap-7393b66192f27470cf10dd43488be3906ac497ef.tar.gz kernel-omap-7393b66192f27470cf10dd43488be3906ac497ef.tar.xz kernel-omap-7393b66192f27470cf10dd43488be3906ac497ef.zip |
drm/omap: omap_wb_cap: Use module name as card name
commit c201a41c852ff1ac12e848e51b5e251adccd029b ti-linux-4.9.y
To be consistent between the capture and the m2m driver section,
we should use the same scheme as the 'card' name for both of them.
In this case we used the MODULE_NAME instead of another hard
coded string.
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_wb_cap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_wb_cap.c b/drivers/gpu/drm/omapdrm/omap_wb_cap.c index 04554da11d00..c7a12c542bf3 100644 --- a/drivers/gpu/drm/omapdrm/omap_wb_cap.c +++ b/drivers/gpu/drm/omapdrm/omap_wb_cap.c | |||
@@ -539,7 +539,7 @@ static int wbcap_querycap(struct file *file, void *priv, | |||
539 | struct wbcap_dev *wbcap = video_drvdata(file); | 539 | struct wbcap_dev *wbcap = video_drvdata(file); |
540 | 540 | ||
541 | strlcpy(cap->driver, WBCAP_MODULE_NAME, sizeof(cap->driver)); | 541 | strlcpy(cap->driver, WBCAP_MODULE_NAME, sizeof(cap->driver)); |
542 | strlcpy(cap->card, "wbcap", sizeof(cap->card)); | 542 | strlcpy(cap->card, WBCAP_MODULE_NAME, sizeof(cap->card)); |
543 | snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", | 543 | snprintf(cap->bus_info, sizeof(cap->bus_info), "platform:%s", |
544 | wbcap->v4l2_dev.name); | 544 | wbcap->v4l2_dev.name); |
545 | cap->device_caps = V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_READWRITE | | 545 | cap->device_caps = V4L2_CAP_VIDEO_CAPTURE_MPLANE | V4L2_CAP_READWRITE | |