summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/backlight.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/backlight.h')
-rw-r--r--kernel/include/linux/backlight.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/include/linux/backlight.h b/kernel/include/linux/backlight.h
index adb14a861..1e7a69adb 100644
--- a/kernel/include/linux/backlight.h
+++ b/kernel/include/linux/backlight.h
@@ -117,12 +117,16 @@ struct backlight_device {
int use_count;
};
-static inline void backlight_update_status(struct backlight_device *bd)
+static inline int backlight_update_status(struct backlight_device *bd)
{
+ int ret = -ENOENT;
+
mutex_lock(&bd->update_lock);
if (bd->ops && bd->ops->update_status)
- bd->ops->update_status(bd);
+ ret = bd->ops->update_status(bd);
mutex_unlock(&bd->update_lock);
+
+ return ret;
}
extern struct backlight_device *backlight_device_register(const char *name,