From 78e719a5f30b7017b575c08220f4480e3140c6f1 Mon Sep 17 00:00:00 2001 From: Frank Schaefer Date: Fri, 15 Aug 2014 15:16:58 -0300 Subject: [PATCH] [media] em28xx-input: i2c IR decoders: improve i2c_client handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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-format-patch failed