aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Ravnborg <[email protected]>2020-07-19 10:07:30 +0200
committerLee Jones <[email protected]>2020-07-20 10:26:06 +0100
commitd160fd4e918da33f5ffbcf005cd95888dbbe4f76 (patch)
treec0e34f57c05b71463ebfd2a60babcef98a597f66
parent6f10cd124c44eea018672d5852708ca5dca4d06d (diff)
backlight: backlight: Document inline functions in backlight.h
Add documentation for the inline functions in backlight.h Signed-off-by: Sam Ravnborg <[email protected]> Reviewed-by: Daniel Thompson <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Lee Jones <[email protected]>
-rw-r--r--include/linux/backlight.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/backlight.h b/include/linux/backlight.h
index cf9977169fe8..99381b5a289d 100644
--- a/include/linux/backlight.h
+++ b/include/linux/backlight.h
@@ -268,6 +268,10 @@ struct backlight_device {
int use_count;
};
+/**
+ * backlight_update_status - force an update of the backlight device status
+ * @bd: the backlight device
+ */
static inline int backlight_update_status(struct backlight_device *bd)
{
int ret = -ENOENT;
@@ -361,6 +365,18 @@ extern int backlight_device_set_brightness(struct backlight_device *bd, unsigned
#define to_backlight_device(obj) container_of(obj, struct backlight_device, dev)
+/**
+ * bl_get_data - access devdata
+ * @bl_dev: pointer to backlight device
+ *
+ * When a backlight device is registered the driver has the possibility
+ * to supply a void * devdata. bl_get_data() return a pointer to the
+ * devdata.
+ *
+ * RETURNS:
+ *
+ * pointer to devdata stored while registering the backlight device.
+ */
static inline void * bl_get_data(struct backlight_device *bl_dev)
{
return dev_get_drvdata(&bl_dev->dev);