diff options
author | Johannes Stezenbach <devnull@localhost> | 2005-03-12 20:23:51 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2005-03-12 20:23:51 +0000 |
commit | d409fb356d6cf8b8f2b146520fed7060b6e89982 (patch) | |
tree | 1aa12a90f56501ada01edaed5baa864dedb2e87c /linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c | |
parent | d267ed772fa9b010410b9868ce03e34733d821c3 (diff) | |
download | mediapointer-dvb-s2-d409fb356d6cf8b8f2b146520fed7060b6e89982.tar.gz mediapointer-dvb-s2-d409fb356d6cf8b8f2b146520fed7060b6e89982.tar.bz2 |
a few more whitespace cleanups
Diffstat (limited to 'linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c')
-rw-r--r-- | linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c b/linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c index cdc4067e3..ab5f734db 100644 --- a/linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c +++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb-remote.c @@ -126,12 +126,12 @@ static const struct { u16 raw; uint32_t key; } haupp_rc_keys [] = { { 0xc4f, KEY_9 }, { 0xc57, KEY_KPASTERISK }, { 0xc77, KEY_GRAVE }, /* # */ - { 0xc5f, KEY_RED }, + { 0xc5f, KEY_RED }, { 0xd77, KEY_GREEN }, { 0xdc7, KEY_YELLOW }, { 0xd4f, KEY_BLUE}, }; - + static int dibusb_key2event_nec(struct usb_dibusb *dib,u8 rb[5]) { int i; @@ -151,7 +151,7 @@ static int dibusb_key2event_nec(struct usb_dibusb *dib,u8 rb[5]) if (nec_rc_keys[i].c0 == rb[1] && nec_rc_keys[i].c1 == rb[2] && nec_rc_keys[i].c2 == rb[3]) { - + dib->last_event = nec_rc_keys[i].key; return 1; } @@ -160,7 +160,7 @@ static int dibusb_key2event_nec(struct usb_dibusb *dib,u8 rb[5]) case DIBUSB_RC_NEC_KEY_REPEATED: /* rb[1]..rb[4] are always zero.*/ /* Repeats often seem to occur so for the moment just ignore this. */ - return 0; + return 0; case DIBUSB_RC_NEC_EMPTY: /* No (more) remote control keys. */ default: break; @@ -184,7 +184,7 @@ static int dibusb_key2event_hauppauge(struct usb_dibusb *dib,u8 rb[4]) if (dib->last_event == haupp_rc_keys[i].key && dib->last_state == state) { deb_rc("key repeat\n"); - return 0; + return 0; } else { dib->last_event = haupp_rc_keys[i].key; dib->last_state = state; @@ -209,10 +209,10 @@ static int dibusb_read_remote_control(struct usb_dibusb *dib) { u8 b[1] = { DIBUSB_REQ_POLL_REMOTE }, rb[5]; int ret,event = 0; - + if ((ret = dibusb_readwrite_usb(dib,b,1,rb,5))) return ret; - + switch (dib->dibdev->dev_cl->remote_type) { case DIBUSB_RC_NEC_PROTOCOL: event = dibusb_key2event_nec(dib,rb); @@ -229,10 +229,10 @@ static int dibusb_read_remote_control(struct usb_dibusb *dib) deb_rc("key repeat dropped. (%d)\n",dib->repeat_key_count); event = -1; /* skip this key repeat */ } - + if (event == 1 || event == 0) { deb_rc("Translated key 0x%04x\n",event); - + /* Signal down and up events for this key. */ input_report_key(&dib->rc_input_dev, dib->last_event, 1); input_report_key(&dib->rc_input_dev, dib->last_event, 0); @@ -262,7 +262,7 @@ int dibusb_remote_init(struct usb_dibusb *dib) if (dib->dibdev->dev_cl->remote_type == DIBUSB_RC_NO) return 0; - + /* Initialise the remote-control structures.*/ init_input_dev(&dib->rc_input_dev); @@ -283,7 +283,7 @@ int dibusb_remote_init(struct usb_dibusb *dib) default: break; } - + input_register_device(&dib->rc_input_dev); @@ -297,7 +297,7 @@ int dibusb_remote_init(struct usb_dibusb *dib) schedule_delayed_work(&dib->rc_query_work,msecs_to_jiffies(dib->rc_query_interval)); dib->init_state |= DIBUSB_STATE_REMOTE; - + return 0; } |