staging: comedi: amplc_pci230: remove 'inline' from pci230_gat_config()
authorIan Abbott <abbotti@mev.co.uk>
Tue, 4 Apr 2017 10:29:53 +0000 (11:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 11:03:17 +0000 (13:03 +0200)
Let the compiler figure out whether `pci230_gat_config()` should be
inlined by itself.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pci230.c

index 42945de31fe2176ad9a53b24aa241d36e1bdbefe..9c360307f69901d31d2f82de8c139c136cec94fe 100644 (file)
 #define GAT_EXT                2       /* external gate input (PPCn on PCI230) */
 #define GAT_NOUTNM2    3       /* inverted output of channel-2 modulo total */
 
-static inline unsigned int pci230_gat_config(unsigned int chan,
-                                            unsigned int src)
+static unsigned int pci230_gat_config(unsigned int chan, unsigned int src)
 {
        return ((chan & 3) << 3) | (src & 7);
 }