summaryrefslogtreecommitdiffstats
path: root/drivers/staging/ft1000
diff options
context:
space:
mode:
authorMike Rapoport2015-09-03 19:50:51 +0200
committerGreg Kroah-Hartman2015-09-13 03:24:38 +0200
commit76f966e79560ab0bcf20a48e8a0a3d51b3618bc5 (patch)
tree696910ab2c723ca9e1cfcbd137b5a59a2d2fb274 /drivers/staging/ft1000
parentstaging: comedi: kcomedilib: Fixed coding style issue (diff)
downloadkernel-qcow2-linux-76f966e79560ab0bcf20a48e8a0a3d51b3618bc5.tar.gz
kernel-qcow2-linux-76f966e79560ab0bcf20a48e8a0a3d51b3618bc5.tar.xz
kernel-qcow2-linux-76f966e79560ab0bcf20a48e8a0a3d51b3618bc5.zip
staging: ft1000_pcmcia: staticize local functions in ft1000_dnld.c
Several functions in ft1000_dnld.c are not used outside that file, make them static Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ft1000')
-rw-r--r--drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c
index 83683e9a1451..612ac0bd3756 100644
--- a/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c
+++ b/drivers/staging/ft1000/ft1000-pcmcia/ft1000_dnld.c
@@ -82,13 +82,6 @@
#define STATE_DONE_PROV 0x06
#define STATE_DONE_FILE 0x07
-u16 get_handshake(struct net_device *dev, u16 expected_value);
-void put_handshake(struct net_device *dev, u16 handshake_value);
-u16 get_request_type(struct net_device *dev);
-long get_request_value(struct net_device *dev);
-void put_request_value(struct net_device *dev, long lvalue);
-u16 hdr_checksum(struct pseudo_hdr *pHdr);
-
struct dsp_file_hdr {
u32 version_id; /* Version ID of this image format. */
u32 package_id; /* Package ID of code release. */
@@ -146,7 +139,7 @@ void card_bootload(struct net_device *dev)
spin_unlock_irqrestore(&info->dpram_lock, flags);
}
-u16 get_handshake(struct net_device *dev, u16 expected_value)
+static u16 get_handshake(struct net_device *dev, u16 expected_value)
{
struct ft1000_info *info = netdev_priv(dev);
u16 handshake;
@@ -180,7 +173,7 @@ u16 get_handshake(struct net_device *dev, u16 expected_value)
}
-void put_handshake(struct net_device *dev, u16 handshake_value)
+static void put_handshake(struct net_device *dev, u16 handshake_value)
{
struct ft1000_info *info = netdev_priv(dev);
u32 tempx;
@@ -196,7 +189,7 @@ void put_handshake(struct net_device *dev, u16 handshake_value)
}
}
-u16 get_request_type(struct net_device *dev)
+static u16 get_request_type(struct net_device *dev)
{
struct ft1000_info *info = netdev_priv(dev);
u16 request_type;
@@ -215,7 +208,7 @@ u16 get_request_type(struct net_device *dev)
}
-long get_request_value(struct net_device *dev)
+static long get_request_value(struct net_device *dev)
{
struct ft1000_info *info = netdev_priv(dev);
long value;
@@ -244,7 +237,7 @@ long get_request_value(struct net_device *dev)
}
-void put_request_value(struct net_device *dev, long lvalue)
+static void put_request_value(struct net_device *dev, long lvalue)
{
struct ft1000_info *info = netdev_priv(dev);
u16 size;
@@ -271,7 +264,7 @@ void put_request_value(struct net_device *dev, long lvalue)
}
-u16 hdr_checksum(struct pseudo_hdr *pHdr)
+static u16 hdr_checksum(struct pseudo_hdr *pHdr)
{
u16 *usPtr = (u16 *)pHdr;
u16 chksum;