v4l2-sysfs-path: print device minor/major of the associated devices
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 23 Aug 2009 15:45:08 +0000 (12:45 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 23 Aug 2009 15:45:08 +0000 (12:45 -0300)
commit9d0a010af6b3f3812e627f1447ce9c4b03cbc1bb
treeabfa0de5e641ff79ea56ae0e1dfbf9716fa8a600
parente9c5ac5cafaccca414df3f18d5c6f2e2e6376001
v4l2-sysfs-path: print device minor/major of the associated devices

From: Mauro Carvalho Chehab <mchehab@redhat.com>

Instead of just printing the associated devices, go further and display
the device major/minors and the associated event interface. The output
will look like:

device     = /dev/video0
bus info   = usb-0000:00:1d.7-8
sysfs path = /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8
Associated devices:
        usb_endpoint:usbdev1.8_ep00 (dev 252,20)
        i2c-adapter:i2c-4
        input:input9:event6 (dev 13,70)
        sound:pcmC1D0c (dev 116,9)
        sound:dsp1 (dev 14,19)
        sound:audio1 (dev 14,20)
        sound:controlC1 (dev 116,10)
        sound:mixer1 (dev 14,16)
        dvb:dvb0.frontend0 (dev 212,0)
        dvb:dvb0.demux0 (dev 212,1)
        dvb:dvb0.dvr0 (dev 212,2)
        dvb:dvb0.net0 (dev 212,3)

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
utils/v4l2-sysfs-path.c