rc_events[n].value == ~0) { /** * keyrepeat bit. If we would handle this properly * we would need to emit down events as long the * keyrepeat goes, a up event if no further * repeat bits occur. Would need a timer to implement * and no other driver does this, so we simply * emit the last key up/down sequence again. */ 
rc_events[n].value == ~0) { /* keyrepeat bit -> just repeat last rc_input_event */ 
static void cinergyt2_query_rc (void *data){	struct cinergyt2 *cinergyt2 = (struct cinergyt2 *) data;	char buf [1] = { CINERGYT2_EP1_GET_RC_EVENTS };	struct cinergyt2_rc_event rc_events[12];	int n, len;	if (down_interruptible(&cinergyt2->sem))		return;	len = cinergyt2_command(cinergyt2, buf, sizeof(buf),			     (char *) rc_events, sizeof(rc_events));	for (n=0; len>0 && n<(len/sizeof(rc_events[0])); n++) {		int i;/*		dprintk(1,"rc_events[%d].value = %x, type=%x\n",n,le32_to_cpu(rc_events[n].value),rc_events[n].type);*/		if (rc_events[n].type == CINERGYT2_RC_EVENT_TYPE_NEC &&		    rc_events[n].value == ~0)		{			/**			 * keyrepeat bit. If we would handle this properly			 * we would need to emit down events as long the			 * keyrepeat goes, a up event if no further			 * repeat bits occur. Would need a timer to implement			 * and no other driver does this, so we simply			 * emit the last key up/down sequence again.			 */		} else {			cinergyt2->rc_input_event = KEY_MAX;			for (i=0; i<sizeof(rc_keys)/sizeof(rc_keys[0]); i+=3) {				if (rc_keys[i+0] == rc_events[n].type &&				    rc_keys[i+1] == le32_to_cpu(rc_events[n].value))				{					cinergyt2->rc_input_event = rc_keys[i+2];					break;				}			}		}		if (cinergyt2->rc_input_event != KEY_MAX) {			input_report_key(&cinergyt2->rc_input_dev, cinergyt2->rc_input_event, 1);			input_report_key(&cinergyt2->rc_input_dev, cinergyt2->rc_input_event, 0);			input_sync(&cinergyt2->rc_input_dev);		}	}	schedule_delayed_work(&cinergyt2->rc_query_work,			      msecs_to_jiffies(RC_QUERY_INTERVAL));	up(&cinergyt2->sem);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/6d78933c291bd0b6292e2c631e2f5e346c14d3fa/cinergyT2.c/clean/drivers/media/dvb/cinergyT2/cinergyT2.c