summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/siano/smsir.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-08-01 15:30:50 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 16:43:54 -0300
commit1722f3b376f10182db85c2f6cf5bd79b857bc9e0 (patch)
tree7f87eeaa7e8e4af73dc7d474ca0d97c41d7ef823 /drivers/media/dvb/siano/smsir.h
parent4eebfb0a5f55ba7c4af33c2173862493d8845622 (diff)
downloadlwn-1722f3b376f10182db85c2f6cf5bd79b857bc9e0.tar.gz
lwn-1722f3b376f10182db85c2f6cf5bd79b857bc9e0.zip
V4L/DVB: sms: properly initialize IR phys and IR name
sms were using a non-compliant nomenclature for the USB devices. Fix it. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/siano/smsir.h')
-rw-r--r--drivers/media/dvb/siano/smsir.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/siano/smsir.h b/drivers/media/dvb/siano/smsir.h
index b7d703e2d338..77e65057949b 100644
--- a/drivers/media/dvb/siano/smsir.h
+++ b/drivers/media/dvb/siano/smsir.h
@@ -24,7 +24,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include <linux/input.h>
-#define IR_DEV_NAME_MAX_LEN 23 /* "SMS IR kbd type nn\0" */
+#define IR_DEV_NAME_MAX_LEN 40
#define IR_KEYBOARD_LAYOUT_SIZE 64
#define IR_DEFAULT_TIMEOUT 100
@@ -78,7 +78,8 @@ struct smscore_device_t;
struct ir_t {
struct input_dev *input_dev;
enum ir_kb_type ir_kb_type;
- char name[IR_DEV_NAME_MAX_LEN+1];
+ char name[IR_DEV_NAME_MAX_LEN + 1];
+ char phys[32];
u16 *keyboard_layout_map;
u32 timeout;
u32 controller;