diff options
| author | David S. Miller <davem@davemloft.net> | 2010-03-22 20:05:26 -0700 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2010-03-22 20:05:26 -0700 | 
| commit | 91c030b4d6445ebe9fbddb86d584441f300df15c (patch) | |
| tree | e8a48e3ad9e0448c690268175e555fa651983546 /include/linux/backlight.h | |
| parent | 7c3456fdb503071787f7f972de1069b9cacd16f0 (diff) | |
| parent | ae6be51ed01d6c4aaf249a207b4434bc7785853b (diff) | |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Diffstat (limited to 'include/linux/backlight.h')
| -rw-r--r-- | include/linux/backlight.h | 11 | 
1 files changed, 6 insertions, 5 deletions
| diff --git a/include/linux/backlight.h b/include/linux/backlight.h index 8c4f884db6b4..4a3d52e545e1 100644 --- a/include/linux/backlight.h +++ b/include/linux/backlight.h @@ -36,18 +36,18 @@ struct backlight_device;  struct fb_info;  struct backlight_ops { -	const unsigned int options; +	unsigned int options;  #define BL_CORE_SUSPENDRESUME	(1 << 0)  	/* Notify the backlight driver some property has changed */ -	int (* const update_status)(struct backlight_device *); +	int (*update_status)(struct backlight_device *);  	/* Return the current backlight brightness (accounting for power,  	   fb_blank etc.) */ -	int (* const get_brightness)(struct backlight_device *); +	int (*get_brightness)(struct backlight_device *);  	/* Check if given framebuffer device is the one bound to this backlight;  	   return 0 if not, !=0 if it is. If NULL, backlight always matches the fb. */ -	int (* const check_fb)(struct fb_info *); +	int (*check_fb)(struct backlight_device *, struct fb_info *);  };  /* This structure defines all the properties of a backlight */ @@ -103,7 +103,8 @@ static inline void backlight_update_status(struct backlight_device *bd)  }  extern struct backlight_device *backlight_device_register(const char *name, -	struct device *dev, void *devdata, const struct backlight_ops *ops); +	struct device *dev, void *devdata, const struct backlight_ops *ops, +	const struct backlight_properties *props);  extern void backlight_device_unregister(struct backlight_device *bd);  extern void backlight_force_update(struct backlight_device *bd,  				   enum backlight_update_reason reason); | 
