Commit 9c4aa311 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by Lee Jones

backlight: backlight: Drop extern from prototypes

No need to put "extern" in front of prototypes. While touching the
prototypes adjust indent to follow the kernel style.
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 7ecdea4a
...@@ -417,23 +417,26 @@ static inline bool backlight_is_blank(const struct backlight_device *bd) ...@@ -417,23 +417,26 @@ static inline bool backlight_is_blank(const struct backlight_device *bd)
bd->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK); bd->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK);
} }
extern struct backlight_device *backlight_device_register(const char *name, struct backlight_device *
struct device *dev, void *devdata, const struct backlight_ops *ops, backlight_device_register(const char *name, struct device *dev, void *devdata,
const struct backlight_properties *props); const struct backlight_ops *ops,
extern struct backlight_device *devm_backlight_device_register( const struct backlight_properties *props);
struct device *dev, const char *name, struct device *parent, struct backlight_device *
void *devdata, const struct backlight_ops *ops, devm_backlight_device_register(struct device *dev, const char *name,
const struct backlight_properties *props); struct device *parent, void *devdata,
extern void backlight_device_unregister(struct backlight_device *bd); const struct backlight_ops *ops,
extern void devm_backlight_device_unregister(struct device *dev, const struct backlight_properties *props);
struct backlight_device *bd); void backlight_device_unregister(struct backlight_device *bd);
extern void backlight_force_update(struct backlight_device *bd, void devm_backlight_device_unregister(struct device *dev,
enum backlight_update_reason reason); struct backlight_device *bd);
extern int backlight_register_notifier(struct notifier_block *nb); void backlight_force_update(struct backlight_device *bd,
extern int backlight_unregister_notifier(struct notifier_block *nb); enum backlight_update_reason reason);
extern struct backlight_device *backlight_device_get_by_type(enum backlight_type type); int backlight_register_notifier(struct notifier_block *nb);
int backlight_unregister_notifier(struct notifier_block *nb);
struct backlight_device *backlight_device_get_by_name(const char *name); struct backlight_device *backlight_device_get_by_name(const char *name);
extern int backlight_device_set_brightness(struct backlight_device *bd, unsigned long brightness); struct backlight_device *backlight_device_get_by_type(enum backlight_type type);
int backlight_device_set_brightness(struct backlight_device *bd,
unsigned long brightness);
#define to_backlight_device(obj) container_of(obj, struct backlight_device, dev) #define to_backlight_device(obj) container_of(obj, struct backlight_device, dev)
......
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