Skip to content

Commit 18c6504

Browse files
alexaringdavem330
authored andcommitted
at86rf230: remove function for setting irq polarity
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]>
1 parent 1cc9fc5 commit 18c6504

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/net/ieee802154/at86rf230.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -961,11 +961,6 @@ static irqreturn_t at86rf230_isr_level(int irq, void *data)
961961
return at86rf230_isr(irq, data);
962962
}
963963

964-
static int at86rf230_irq_polarity(struct at86rf230_local *lp, int pol)
965-
{
966-
return at86rf230_write_subreg(lp, SR_IRQ_POLARITY, pol);
967-
}
968-
969964
static int at86rf230_hw_init(struct at86rf230_local *lp)
970965
{
971966
int rc, irq_pol, irq_type;
@@ -983,7 +978,7 @@ static int at86rf230_hw_init(struct at86rf230_local *lp)
983978
else
984979
irq_pol = IRQ_ACTIVE_HIGH;
985980

986-
rc = at86rf230_irq_polarity(lp, irq_pol);
981+
rc = at86rf230_write_subreg(lp, SR_IRQ_POLARITY, irq_pol);
987982
if (rc)
988983
return rc;
989984

0 commit comments

Comments
 (0)