projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d82f940
)
pinctrl: sunxi: Fix interrupt register offset calculation
author
Hans de Goede
<hdegoede@redhat.com>
Mon, 17 Feb 2014 21:19:44 +0000
(22:19 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Wed, 5 Mar 2014 01:57:42 +0000
(09:57 +0800)
This fixing setting the interrupt type for eints >= 8.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-sunxi.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pinctrl/pinctrl-sunxi.h
b/drivers/pinctrl/pinctrl-sunxi.h
index 01c494f8a14f0119493d783624b86831549ccdb0..552b0e97077a858b0c1aeda6d9f1a83e4803ae35 100644
(file)
--- a/
drivers/pinctrl/pinctrl-sunxi.h
+++ b/
drivers/pinctrl/pinctrl-sunxi.h
@@
-511,7
+511,7
@@
static inline u32 sunxi_pull_offset(u16 pin)
static inline u32 sunxi_irq_cfg_reg(u16 irq)
{
- u8 reg = irq / IRQ_CFG_IRQ_PER_REG;
+ u8 reg = irq / IRQ_CFG_IRQ_PER_REG
* 0x04
;
return reg + IRQ_CFG_REG;
}
@@
-523,7
+523,7
@@
static inline u32 sunxi_irq_cfg_offset(u16 irq)
static inline u32 sunxi_irq_ctrl_reg(u16 irq)
{
- u8 reg = irq / IRQ_CTRL_IRQ_PER_REG;
+ u8 reg = irq / IRQ_CTRL_IRQ_PER_REG
* 0x04
;
return reg + IRQ_CTRL_REG;
}
@@
-535,7
+535,7
@@
static inline u32 sunxi_irq_ctrl_offset(u16 irq)
static inline u32 sunxi_irq_status_reg(u16 irq)
{
- u8 reg = irq / IRQ_STATUS_IRQ_PER_REG;
+ u8 reg = irq / IRQ_STATUS_IRQ_PER_REG
* 0x04
;
return reg + IRQ_STATUS_REG;
}