mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
gpio: msm-v1: make boolean argument more obvious
irq_set_irq_wake() treats its second argument as a boolean. It is much easier to read code when constant booleans are either 0 or 1! This particular line of code distracted me somewhat when I was doing a bit of work in a code browser since it (spuriously) got me worried that I had misunderstood how irq_set_irq_wake() worked. Signed-off-by: Daniel Thompson <[email protected]> Cc: Linus Walleij <[email protected]> Cc: Alexandre Courbot <[email protected]> Reviewed-by: Alexandre Courbot <[email protected]> [[email protected]: alter subject to be more descriptive] Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
8b648f13b4
commit
5887010040
1 changed files with 1 additions and 1 deletions
|
|
@ -686,7 +686,7 @@ static int gpio_msm_v1_probe(struct platform_device *pdev)
|
|||
irq_set_chained_handler(irq1, msm_gpio_irq_handler);
|
||||
irq_set_chained_handler(irq2, msm_gpio_irq_handler);
|
||||
irq_set_irq_wake(irq1, 1);
|
||||
irq_set_irq_wake(irq2, 2);
|
||||
irq_set_irq_wake(irq2, 1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue