1. 24 2月, 2007 17 次提交
  2. 20 2月, 2007 3 次提交
    • R
      backlight: Separate backlight properties from backlight ops pointers · 599a52d1
      Richard Purdie 提交于
      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: NRichard Purdie <rpurdie@rpsys.net>
      599a52d1
    • R
      backlight: Fix external uses of backlight internal semaphore · 28ee086d
      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: NRichard Purdie <rpurdie@rpsys.net>
      28ee086d
    • R
      backlight: Remove unneeded owner field · dfcba200
      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 <dtor@insightbb.com>
      Signed-off-by: NRichard Purdie <rpurdie@rpsys.net>
      dfcba200
  3. 18 2月, 2007 3 次提交
  4. 17 2月, 2007 17 次提交