1. 20 11月, 2014 5 次提交
  2. 11 11月, 2014 1 次提交
  3. 08 11月, 2014 1 次提交
  4. 28 10月, 2014 5 次提交
  5. 14 10月, 2014 1 次提交
  6. 07 10月, 2014 1 次提交
  7. 01 10月, 2014 3 次提交
  8. 30 9月, 2014 1 次提交
  9. 26 9月, 2014 1 次提交
  10. 23 9月, 2014 1 次提交
  11. 20 9月, 2014 9 次提交
  12. 19 9月, 2014 2 次提交
  13. 18 9月, 2014 7 次提交
  14. 09 9月, 2014 1 次提交
  15. 04 9月, 2014 1 次提交
    • D
      toshiba_acpi: fix and cleanup toshiba_kbd_bl_mode_store() · aeaac098
      Dan Carpenter 提交于
      The current code just returns -EINVAL because mode can't be equal to
      both 1 and 2.
      
      Also this function is messy so I have cleaned it up:
      1) Remove initializers like "int time = -1".  Initializing variables to
         garbage values turns off GCC's uninitialized variable warnings so it
         can lead to bugs.
      2) Use kstrtoint() instead of sscanf().
      3) Use SCI_KBD_MODE_FNZ and SCI_KBD_MODE_AUTO instead of magic numbers 1
         and 2.
      4) Don't check for "mode == -1" because that can't happen.
      5) Preserve the error code from toshiba_kbd_illum_status_set().
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      aeaac098