mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
sfc: 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>
This commit is contained in:
parent
8a1a0ae11c
commit
00aef9867e
6 changed files with 234 additions and 249 deletions
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
extern const struct efx_phy_operations falcon_sfx7101_phy_ops;
|
||||
|
||||
extern void tenxpress_set_id_led(struct efx_nic *efx, enum efx_led_mode mode);
|
||||
void tenxpress_set_id_led(struct efx_nic *efx, enum efx_led_mode mode);
|
||||
|
||||
/****************************************************************************
|
||||
* AMCC/Quake QT202x PHYs
|
||||
|
@ -34,7 +34,7 @@ extern const struct efx_phy_operations falcon_qt202x_phy_ops;
|
|||
#define QUAKE_LED_TXLINK (0)
|
||||
#define QUAKE_LED_RXLINK (8)
|
||||
|
||||
extern void falcon_qt202x_set_led(struct efx_nic *p, int led, int state);
|
||||
void falcon_qt202x_set_led(struct efx_nic *p, int led, int state);
|
||||
|
||||
/****************************************************************************
|
||||
* Transwitch CX4 retimer
|
||||
|
@ -44,7 +44,7 @@ extern const struct efx_phy_operations falcon_txc_phy_ops;
|
|||
#define TXC_GPIO_DIR_INPUT 0
|
||||
#define TXC_GPIO_DIR_OUTPUT 1
|
||||
|
||||
extern void falcon_txc_set_gpio_dir(struct efx_nic *efx, int pin, int dir);
|
||||
extern void falcon_txc_set_gpio_val(struct efx_nic *efx, int pin, int val);
|
||||
void falcon_txc_set_gpio_dir(struct efx_nic *efx, int pin, int dir);
|
||||
void falcon_txc_set_gpio_val(struct efx_nic *efx, int pin, int val);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue