Skip to content

Commit

Permalink
backlight: Revert some const qualifiers
Browse files Browse the repository at this point in the history
9905a43 went a little to far with const
qualifiers as there are legitiment cases where the function pointers
can change (machine specific setup code for example).

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
  • Loading branch information
Richard Purdie committed Mar 16, 2010
1 parent e7fb9c4 commit b4144e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/linux/backlight.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 fb_info *);
};

/* This structure defines all the properties of a backlight */
Expand Down

0 comments on commit b4144e4

Please sign in to comment.