]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Staging: comedi: s626.c: Remove unused functions
authorBhumika Goyal <bhumirks@gmail.com>
Sun, 28 Feb 2016 07:58:47 +0000 (13:28 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Mar 2016 22:56:55 +0000 (14:56 -0800)
The functions s626_get_clk_mult, s626_get_clk_mult, s626_get_enc_mode,
s626_set_index_pol are not used anywhere in the kernel so they can be
removed. This also cleans the code. Grepped to find the occurences.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s626.c

index 35f0f676eb28378979c0eacd745a4178db1901a6..c5e08635e01e3b9d10f9d643a738d81e0e8b5989 100644 (file)
@@ -1167,12 +1167,6 @@ static void s626_set_clk_mult(struct comedi_device *dev,
        s626_set_mode(dev, chan, mode, false);
 }
 
-static uint16_t s626_get_clk_mult(struct comedi_device *dev,
-                                 unsigned int chan)
-{
-       return S626_GET_STD_CLKMULT(s626_get_mode(dev, chan));
-}
-
 /*
  * Return/set the clock polarity.
  */
@@ -1188,12 +1182,6 @@ static void s626_set_clk_pol(struct comedi_device *dev,
        s626_set_mode(dev, chan, mode, false);
 }
 
-static uint16_t s626_get_clk_pol(struct comedi_device *dev,
-                                unsigned int chan)
-{
-       return S626_GET_STD_CLKPOL(s626_get_mode(dev, chan));
-}
-
 /*
  * Return/set the encoder mode.
  */
@@ -1209,27 +1197,6 @@ static void s626_set_enc_mode(struct comedi_device *dev,
        s626_set_mode(dev, chan, mode, false);
 }
 
-static uint16_t s626_get_enc_mode(struct comedi_device *dev,
-                                 unsigned int chan)
-{
-       return S626_GET_STD_ENCMODE(s626_get_mode(dev, chan));
-}
-
-/*
- * Return/set the index polarity.
- */
-static void s626_set_index_pol(struct comedi_device *dev,
-                              unsigned int chan, uint16_t value)
-{
-       uint16_t mode;
-
-       mode = s626_get_mode(dev, chan);
-       mode &= ~S626_STDMSK_INDXPOL;
-       mode |= S626_SET_STD_INDXPOL(value != 0);
-
-       s626_set_mode(dev, chan, mode, false);
-}
-
 static uint16_t s626_get_index_pol(struct comedi_device *dev,
                                   unsigned int chan)
 {