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>