linux/drivers/media/usb/em28xx
Mauro Carvalho Chehab ad32495b15 media: em28xx-dvb: simplify DVB module probing logic
The module probing logic there is a way more complex than
it should be, and requires some special magic to avoid
stack overflows when KASAN is enabled.

Solve it by creating ancillary functions to setup the
platform data and request module.

Now, the probing functions are cleaner and easier to understand.

As a side effect, the size of the module was reduced by
about 9.7% on x86_64:

Before this patch:
   text	   data	    bss	    dec	    hex	filename
  51090	  14192	     96	  65378	   ff62	drivers/media/usb/em28xx/em28xx-dvb.o

After this patch:
   text	   data	    bss	    dec	    hex	filename
  44743	  14192	     96	  59031	   e697	drivers/media/usb/em28xx/em28xx-dvb.o

Tested with a PCTV 461e device.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-03-06 05:08:43 -05:00
..
em28xx-audio.c media: em28xx: calculate left volume level correctly 2017-08-26 14:31:49 -04:00
em28xx-camera.c [media] em28xx: shed some light on video input formats 2017-04-17 17:32:44 -03:00
em28xx-cards.c media: em28xx: adjust I2C timeout according with I2C speed 2018-03-06 04:50:41 -05:00
em28xx-core.c media: em28xx: constify most static structs 2018-03-06 04:49:18 -05:00
em28xx-dvb.c media: em28xx-dvb: simplify DVB module probing logic 2018-03-06 05:08:43 -05:00
em28xx-i2c.c media: em28xx: adjust I2C timeout according with I2C speed 2018-03-06 04:50:41 -05:00
em28xx-input.c media: em28xx: constify most static structs 2018-03-06 04:49:18 -05:00
em28xx-reg.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
em28xx-v4l.h media: au0828/em28xx: make vb2_ops const 2017-10-27 14:13:33 +02:00
em28xx-vbi.c media: au0828/em28xx: make vb2_ops const 2017-10-27 14:13:33 +02:00
em28xx-video.c media: em28xx: stop rewriting device's struct 2018-03-06 04:48:40 -05:00
em28xx.h media: em28xx: adjust I2C timeout according with I2C speed 2018-03-06 04:50:41 -05:00
Kconfig media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
Makefile media: don't include drivers/media/i2c at cflags 2017-12-28 14:14:09 -05:00