aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-09-23 14:37:59 -0400
committerJoe Perches <joe@perches.com>2013-09-24 15:54:17 -0400
commit294da3abaa73a0b69fd54e442b0b5bd9455b7be6 (patch)
tree1fc0c9bbd726b2498ab193867411c02f18108325 /drivers/net/irda
parentd140ad96146b6e7b196c31cbbb0f971845bfd053 (diff)
irda: Remove extern from function prototypes
There are a mix of function prototypes with and without extern in the kernel sources. Standardize on not using extern for function prototypes. Function prototypes don't need to be written with extern. extern is assumed by the compiler. Its use is as unnecessary as using auto to declare automatic/local variables in a block. Signed-off-by: Joe Perches <joe@perches.com>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r--drivers/net/irda/sir-dev.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/drivers/net/irda/sir-dev.h b/drivers/net/irda/sir-dev.h
index 6d5b1e2b1289..f50b9c1c0639 100644
--- a/drivers/net/irda/sir-dev.h
+++ b/drivers/net/irda/sir-dev.h
@@ -102,28 +102,29 @@ struct sir_driver {
102 102
103/* exported */ 103/* exported */
104 104
105extern int irda_register_dongle(struct dongle_driver *new); 105int irda_register_dongle(struct dongle_driver *new);
106extern int irda_unregister_dongle(struct dongle_driver *drv); 106int irda_unregister_dongle(struct dongle_driver *drv);
107 107
108extern struct sir_dev * sirdev_get_instance(const struct sir_driver *drv, const char *name); 108struct sir_dev *sirdev_get_instance(const struct sir_driver *drv,
109extern int sirdev_put_instance(struct sir_dev *self); 109 const char *name);
110int sirdev_put_instance(struct sir_dev *self);
110 111
111extern int sirdev_set_dongle(struct sir_dev *dev, IRDA_DONGLE type); 112int sirdev_set_dongle(struct sir_dev *dev, IRDA_DONGLE type);
112extern void sirdev_write_complete(struct sir_dev *dev); 113void sirdev_write_complete(struct sir_dev *dev);
113extern int sirdev_receive(struct sir_dev *dev, const unsigned char *cp, size_t count); 114int sirdev_receive(struct sir_dev *dev, const unsigned char *cp, size_t count);
114 115
115/* low level helpers for SIR device/dongle setup */ 116/* low level helpers for SIR device/dongle setup */
116extern int sirdev_raw_write(struct sir_dev *dev, const char *buf, int len); 117int sirdev_raw_write(struct sir_dev *dev, const char *buf, int len);
117extern int sirdev_raw_read(struct sir_dev *dev, char *buf, int len); 118int sirdev_raw_read(struct sir_dev *dev, char *buf, int len);
118extern int sirdev_set_dtr_rts(struct sir_dev *dev, int dtr, int rts); 119int sirdev_set_dtr_rts(struct sir_dev *dev, int dtr, int rts);
119 120
120/* not exported */ 121/* not exported */
121 122
122extern int sirdev_get_dongle(struct sir_dev *self, IRDA_DONGLE type); 123int sirdev_get_dongle(struct sir_dev *self, IRDA_DONGLE type);
123extern int sirdev_put_dongle(struct sir_dev *self); 124int sirdev_put_dongle(struct sir_dev *self);
124 125
125extern void sirdev_enable_rx(struct sir_dev *dev); 126void sirdev_enable_rx(struct sir_dev *dev);
126extern int sirdev_schedule_request(struct sir_dev *dev, int state, unsigned param); 127int sirdev_schedule_request(struct sir_dev *dev, int state, unsigned param);
127 128
128/* inline helpers */ 129/* inline helpers */
129 130