linux/drivers/media/pci/cx23885
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
..
altera-ci.c
altera-ci.h [media] cx23885: use IS_ENABLED 2013-03-23 09:29:10 -03:00
cimax2.c [media] cimax2: Don't use dynamic static allocation 2013-11-08 09:45:42 -02:00
cimax2.h
cx23885-417.c [media] media_tree: Fix spelling errors 2013-12-09 14:50:50 -02:00
cx23885-alsa.c [media] Convert to snd_card_new() with a device pointer 2014-02-14 08:14:09 +01:00
cx23885-av.c [media] cx23885[v4]: Fix interrupt storm when enabling IR receiver 2013-08-01 14:55:24 -03:00
cx23885-av.h
cx23885-cards.c [media] cx23885: Add Leadtek Winfast PxPVR2200 2013-10-14 07:19:59 -03:00
cx23885-core.c [media] misc drivers: remove deprecated IRQF_DISABLED 2013-10-17 06:08:31 -03:00
cx23885-dvb.c [media] dib7000p: rename dib7000p_attach to dib7000p_init 2014-06-17 12:04:48 -03:00
cx23885-f300.c
cx23885-f300.h
cx23885-i2c.c
cx23885-input.c [media] rc: abstract access to allowed/enabled protocols 2014-03-11 13:24:39 -03:00
cx23885-input.h
cx23885-ioctl.c [media] cx23885: remove g_chip_ident 2013-06-17 08:43:46 -03:00
cx23885-ioctl.h [media] cx23885: remove g_chip_ident 2013-06-17 08:43:46 -03:00
cx23885-ir.c
cx23885-ir.h
cx23885-reg.h
cx23885-vbi.c
cx23885-video.c [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
cx23885-video.h [media] cx23885[v4]: Fix interrupt storm when enabling IR receiver 2013-08-01 14:55:24 -03:00
cx23885.h [media] cx23885: Add Leadtek Winfast PxPVR2200 2013-10-14 07:19:59 -03:00
cx23888-ir.c [media] cx23885: remove g_chip_ident 2013-06-17 08:43:46 -03:00
cx23888-ir.h
Kconfig [media] cx23885: add support for cx24117 with tbs6980 or tbs6981 2013-10-03 07:39:22 -03:00
Makefile [media] btcx-risc: move from media/i2c to media/common 2013-02-08 16:11:25 -02:00
netup-eeprom.c
netup-eeprom.h
netup-init.c
netup-init.h