History

backlight: backlight: Document inline functions in backlight.h

Add documentation for the inline functions in backlight.h

Sam Ravnborg committed 6 years ago

Commit d160fd41 parent 6f10cd11 file · +16 −0Browse files

Showing the changes to include/linux/backlight.h (1 of 1 file). Show all

Unified · Split

include/linux/backlight.h+16−0
@@ -268,6 +268,10 @@ struct backlight_device { · 267 unmodified lines
268 int use_count;268 int use_count;
269};269};
270 270
271/**
272 * backlight_update_status - force an update of the backlight device status
273 * @bd: the backlight device
274 */
271static inline int backlight_update_status(struct backlight_device *bd)275static inline int backlight_update_status(struct backlight_device *bd)
272{276{
273 int ret = -ENOENT;277 int ret = -ENOENT;
@@ -361,6 +365,18 @@ extern int backlight_device_set_brightness(struct backlight_device *bd, unsigned · 87 unmodified lines
361 365
362#define to_backlight_device(obj) container_of(obj, struct backlight_device, dev)366#define to_backlight_device(obj) container_of(obj, struct backlight_device, dev)
363 367
368/**
369 * bl_get_data - access devdata
370 * @bl_dev: pointer to backlight device
371 *
372 * When a backlight device is registered the driver has the possibility
373 * to supply a void * devdata. bl_get_data() return a pointer to the
374 * devdata.
375 *
376 * RETURNS:
377 *
378 * pointer to devdata stored while registering the backlight device.
379 */
364static inline void * bl_get_data(struct backlight_device *bl_dev)380static inline void * bl_get_data(struct backlight_device *bl_dev)
365{381{
366 return dev_get_drvdata(&bl_dev->dev);382 return dev_get_drvdata(&bl_dev->dev);