From: Frank Schaefer Date: Fri, 15 Aug 2014 18:16:58 +0000 (-0300) Subject: [media] em28xx-input: i2c IR decoders: improve i2c_client handling X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~107 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78e719a5f30b7017b575c08220f4480e3140c6f1;p=pandora-kernel.git [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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed