[Intel-gfx] [PATCH] i915: Add native backlight support

Bruno Prémont bonbons at linux-vserver.org
Mon Feb 22 18:13:30 CET 2010


On Mon, 22 February 2010 Matthew Garrett <mjg at redhat.com> wrote:
> Some machines do not provide a firmware or platform interface to
> backlight control, and so it's necessary to drive the hardware
> directly. Add support for a backlight driver to the drm. This will be
> flagged with the raw backlight type, allowing userspace to determine
> whether there is a more favourable backlight device available.
> 
> Signed-off-by: Matthew Garrett <mjg at redhat.com>
> ---

<snip>

> --- a/drivers/gpu/drm/i915/intel_lvds.c
> +++ b/drivers/gpu/drm/i915/intel_lvds.c
...
> +
> +struct backlight_ops intel_lvds_bl_ops = {
> +	.update_status = intel_lvds_update_status,
> +	.get_brightness = intel_lvds_get_brightness,
> +};

This struct backlight_ops should be marked static and const

Bruno



More information about the Intel-gfx mailing list