23 Mar, 2011
1 commit
-
There may be multiple ways of controlling the backlight on a given
machine. Allow drivers to expose the type of interface they are
providing, making it possible for userspace to make appropriate policy
decisions.Signed-off-by: Matthew Garrett
Cc: Richard Purdie
Cc: Chris Wilson
Cc: David Airlie
Cc: Alex Deucher
Cc: Ben Skeggs
Cc: Zhang Rui
Cc: Len Brown
Cc: Jesse Barnes
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
16 Nov, 2010
1 commit
-
backlight_device_register has been expecting a const "ops" argument, and using
it as such, since 9905a43b2d563e6f89e4c63c4278ada03f2ebb14. Let's make the
remaining backlight_ops instances const.Inspired by hunks of the grsecurity patch, updated for newer kernels.
Signed-off-by: Lionel Debroux
Acked-by: Ingo Molnar
Signed-off-by: Jiri Kosina
17 Mar, 2010
1 commit
-
Values such as max_brightness should be set before backlights are
registered, but the current API doesn't allow that. Add a parameter to
backlight_device_register and update drivers to ensure that they
set this correctly.Signed-off-by: Matthew Garrett
Signed-off-by: Richard Purdie
16 Jul, 2007
1 commit
-
Convert the backlight and LCD classes from struct class_device
to struct device since class_device is scheduled for removal.One nasty API break is the backlight power attribute has had to be
renamed to bl_power and the LCD power attribute has had to be renamed
to lcd_power since the original names clash with the core. I can't see
a way around this.Signed-off-by: Richard Purdie
Acked-by: Greg Kroah-Hartman
07 Mar, 2007
1 commit
-
drivers/video/nvidia/nv_backlight.c: In function 'nvidia_bl_init':
drivers/video/nvidia/nv_backlight.c:103: error: implicit declaration of function 'pmac_has_backlight_type'Signed-off-by: Dave Jones
Signed-off-by: Antonino Daplas
Cc: James Simmons
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
05 Mar, 2007
1 commit
-
Fix a mix up when the nvidia driver was converted resulting
in the backlight having an incorrect initial brightness.Signed-off-by: Richard Purdie
20 Feb, 2007
6 commits
-
Per device data such as brightness belongs to the indivdual device
and should therefore be separate from the the backlight operation
function pointers. This patch splits the two types of data and
allows simplifcation of some code.Signed-off-by: Richard Purdie
-
Move the setting/unsetting of pmac_backlight into the
backlight core instead of doing it in each driver.Signed-off-by: Richard Purdie
-
fb_info->bl_mutex is badly thought out and the backlight class doesn't
need it if the framebuffer/backlight register/unregister order is
consistent, particularly after the backlight locking fixes.Fix the drivers to use the order:
backlight_device_register()
register_framebuffer()
unregister_framebuffer()
backlight_device_unregister()and turn bl_mutex into a lock for the bl_curve data only.
Signed-off-by: Richard Purdie
-
nvidia_bl_set_power isn't needed since the backlight class handles
this by receiving fb events itself and calling update_status so
remove it.Signed-off-by: Richard Purdie
-
backlight_device->sem has a very specific use as documented in the
header file. The external users of this are using it for a different
reason, to serialise access to the update_status() method.backlight users were supposed to implement their own internal
serialisation of update_status() if needed but everyone is doing
things differently and incorrectly. Therefore add a global mutex to
take care of serialisation for everyone, once and for all.Locking for get_brightness remains optional since most users don't
need it.Also update the lcd class in a similar way.
Signed-off-by: Richard Purdie
-
Remove uneeded owner field from backlight_properties structure.
Nothing uses it and it is unlikely that it will ever be used. The
backlight class uses other means to ensure that nothing references
unloaded code.Based on a patch from Dmitry Torokhov
Signed-off-by: Richard Purdie
20 Dec, 2006
1 commit
-
Update the frambuffer drivers to the backlight_device_registers changes.
Signed-off-by: James Simmons
Cc: Luming Yu
Cc: "Antonino A. Daplas"
Cc: Greg KH
Signed-off-by: Andrew Morton
Signed-off-by: Len Brown
02 Sep, 2006
1 commit
-
Fix some more problems (inverted use of semaphores in some places). He
also moved my checks into within the protected section which is better.Signed-off-by: Michael Hanselmann
Signed-off-by: Benjamin Herrenschmidt
Cc: "Antonino A. Daplas"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
31 Aug, 2006
1 commit
-
The backlight changes that went in had a bug where they could cause the
kernel to access an unitialized pointer when blanking if there is no
backlight control on a machine.The bug affects atyfb, aty128fb, nvidiafb and rivafb. radeonfb seems to
be ok. This fixes it.Signed-off-by: Benjamin Herrenschmidt
Signed-off-by: Linus Torvalds
11 Jul, 2006
1 commit
-
This patch fixes several problems:
- pmac_backlight_key() is called under interrupt context, and therefore
can't use mutexes or semaphores, so defer the backlight level for
later, as it's not critical (original code by Aristeu S. Rozanski F.
).
- Add exports for functions that might be called from modules
- Fix Kconfig depdencies on PMAC_BACKLIGHT.
- Fix locking issues on calls from inside the driver (reported by
Aristeu S. Rozanski F., too)
- Fix wrong calculation of backlight values in some of the drivers
- Replace pmac_backlight_key_up/down by inline functions[akpm@osdl.org: fix function prototypes]
Signed-off-by: Michael Hanselmann
Acked-by: Aristeu S. Rozanski F.
Acked-by: Rene Nussbaumer
Cc: Benjamin Herrenschmidt
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
26 Jun, 2006
1 commit
-
This patch contains a total rewrite of the backlight infrastructure for
portable Apple computers. Backward compatibility is retained. A sysfs
interface allows userland to control the brightness with more steps than
before. Userland is allowed to upload a brightness curve for different
monitors, similar to Mac OS X.[akpm@osdl.org: add needed exports]
Signed-off-by: Michael Hanselmann
Acked-by: Benjamin Herrenschmidt
Cc: Richard Purdie
Cc: "Antonino A. Daplas"
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds