Use sysfs to locate devices nodes
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 20 Aug 2010 08:57:19 +0000 (10:57 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 20 Aug 2010 08:57:19 +0000 (10:57 +0200)
commit0e61c58c9f73dedbde3d35cdca608038643c2547
tree6a1590a3b3d2170b74346f586b490be1e97115df
parent468bc21f8c6c7eca85477680752052e1ead0e515
Use sysfs to locate devices nodes

Changes made during the v4l2_subdev API review renamed the /dev/subdev*
device nodes to /dev/v4l-subdev*. Instead of hardcoding the names in the
media-ctl application, use sysfs to retrieve the kernel device name and
assume the device node name is identical.

This isn't a perfect solution, we should really use libudev, but it will
do for now.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
media.c