]> asedeno.scripts.mit.edu Git - linux.git/commit
[media] em28xx: reduce stack usage in sensor probing functions
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Sun, 19 Feb 2017 18:29:17 +0000 (15:29 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 22 Mar 2017 14:38:38 +0000 (11:38 -0300)
commit9e00695364fb74f3aa9912a6a686db8446dcd695
tree3e7c30d01ccda5064ad56f22ebfd41afe1c615df
parent3b8b2e1cea78652ecf7b976a68f87220a3f27b28
[media] em28xx: reduce stack usage in sensor probing functions

It's no longer necessary to keep the i2c_client in the device struct
unmodified until a sensor is found, so reduce stack usage in
em28xx_probe_sensor_micron() and em28xx_probe_sensor_omnivision() by using
a pointer to the client instead of a local copy.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/em28xx/em28xx-camera.c