[media] omap3isp: Report the ISP revision through the media controller API
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 11 Oct 2011 09:34:40 +0000 (06:34 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 3 Nov 2011 20:33:48 +0000 (18:33 -0200)
Set the media_device::hw_revision field to the ISP revision number.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/isp.c

index c8f147ef320dae5d496aa57febd2440ace303a52..b818cacf420f89e4932ea02b18bf3ad3539ab829 100644 (file)
@@ -1704,6 +1704,7 @@ static int isp_register_entities(struct isp_device *isp)
        isp->media_dev.dev = isp->dev;
        strlcpy(isp->media_dev.model, "TI OMAP3 ISP",
                sizeof(isp->media_dev.model));
+       isp->media_dev.hw_revision = isp->revision;
        isp->media_dev.link_notify = isp_pipeline_link_notify;
        ret = media_device_register(&isp->media_dev);
        if (ret < 0) {