mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
Depends:
- Based on v3.7-rc1 Adds: - missing break;s from converting if{}s to switch{} -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAABAgAGBQJQfu6DAAoJEAi3KVZQDZAe+UcIAIzjCYanLNeL35Y4CUB/sT0a JzGm39H2GCrDPQz1Wuv1paApfXAB6Fia8o2NjF6BZOsWXDayIGH/4H0qFRGZrQ+2 p4NADdg3Lk5uL+Bn9kc0cyFiNIP1FktkUcleZSS2dQAZ/BY5EMj+urlttN5gSt5J 8Aj6txYleMgEKqxdtXHiJXIregia6qaRM6uqEqF9ov/La9tLfBHZgjOJ1rGg6K6f TaUrgOMKFzn8fcp9NjXEuaHLazUM/x2QarqdSje+qoZpj+9jB4Su4bQdpblUw2TB YPecxQsD7hAjZmDzzTzvSsQq6ZT0xKWyqRJNcLO5caSY1lNxAm4v76anb697HSo= =3Nqp -----END PGP SIGNATURE----- Merge tag 'mvebu_gpio_fixes_for_v3.7' of git://git.infradead.org/users/jcooper/linux into fixes From Jason Cooper: - missing break;s from converting if{}s to switch{} * tag 'mvebu_gpio_fixes_for_v3.7' of git://git.infradead.org/users/jcooper/linux: gpio: mvebu: Add missing breaks in mvebu_gpio_irq_set_type
This commit is contained in:
commit
b55a7a5fbf
@ -381,11 +381,13 @@ static int mvebu_gpio_irq_set_type(struct irq_data *d, unsigned int type)
|
||||
u = readl_relaxed(mvebu_gpioreg_in_pol(mvchip));
|
||||
u &= ~(1 << pin);
|
||||
writel_relaxed(u, mvebu_gpioreg_in_pol(mvchip));
|
||||
break;
|
||||
case IRQ_TYPE_EDGE_FALLING:
|
||||
case IRQ_TYPE_LEVEL_LOW:
|
||||
u = readl_relaxed(mvebu_gpioreg_in_pol(mvchip));
|
||||
u |= 1 << pin;
|
||||
writel_relaxed(u, mvebu_gpioreg_in_pol(mvchip));
|
||||
break;
|
||||
case IRQ_TYPE_EDGE_BOTH: {
|
||||
u32 v;
|
||||
|
||||
@ -401,6 +403,7 @@ static int mvebu_gpio_irq_set_type(struct irq_data *d, unsigned int type)
|
||||
else
|
||||
u &= ~(1 << pin); /* rising */
|
||||
writel_relaxed(u, mvebu_gpioreg_in_pol(mvchip));
|
||||
break;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user