.. | .. |
---|
500 | 500 | static inline |
---|
501 | 501 | void sci_init_timer(struct sci_timer *tmr, void (*fn)(struct timer_list *t)) |
---|
502 | 502 | { |
---|
503 | | - tmr->cancel = 0; |
---|
| 503 | + tmr->cancel = false; |
---|
504 | 504 | timer_setup(&tmr->timer, fn, 0); |
---|
505 | 505 | } |
---|
506 | 506 | |
---|
507 | 507 | static inline void sci_mod_timer(struct sci_timer *tmr, unsigned long msec) |
---|
508 | 508 | { |
---|
509 | | - tmr->cancel = 0; |
---|
| 509 | + tmr->cancel = false; |
---|
510 | 510 | mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec)); |
---|
511 | 511 | } |
---|
512 | 512 | |
---|
513 | 513 | static inline void sci_del_timer(struct sci_timer *tmr) |
---|
514 | 514 | { |
---|
515 | | - tmr->cancel = 1; |
---|
| 515 | + tmr->cancel = true; |
---|
516 | 516 | del_timer(&tmr->timer); |
---|
517 | 517 | } |
---|
518 | 518 | |
---|