diff options
author | Joe Perches <joe@perches.com> | 2013-09-23 14:37:59 -0400 |
---|---|---|
committer | Joe Perches <joe@perches.com> | 2013-09-24 15:54:17 -0400 |
commit | 294da3abaa73a0b69fd54e442b0b5bd9455b7be6 (patch) | |
tree | 1fc0c9bbd726b2498ab193867411c02f18108325 /drivers/net/irda | |
parent | d140ad96146b6e7b196c31cbbb0f971845bfd053 (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.h | 29 |
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 | ||
105 | extern int irda_register_dongle(struct dongle_driver *new); | 105 | int irda_register_dongle(struct dongle_driver *new); |
106 | extern int irda_unregister_dongle(struct dongle_driver *drv); | 106 | int irda_unregister_dongle(struct dongle_driver *drv); |
107 | 107 | ||
108 | extern struct sir_dev * sirdev_get_instance(const struct sir_driver *drv, const char *name); | 108 | struct sir_dev *sirdev_get_instance(const struct sir_driver *drv, |
109 | extern int sirdev_put_instance(struct sir_dev *self); | 109 | const char *name); |
110 | int sirdev_put_instance(struct sir_dev *self); | ||
110 | 111 | ||
111 | extern int sirdev_set_dongle(struct sir_dev *dev, IRDA_DONGLE type); | 112 | int sirdev_set_dongle(struct sir_dev *dev, IRDA_DONGLE type); |
112 | extern void sirdev_write_complete(struct sir_dev *dev); | 113 | void sirdev_write_complete(struct sir_dev *dev); |
113 | extern int sirdev_receive(struct sir_dev *dev, const unsigned char *cp, size_t count); | 114 | int 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 */ |
116 | extern int sirdev_raw_write(struct sir_dev *dev, const char *buf, int len); | 117 | int sirdev_raw_write(struct sir_dev *dev, const char *buf, int len); |
117 | extern int sirdev_raw_read(struct sir_dev *dev, char *buf, int len); | 118 | int sirdev_raw_read(struct sir_dev *dev, char *buf, int len); |
118 | extern int sirdev_set_dtr_rts(struct sir_dev *dev, int dtr, int rts); | 119 | int sirdev_set_dtr_rts(struct sir_dev *dev, int dtr, int rts); |
119 | 120 | ||
120 | /* not exported */ | 121 | /* not exported */ |
121 | 122 | ||
122 | extern int sirdev_get_dongle(struct sir_dev *self, IRDA_DONGLE type); | 123 | int sirdev_get_dongle(struct sir_dev *self, IRDA_DONGLE type); |
123 | extern int sirdev_put_dongle(struct sir_dev *self); | 124 | int sirdev_put_dongle(struct sir_dev *self); |
124 | 125 | ||
125 | extern void sirdev_enable_rx(struct sir_dev *dev); | 126 | void sirdev_enable_rx(struct sir_dev *dev); |
126 | extern int sirdev_schedule_request(struct sir_dev *dev, int state, unsigned param); | 127 | int sirdev_schedule_request(struct sir_dev *dev, int state, unsigned param); |
127 | 128 | ||
128 | /* inline helpers */ | 129 | /* inline helpers */ |
129 | 130 | ||