projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cc9fc5
)
at86rf230: remove function for setting irq polarity
author
Alexander Aring
<
[email protected]
>
Thu, 24 Apr 2014 17:09:18 +0000
(19:09 +0200)
committer
David S. Miller
<
[email protected]
>
Sat, 26 Apr 2014 16:20:35 +0000
(12:20 -0400)
The function is small enough, we don't need a extra function for this.
Signed-off-by: Alexander Aring <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ieee802154/at86rf230.c
patch
|
blob
|
history
diff --git
a/drivers/net/ieee802154/at86rf230.c
b/drivers/net/ieee802154/at86rf230.c
index 1331152561f90cbabe90ce1b755b4e70665b9973..4517b149ed0786946e44eb1a699fe232c2fbd166 100644
(file)
--- a/
drivers/net/ieee802154/at86rf230.c
+++ b/
drivers/net/ieee802154/at86rf230.c
@@
-961,11
+961,6
@@
static irqreturn_t at86rf230_isr_level(int irq, void *data)
return at86rf230_isr(irq, data);
}
-static int at86rf230_irq_polarity(struct at86rf230_local *lp, int pol)
-{
- return at86rf230_write_subreg(lp, SR_IRQ_POLARITY, pol);
-}
-
static int at86rf230_hw_init(struct at86rf230_local *lp)
{
int rc, irq_pol, irq_type;
@@
-983,7
+978,7
@@
static int at86rf230_hw_init(struct at86rf230_local *lp)
else
irq_pol = IRQ_ACTIVE_HIGH;
- rc = at86rf230_
irq_polarity(lp
, irq_pol);
+ rc = at86rf230_
write_subreg(lp, SR_IRQ_POLARITY
, irq_pol);
if (rc)
return rc;