#undef dprintk
-#define dprintk(fmt, arg... ) \
+#define dprintk(fmt, arg...) \
if (ir_debug) { \
printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \
}
struct tm6000_core *dev = urb->context;
struct tm6000_IR *ir = dev->ir;
int rc;
-
+
if (urb->status != 0)
printk(KERN_INFO "not ready\n");
else if (urb->actual_length > 0)
- memcpy (ir->urb_data, urb->transfer_buffer, urb->actual_length);
+ memcpy(ir->urb_data, urb->transfer_buffer, urb->actual_length);
- dprintk ("data %02x %02x %02x %02x\n", ir->urb_data[0],
+ dprintk("data %02x %02x %02x %02x\n", ir->urb_data[0],
ir->urb_data[1], ir->urb_data[2], ir->urb_data[3]);
ir->key = 1;
int rc;
u8 buf[2];
- if(ir->wait && !&dev->int_in) {
+ if (ir->wait && !&dev->int_in) {
poll_result->rc_data[0] = 0xff;
return 0;
}
msleep(10);
- dprintk ("read data=%02x\n", buf[0]);
- if (rc < 0) {
+ dprintk("read data=%02x\n", buf[0]);
+ if (rc < 0)
return rc;
- }
+
poll_result->rc_data[0] = buf[0];
}
return 0;