From: Hans Verkuil <hans.verkuil@xxxxxxxxx> Also prefix bus_info with 'platform:' and something more specific than 'UART'. Signed-off-by: Hans Verkuil <hans.verkuil@xxxxxxxxx> --- drivers/media/radio/wl128x/fmdrv_v4l2.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/media/radio/wl128x/fmdrv_v4l2.c b/drivers/media/radio/wl128x/fmdrv_v4l2.c index b55012c..1d8fa30 100644 --- a/drivers/media/radio/wl128x/fmdrv_v4l2.c +++ b/drivers/media/radio/wl128x/fmdrv_v4l2.c @@ -197,11 +197,13 @@ static int fm_v4l2_vidioc_querycap(struct file *file, void *priv, strlcpy(capability->driver, FM_DRV_NAME, sizeof(capability->driver)); strlcpy(capability->card, FM_DRV_CARD_SHORT_NAME, sizeof(capability->card)); - sprintf(capability->bus_info, "UART"); - capability->capabilities = V4L2_CAP_HW_FREQ_SEEK | V4L2_CAP_TUNER | + snprintf(capability->bus_info, sizeof(capability->bus_info), + "platform:%s", FM_DRV_NAME); + capability->device_caps = V4L2_CAP_HW_FREQ_SEEK | V4L2_CAP_TUNER | V4L2_CAP_RADIO | V4L2_CAP_MODULATOR | V4L2_CAP_AUDIO | V4L2_CAP_READWRITE | V4L2_CAP_RDS_CAPTURE; + capability->capabilities = capability->device_caps | V4L2_CAP_DEVICE_CAPS; return 0; } -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html