[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1265683448-25892-1-git-send-email-padovan@profusion.mobi>
Date: Tue, 9 Feb 2010 00:44:08 -0200
From: "Gustavo F. Padovan" <padovan@...fusion.mobi>
To: linux-kernel@...r.kernel.org
Cc: isdn@...ux-pingi.de, sfr@...b.auug.org.au
Subject: [PATCH] w6692: remove unused code
drivers/isdn/hardware/mISDN/w6692.c:533: warning: ‘setvolume’ defined but not used
drivers/isdn/hardware/mISDN/w6692.c:560: warning: ‘enable_pots’ defined but not used
---
drivers/isdn/hardware/mISDN/w6692.c | 43 -----------------------------------
1 files changed, 0 insertions(+), 43 deletions(-)
diff --git a/drivers/isdn/hardware/mISDN/w6692.c b/drivers/isdn/hardware/mISDN/w6692.c
index d3f1077..ae1c65e 100644
--- a/drivers/isdn/hardware/mISDN/w6692.c
+++ b/drivers/isdn/hardware/mISDN/w6692.c
@@ -530,49 +530,6 @@ W6692_fill_Bfifo(struct w6692_ch *wch)
}
static int
-setvolume(struct w6692_ch *wch, int mic, struct sk_buff *skb)
-{
- struct w6692_hw *card = wch->bch.hw;
- u16 *vol = (u16 *)skb->data;
- u8 val;
-
- if ((!(card->fmask & pots)) ||
- !test_bit(FLG_TRANSPARENT, &wch->bch.Flags))
- return -ENODEV;
- if (skb->len < 2)
- return -EINVAL;
- if (*vol > 7)
- return -EINVAL;
- val = *vol & 7;
- val = 7 - val;
- if (mic) {
- val <<= 3;
- card->xaddr &= 0xc7;
- } else {
- card->xaddr &= 0xf8;
- }
- card->xaddr |= val;
- WriteW6692(card, W_XADDR, card->xaddr);
- return 0;
-}
-
-static int
-enable_pots(struct w6692_ch *wch)
-{
- struct w6692_hw *card = wch->bch.hw;
-
- if ((!(card->fmask & pots)) ||
- !test_bit(FLG_TRANSPARENT, &wch->bch.Flags))
- return -ENODEV;
- wch->b_mode |= W_B_MODE_EPCM | W_B_MODE_BSW0;
- WriteW6692B(wch, W_B_MODE, wch->b_mode);
- WriteW6692B(wch, W_B_CMDR, W_B_CMDR_RRST | W_B_CMDR_XRST);
- card->pctl |= ((wch->bch.nr & 2) ? W_PCTL_PCX : 0);
- WriteW6692(card, W_PCTL, card->pctl);
- return 0;
-}
-
-static int
disable_pots(struct w6692_ch *wch)
{
struct w6692_hw *card = wch->bch.hw;
--
1.6.4.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists