| .. | .. |
|---|
| 16 | 16 | #define RC5_SZ_NBITS 15 |
|---|
| 17 | 17 | #define RC5X_NBITS 20 |
|---|
| 18 | 18 | #define CHECK_RC5X_NBITS 8 |
|---|
| 19 | | -#define RC5_UNIT 888888 /* ns */ |
|---|
| 19 | +#define RC5_UNIT 889 /* us */ |
|---|
| 20 | 20 | #define RC5_BIT_START (1 * RC5_UNIT) |
|---|
| 21 | 21 | #define RC5_BIT_END (1 * RC5_UNIT) |
|---|
| 22 | 22 | #define RC5X_SPACE (4 * RC5_UNIT) |
|---|
| .. | .. |
|---|
| 55 | 55 | |
|---|
| 56 | 56 | again: |
|---|
| 57 | 57 | dev_dbg(&dev->dev, "RC5(x/sz) decode started at state %i (%uus %s)\n", |
|---|
| 58 | | - data->state, TO_US(ev.duration), TO_STR(ev.pulse)); |
|---|
| 58 | + data->state, ev.duration, TO_STR(ev.pulse)); |
|---|
| 59 | 59 | |
|---|
| 60 | 60 | if (!geq_margin(ev.duration, RC5_UNIT, RC5_UNIT / 2)) |
|---|
| 61 | 61 | return 0; |
|---|
| .. | .. |
|---|
| 164 | 164 | |
|---|
| 165 | 165 | out: |
|---|
| 166 | 166 | dev_dbg(&dev->dev, "RC5(x/sz) decode failed at state %i count %d (%uus %s)\n", |
|---|
| 167 | | - data->state, data->count, TO_US(ev.duration), TO_STR(ev.pulse)); |
|---|
| 167 | + data->state, data->count, ev.duration, TO_STR(ev.pulse)); |
|---|
| 168 | 168 | data->state = STATE_INACTIVE; |
|---|
| 169 | 169 | return -EINVAL; |
|---|
| 170 | 170 | } |
|---|