History

backlight: backlight: Drop backlight_put()

There are no external users of backlight_put(). Drop it and open code the two users in backlight.c.

Sam Ravnborg committed 6 years ago

Commit 0f6a3251 parent 51d53e52 files · +5 −12Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/backlight.h+0−10
@@ -388,16 +388,6 @@ static inline int backlight_disable(struct backlight_device *bd) · 387 unmodified lines
388 return backlight_update_status(bd);388 return backlight_update_status(bd);
389}389}
390 390
391/**
392 * backlight_put - Drop backlight reference
393 * @bd: the backlight device to put
394 */
395static inline void backlight_put(struct backlight_device *bd)
396{
397 if (bd)
398 put_device(&bd->dev);
399}
400
401/**391/**
402 * backlight_is_blank - Return true if display is expected to be blank392 * backlight_is_blank - Return true if display is expected to be blank
403 * @bd: the backlight device393 * @bd: the backlight device