diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-22 11:19:46 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-22 11:19:46 -0700 |
commit | 2fe83b3ad12d43799af5f3156886eca443a88bac (patch) | |
tree | 1f09c2f0013f4742106f7b1732da6fdc45b18d39 /include/linux/backlight.h | |
parent | dd6ccfe64dad4ea498392805b477308abef43a4c (diff) | |
parent | ce8c47cf88af4da2ff429933c07f203a55d5d0a1 (diff) | |
download | op-kernel-dev-2fe83b3ad12d43799af5f3156886eca443a88bac.zip op-kernel-dev-2fe83b3ad12d43799af5f3156886eca443a88bac.tar.gz |
Merge branch 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight
* 'for-linus' of git://git.o-hand.com/linux-rpurdie-backlight:
leds: cr_bllcd.c: build fix
backlight: Convert from struct class_device to struct device
backlight: Fix order of Kconfig entries
Diffstat (limited to 'include/linux/backlight.h')
-rw-r--r-- | include/linux/backlight.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/backlight.h b/include/linux/backlight.h index 1023ba0..c897c7b 100644 --- a/include/linux/backlight.h +++ b/include/linux/backlight.h @@ -69,8 +69,8 @@ struct backlight_device { /* The framebuffer notifier block */ struct notifier_block fb_notif; - /* The class device structure */ - struct class_device class_dev; + + struct device dev; }; static inline void backlight_update_status(struct backlight_device *bd) @@ -85,6 +85,11 @@ extern struct backlight_device *backlight_device_register(const char *name, struct device *dev, void *devdata, struct backlight_ops *ops); extern void backlight_device_unregister(struct backlight_device *bd); -#define to_backlight_device(obj) container_of(obj, struct backlight_device, class_dev) +#define to_backlight_device(obj) container_of(obj, struct backlight_device, dev) + +static inline void * bl_get_data(struct backlight_device *bl_dev) +{ + return dev_get_drvdata(&bl_dev->dev); +} #endif |