aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/dvb-usb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-02 09:23:04 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-03-06 05:08:43 -0500
commitad32495b1513fe8cbab717411b9cd8d2d285de30 (patch)
tree60ee8af615462515a1bc05a16f0210ad91185169 /drivers/media/usb/dvb-usb
parentmedia: dvb-core: add helper functions for I2C binding (diff)
downloadlinux-dev-ad32495b1513fe8cbab717411b9cd8d2d285de30.tar.xz
linux-dev-ad32495b1513fe8cbab717411b9cd8d2d285de30.zip
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>
Diffstat (limited to 'drivers/media/usb/dvb-usb')
0 files changed, 0 insertions, 0 deletions