1. 25 7月, 2015 5 次提交
    • A
      toshiba_acpi: Remove unused wireless defines · d7e4f2e2
      Azael Avalos 提交于
      Commit 2b741035 ("toshiba_acpi: Remove bluetooth rfkill code")
      removed bluetooth related code, however, the wireless defines were
      not removed and are unused.
      
      This patch simply removes those defines as there is no code using
      them.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      d7e4f2e2
    • A
      toshiba_acpi: Transflective backlight updates · 695f6060
      Azael Avalos 提交于
      This patch changes the tr function second parameter from bool to u32,
      to be on par with the rest of the TCI functions of the driver, and the
      code was updated accordingly.
      
      Also, the check for translective support was moved to the *add
      function, as the {__get, set}_lcd_brightness functions make use of it.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      695f6060
    • A
      toshiba_acpi: Avoid registering input device on WMI event laptops · a88bc06e
      Azael Avalos 提交于
      Commit f11f999e ("toshiba_acpi: Refuse to load on machines with
      buggy INFO implementations") denied loading on laptops with a WMI Event
      GUID given that such laptops manage the hotkeys via that interface,
      however, such laptops have a working Toshiba Configuration Interface
      (TCI), and thus, such commit denied several supported features.
      
      This patch avoids registering the input device and ignores all hotkey
      events on laptops with such WMI Event GUID, making the supported
      features found in those laptops to work.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      a88bc06e
    • A
      toshiba_acpi: Add /dev/toshiba_acpi device · fc5462f8
      Azael Avalos 提交于
      There were previous attempts to "merge" the toshiba SMM module to the
      toshiba_acpi one, they were trying to imitate what the old toshiba
      module does, however, some models (TOS1900 devices) come with a
      "crippled" implementation and do not provide all the "features" a
      "genuine" Toshiba BIOS does.
      
      This patch adds a new device called toshiba_acpi, which aim is to
      enable userspace to access the SMM on Toshiba laptops via ACPI calls.
      
      Creating a new convenience _IOWR command to access the SCI functions
      by opening/closing the SCI internally to avoid buggy BIOS, while at
      the same time providing backwards compatibility.
      
      Older programs (and new) who wish to access the SMM on newer models
      can do it by pointing their path to /dev/toshiba_acpi (instead of
      /dev/toshiba) as the toshiba.h header was modified to reflect these
      changes as well as adds all the toshiba_acpi paths and command,
      however, it is strongly recommended to use the new IOCTL for any
      SCI command to avoid any buggy BIOS.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      fc5462f8
    • A
      toshiba_acpi: Adapt /proc/acpi/toshiba/keys to TOS1900 devices · 7deef550
      Azael Avalos 提交于
      Since the introduction of TOS1900 devices support to the driver, the
      "keys" entry under the proc directory was broken, given that it only
      handled TOS620X devices accordingly.
      
      This patch adapts the code to show the hotkey values of TOS1900
      devices too, and in case some programs are still using that interface,
      hotkeys reporting should now work on these devices.
      Signed-off-by: NAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      7deef550
  2. 15 7月, 2015 1 次提交
  3. 10 7月, 2015 1 次提交
  4. 07 7月, 2015 4 次提交
  5. 30 6月, 2015 1 次提交
  6. 27 6月, 2015 1 次提交
  7. 25 6月, 2015 1 次提交
  8. 23 6月, 2015 2 次提交
  9. 19 6月, 2015 22 次提交
  10. 17 6月, 2015 1 次提交
    • P
      drivers/platform: Convert non-modular pdev_bus to use builtin_platform_driver · 1dda2b42
      Paul Gortmaker 提交于
      This driver is configured with a Kconfig option that is
      declared as a bool.  Hence it is not possible for the code
      to be built as modular.  However the code is currently using
      the module_platform_driver() macro for driver registration.
      
      While this currently works, we really don't want to be including
      the module.h header in non-modular code, which we'll be forced
      to do, pending some upcoming code relocation from init.h into
      module.h.  So we fix it now by using the non-modular equivalent.
      And since we've already established that the code is non-modular,
      we can completely drop any code relating to module_exit.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      1dda2b42
  11. 16 6月, 2015 1 次提交
    • A
      ideapad: fix software rfkill setting · 4b200b46
      Arnd Bergmann 提交于
      This fixes a several year old regression that I found while trying
      to get the Yoga 3 11 to work. The ideapad_rfk_set function is meant
      to send a command to the embedded controller through ACPI, but
      as of c1f73658, it sends the index of the rfkill device instead
      of the command, and ignores the opcode field.
      
      This changes it back to the original behavior, which indeed
      flips the rfkill state as seen in the debugfs interface.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: c1f73658 ("ideapad: pass ideapad_priv as argument (part 2)")
      Cc: stable@vger.kernel.org # v2.6.38+
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      4b200b46