Skip to content

Commit 57e5c31

Browse files
Dan Murphypavelmachek
authored andcommitted
leds: flash: Remove extern from the header file
extern is implied and is not needed in the header file. Remove the extern keyword and re-align the code. Signed-off-by: Dan Murphy <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
1 parent 4a29f90 commit 57e5c31

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

include/linux/led-class-flash.h

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ static inline struct led_classdev_flash *lcdev_to_flcdev(
9494
*
9595
* Returns: 0 on success or negative error value on failure
9696
*/
97-
extern int led_classdev_flash_register_ext(struct device *parent,
98-
struct led_classdev_flash *fled_cdev,
99-
struct led_init_data *init_data);
97+
int led_classdev_flash_register_ext(struct device *parent,
98+
struct led_classdev_flash *fled_cdev,
99+
struct led_init_data *init_data);
100100

101101
static inline int led_classdev_flash_register(struct device *parent,
102-
struct led_classdev_flash *fled_cdev)
102+
struct led_classdev_flash *fled_cdev)
103103
{
104104
return led_classdev_flash_register_ext(parent, fled_cdev, NULL);
105105
}
@@ -111,7 +111,7 @@ static inline int led_classdev_flash_register(struct device *parent,
111111
*
112112
* Unregister a previously registered via led_classdev_flash_register object
113113
*/
114-
extern void led_classdev_flash_unregister(struct led_classdev_flash *fled_cdev);
114+
void led_classdev_flash_unregister(struct led_classdev_flash *fled_cdev);
115115

116116
/**
117117
* led_set_flash_strobe - setup flash strobe
@@ -159,8 +159,8 @@ static inline int led_get_flash_strobe(struct led_classdev_flash *fled_cdev,
159159
*
160160
* Returns: 0 on success or negative error value on failure
161161
*/
162-
extern int led_set_flash_brightness(struct led_classdev_flash *fled_cdev,
163-
u32 brightness);
162+
int led_set_flash_brightness(struct led_classdev_flash *fled_cdev,
163+
u32 brightness);
164164

165165
/**
166166
* led_update_flash_brightness - update flash LED brightness
@@ -171,7 +171,7 @@ extern int led_set_flash_brightness(struct led_classdev_flash *fled_cdev,
171171
*
172172
* Returns: 0 on success or negative error value on failure
173173
*/
174-
extern int led_update_flash_brightness(struct led_classdev_flash *fled_cdev);
174+
int led_update_flash_brightness(struct led_classdev_flash *fled_cdev);
175175

176176
/**
177177
* led_set_flash_timeout - set flash LED timeout
@@ -182,8 +182,7 @@ extern int led_update_flash_brightness(struct led_classdev_flash *fled_cdev);
182182
*
183183
* Returns: 0 on success or negative error value on failure
184184
*/
185-
extern int led_set_flash_timeout(struct led_classdev_flash *fled_cdev,
186-
u32 timeout);
185+
int led_set_flash_timeout(struct led_classdev_flash *fled_cdev, u32 timeout);
187186

188187
/**
189188
* led_get_flash_fault - get the flash LED fault
@@ -194,7 +193,6 @@ extern int led_set_flash_timeout(struct led_classdev_flash *fled_cdev,
194193
*
195194
* Returns: 0 on success or negative error value on failure
196195
*/
197-
extern int led_get_flash_fault(struct led_classdev_flash *fled_cdev,
198-
u32 *fault);
196+
int led_get_flash_fault(struct led_classdev_flash *fled_cdev, u32 *fault);
199197

200198
#endif /* __LINUX_FLASH_LEDS_H_INCLUDED */

0 commit comments

Comments
 (0)