down, while 0xFF indicates that no button is hold down. 0xFE sequences are sometimes interrupted by 0xFF */
down, while 0xff indicates that no button is hold down. 0xfe sequences are sometimes interrupted by 0xFF */
static int get_key_terratec(struct IR_i2c *ir, u32 *ir_key, u32 *ir_raw){	unsigned char b;	/* poll IR chip */	if (1 != i2c_master_recv(&ir->c,&b,1)) {		dprintk("read error\n");		return -EIO;	}	/* it seems that 0xFE indicates that a button is still hold	   down, while 0xFF indicates that no button is hold	   down. 0xFE sequences are sometimes interrupted by 0xFF */	dprintk("key %02x\n", b);	if (b == 0xFF)		return 0;	if (b == 0xFE)		/* keep old data */		return 1;	*ir_key = b;	*ir_raw = b;	return 1;}