1. 21 1月, 2014 5 次提交
  2. 26 11月, 2013 1 次提交
  3. 21 11月, 2013 24 次提交
  4. 15 11月, 2013 2 次提交
  5. 23 10月, 2013 1 次提交
  6. 22 10月, 2013 1 次提交
  7. 18 10月, 2013 2 次提交
  8. 17 10月, 2013 1 次提交
  9. 16 10月, 2013 1 次提交
    • A
      thinkpad-acpi: fix handle locate for video and query of _BCL · 46445b6b
      Aaron Lu 提交于
      The tpacpi_acpi_handle_locate function makes use of acpi_get_devices to
      locate handle for ACPI video by HID, the problem is, ACPI video node
      doesn't really have HID defined(i.e. no _HID control method is defined
      for video device), so.. that function would fail. This can be solved by
      enhancing the callback function for acpi_get_devices, where we can use
      acpi_device_hid function to check if the ACPI node corresponds to a
      video controller.
      
      In addition to that, the _BCL control method only exists under a video
      output device node, not a video controller device node. So to evaluate
      _BCL, we need the handle of a video output device node, which is child
      of the located video controller node from tpacpi_acpi_handle_locate.
      
      The two fix are necessary for some Thinkpad models to emit notification
      on backlight hotkey press as a result of evaluation of _BCL.
      Signed-off-by: NAaron Lu <aaron.lu@intel.com>
      Tested-by: NIgor Gnatenko <i.gnatenko.brain@gmail.com>
      Acked-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      46445b6b
  10. 26 9月, 2013 2 次提交
    • Z
      ideapad_laptop: convert ideapad device/driver to platform bus · b5c37b79
      Zhang Rui 提交于
      This patch does two things,
       1. enumerate the ideapad device node to platform bus.
       2. convert the current driver from ACPI bus to platform bus.
      
      Note, with this patch, the platform device node created by ACPI,
      with the name VPC2004:00, is used as the parent device of
      the input, backlight, rfkill sysfs class device.
      Plus the ideapad_platform private sysfs attributes,
      i.e. camera_power and fan_mode, are also moved to the new
      platform device node.
      
      The previous platform device node "ideapad" is removed.
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      CC: Matthew Garrett <matthew.garrett@nebula.com>
      CC: Ike Panhc <ike.pan@canonical.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      b5c37b79
    • Z
      ideapad_laptop: remove ideapad_handle and ideapad_priv · 331e0ea2
      Zhang Rui 提交于
      The current code use ideapad_handle and ideapad_priv to store
      some information for the ideapad device.
      But as they are global/static variables, the driver will be broken
      if there are more than one ideapad ACPI device node on a platform.
      Although this does not happen for now and may not happen in the future,
      but still, this is a software bug.
      
      Remove these two variables in this patch.
      Signed-off-by: NZhang Rui <rui.zhang@intel.com>
      CC: Matthew Garrett <matthew.garrett@nebula.com>
      CC: Ike Panhc <ike.pan@canonical.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      331e0ea2