android_kernel_xiaomi_sm8350/drivers/media/dvb
Andrew de Quincey d09dbf92ad V4L/DVB (3762): Add sysfs device links to dvb devices
Currently in /sys/class/dvb/dvbX.demuxY/ we have:
	dev
	uevent
With the patch, we have (for a PCI DVB device):
	dev
	device -> ../../../devices/pci0000:00/0000:00:1e.0/0000:03:0d.0
	uevent
So userspace tools can (finally) work out which physical device a DVB adapter
refers to. Previously you had to kinda look through dmesg and hope that it
hadn't been dumped out of the buffer. This makes debugging a lot easier if
the system has been up for a long time!
This is done by adding an extra 'struct device *' parameter to
dvb_register_adapter(). It will work with any kind of standard
linux 'device'. Additionally, if someone has an embedded system which does
things differently, they can simply supply 'NULL' and the behaviour will be
as before - the link will simply not appear.

Ack'd-by: Manu Abraham <manu@linuxtv.org>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Andrew de Quincey <adq_dvb@lidskialf.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-25 01:57:55 -03:00
..
b2c2 V4L/DVB (3762): Add sysfs device links to dvb devices 2006-06-25 01:57:55 -03:00
bt8xx V4L/DVB (3762): Add sysfs device links to dvb devices 2006-06-25 01:57:55 -03:00
cinergyT2 V4L/DVB (3762): Add sysfs device links to dvb devices 2006-06-25 01:57:55 -03:00
dvb-core V4L/DVB (3762): Add sysfs device links to dvb devices 2006-06-25 01:57:55 -03:00
dvb-usb V4L/DVB (3762): Add sysfs device links to dvb devices 2006-06-25 01:57:55 -03:00
frontends V4L/DVB (3739): Add support for FE_GET_FRONTEND to or51132 frontend 2006-06-25 01:57:50 -03:00
pluto2 V4L/DVB (3762): Add sysfs device links to dvb devices 2006-06-25 01:57:55 -03:00
ttpci V4L/DVB (3762): Add sysfs device links to dvb devices 2006-06-25 01:57:55 -03:00
ttusb-budget V4L/DVB (3762): Add sysfs device links to dvb devices 2006-06-25 01:57:55 -03:00
ttusb-dec V4L/DVB (3762): Add sysfs device links to dvb devices 2006-06-25 01:57:55 -03:00
Kconfig V4L/DVB (4037): Make the bridge devices that depend on I2C dependant on I2C 2006-05-23 15:56:38 -03:00
Makefile