linux_dsm_epyc7002/drivers/media/usb/dvb-usb
Mauro Carvalho Chehab 7f67d96ab1 [media] dib7000p: rename dib7000p_attach to dib7000p_init
Well, what we call as "foo_attach" is the method that should
be called by the dvb_attach() macro.

It should be noticed that the name "dvb_attach" is really a
bad name and don't express what it does.

dvb_attach() basically does three things, if the frontend is
compiled as a module:
- It lookups for the module that it is known to have the
  given symbol name and requests such module;
- It increments the module usage (anonymously - so lsmod
  doesn't print who loaded the module);
- after loading the module, it runs the function associated
  with the dynamic symbol.

When compiled as builtin, it just calls the function given to it.

As dvb_attach() increments refcount, it can't be (easily)
called more than once for the same module, or the kernel
will deny to remove the module, because refcount will never
be zeroed.

In other words, the function name given to dvb_attach()
should be one single symbol that will always be called
before any other function on that module to be used.

For almost all DVB frontends, there's just one function.

However, the dib7000p initialization can require up to 3
functions to be called:
	- dib7000p_get_i2c_master;
	- dib7000p_i2c_enumeration;
	- dib7000p_init (before this patch dib7000_attach).

(plus a bunch of other functions that the bridge driver will
need to call).

As we need to get rid of all those direct calls, because they
cause compilation breakages when bridge is builtin and
frontend is module, we'll need to add a new function that
will be the first one to be called, whatever initialization
is needed.

So, let's rename the function that probes and init the hardware
to dib7000p_init.

A latter patch will add a new dib7000p_attach that will be
used as originally conceived by dvb_attach() way.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-06-17 12:04:48 -03:00
..
a800.c [media] dvb-usb: print small buffers via %*ph 2012-10-06 12:25:49 -03:00
af9005-fe.c
af9005-remote.c
af9005-script.h
af9005.c
af9005.h
az6027.c [media] az6027: Added the PID for a new revision of the Elgato EyeTV Sat DVB-S Tuner 2014-05-25 15:49:35 -03:00
az6027.h
cinergyT2-core.c [media] dvb-usb: print small buffers via %*ph 2012-10-06 12:25:49 -03:00
cinergyT2-fe.c [media] dvb-usb: Remove redundant NULL check before kfree 2013-03-18 17:05:17 -03:00
cinergyT2.h
cxusb.c [media] dib7000p: rename dib7000p_attach to dib7000p_init 2014-06-17 12:04:48 -03:00
cxusb.h
dib07x0.h
dib0700_core.c [media] dib0700: fix RC support on Hauppauge Nova-TD 2014-05-25 17:44:19 -03:00
dib0700_devices.c [media] dib7000p: rename dib7000p_attach to dib7000p_init 2014-06-17 12:04:48 -03:00
dib0700.h [media] dib0700: fix RC support on Hauppauge Nova-TD 2014-05-25 17:44:19 -03:00
dibusb-common.c [media] dibusb-common: Don't use dynamic static allocation 2013-11-08 09:45:44 -02:00
dibusb-mb.c
dibusb-mc.c
dibusb.h
digitv.c [media] dvb-usb: print small buffers via %*ph 2012-10-06 12:25:49 -03:00
digitv.h
dtt200u-fe.c
dtt200u.c [media] dvb-usb: print small buffers via %*ph 2012-10-06 12:25:49 -03:00
dtt200u.h
dtv5100.c
dtv5100.h
dvb-usb-common.h
dvb-usb-dvb.c
dvb-usb-firmware.c
dvb-usb-i2c.c
dvb-usb-init.c [media] dvb-usb: fix indentation of a for loop 2012-12-27 16:26:13 -02:00
dvb-usb-remote.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
dvb-usb-urb.c
dvb-usb.h [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
dw2102.c [media] dw2102: some missing unlocks on error 2013-12-10 15:37:31 -02:00
dw2102.h
friio-fe.c [media] dvb-usb/friio-fe: Replace memcpy with struct assignment 2012-12-27 18:48:52 -02:00
friio.c
friio.h
gp8psk-fe.c
gp8psk.c
gp8psk.h
Kconfig [media] ttusb2: Kconfig patch to auto-select frontends for TechnoTrend CT-3650 2013-02-08 15:44:33 -02:00
m920x.c [media] rc: allowed_protos now is a bit field 2013-07-30 17:01:13 -03:00
m920x.h
Makefile [media] Fix some Makefile rules 2012-08-16 19:55:03 -03:00
nova-t-usb2.c
opera1.c treewide: Fix typos in printk 2013-03-20 16:26:32 +01:00
pctv452e.c [media] stb0899: remove commented value from IQ_SWAP_ON/OFF usages 2013-05-21 08:54:37 -03:00
technisat-usb2.c [media] technisat-usb2: rename led enums to be specific to driver 2014-05-23 19:47:43 -03:00
ttusb2.c [media] media: Add 0x3009 USB PID to ttusb2 driver (fixed diff) 2013-02-13 18:05:29 -02:00
ttusb2.h
umt-010.c
usb-urb.c
vp702x-fe.c
vp702x.c [media] vp702x: get rid of warning: no previous prototype 2012-10-27 18:14:14 -02:00
vp702x.h
vp7045-fe.c
vp7045.c
vp7045.h