Commit 57e5c31e authored by Dan Murphy's avatar Dan Murphy Committed by Pavel

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: default avatarDan Murphy <dmurphy@ti.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 4a29f90e
...@@ -94,12 +94,12 @@ static inline struct led_classdev_flash *lcdev_to_flcdev( ...@@ -94,12 +94,12 @@ static inline struct led_classdev_flash *lcdev_to_flcdev(
* *
* Returns: 0 on success or negative error value on failure * Returns: 0 on success or negative error value on failure
*/ */
extern int led_classdev_flash_register_ext(struct device *parent, int led_classdev_flash_register_ext(struct device *parent,
struct led_classdev_flash *fled_cdev, struct led_classdev_flash *fled_cdev,
struct led_init_data *init_data); struct led_init_data *init_data);
static inline int led_classdev_flash_register(struct device *parent, static inline int led_classdev_flash_register(struct device *parent,
struct led_classdev_flash *fled_cdev) struct led_classdev_flash *fled_cdev)
{ {
return led_classdev_flash_register_ext(parent, fled_cdev, NULL); return led_classdev_flash_register_ext(parent, fled_cdev, NULL);
} }
...@@ -111,7 +111,7 @@ static inline int led_classdev_flash_register(struct device *parent, ...@@ -111,7 +111,7 @@ static inline int led_classdev_flash_register(struct device *parent,
* *
* Unregister a previously registered via led_classdev_flash_register object * Unregister a previously registered via led_classdev_flash_register object
*/ */
extern void led_classdev_flash_unregister(struct led_classdev_flash *fled_cdev); void led_classdev_flash_unregister(struct led_classdev_flash *fled_cdev);
/** /**
* led_set_flash_strobe - setup flash strobe * led_set_flash_strobe - setup flash strobe
...@@ -159,8 +159,8 @@ static inline int led_get_flash_strobe(struct led_classdev_flash *fled_cdev, ...@@ -159,8 +159,8 @@ static inline int led_get_flash_strobe(struct led_classdev_flash *fled_cdev,
* *
* Returns: 0 on success or negative error value on failure * Returns: 0 on success or negative error value on failure
*/ */
extern int led_set_flash_brightness(struct led_classdev_flash *fled_cdev, int led_set_flash_brightness(struct led_classdev_flash *fled_cdev,
u32 brightness); u32 brightness);
/** /**
* led_update_flash_brightness - update flash LED brightness * led_update_flash_brightness - update flash LED brightness
...@@ -171,7 +171,7 @@ extern int led_set_flash_brightness(struct led_classdev_flash *fled_cdev, ...@@ -171,7 +171,7 @@ extern int led_set_flash_brightness(struct led_classdev_flash *fled_cdev,
* *
* Returns: 0 on success or negative error value on failure * Returns: 0 on success or negative error value on failure
*/ */
extern int led_update_flash_brightness(struct led_classdev_flash *fled_cdev); int led_update_flash_brightness(struct led_classdev_flash *fled_cdev);
/** /**
* led_set_flash_timeout - set flash LED timeout * led_set_flash_timeout - set flash LED timeout
...@@ -182,8 +182,7 @@ extern int led_update_flash_brightness(struct led_classdev_flash *fled_cdev); ...@@ -182,8 +182,7 @@ extern int led_update_flash_brightness(struct led_classdev_flash *fled_cdev);
* *
* Returns: 0 on success or negative error value on failure * Returns: 0 on success or negative error value on failure
*/ */
extern int led_set_flash_timeout(struct led_classdev_flash *fled_cdev, int led_set_flash_timeout(struct led_classdev_flash *fled_cdev, u32 timeout);
u32 timeout);
/** /**
* led_get_flash_fault - get the flash LED fault * 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, ...@@ -194,7 +193,6 @@ extern int led_set_flash_timeout(struct led_classdev_flash *fled_cdev,
* *
* Returns: 0 on success or negative error value on failure * Returns: 0 on success or negative error value on failure
*/ */
extern int led_get_flash_fault(struct led_classdev_flash *fled_cdev, int led_get_flash_fault(struct led_classdev_flash *fled_cdev, u32 *fault);
u32 *fault);
#endif /* __LINUX_FLASH_LEDS_H_INCLUDED */ #endif /* __LINUX_FLASH_LEDS_H_INCLUDED */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment