提交 b4144e4f 编写于 作者: R Richard Purdie

backlight: Revert some const qualifiers

9905a43b 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: NRichard Purdie <rpurdie@linux.intel.com>
上级 e7fb9c4a
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册