[media] em28xx-input: i2c IR decoders: improve i2c_client handling
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Fri, 15 Aug 2014 18:16:58 +0000 (15:16 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 22 Sep 2014 20:29:06 +0000 (17:29 -0300)
commit78e719a5f30b7017b575c08220f4480e3140c6f1
tree363b5f67d31507e2e17948d0a04ef9c533a911f7
parent5611588b86492eded428cad0f698c39178f88d23
[media] em28xx-input: i2c IR decoders: improve i2c_client handling

Instead of using a temporary stack allocated i2c_client in em28xx_i2c_ir_handle_key(),
allocate/free the i2c_client at module init/uninit and hook it into struct em28xx_IR
(if the device has an i2c IR decoder).
This reduces the frame size of function em28xx_i2c_ir_handle_key() and speeds
it up a bit.
Also make sure that all fields of struct i2c_client are initialized properly.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/em28xx/em28xx-input.c