1. 27 Jan, 2016 2 commits
    • Arnd Bergmann's avatar
      Input: sirfsoc-onkey - allow modular build · af6e9463
      Arnd Bergmann authored
      CONFIG_INPUT may itself be a loadable module, but the sirf power key
      driver is listed as 'bool', which makes it possible to select
      a broken configuration with the driver built-in but the subsystem
      not loaded. In this configuration, we get a link error:
      
      drivers/input/built-in.o: In function `sirfsoc_pwrc_isr':
      drivers/input/misc/sirfsoc-onkey.c:63: undefined reference to `input_event'
      drivers/input/built-in.o: In function `sirfsoc_pwrc_isr':
      include/linux/input.h:414: undefined reference to `input_event'
      drivers/input/built-in.o: In function `sirfsoc_pwrc_probe':
      drivers/input/misc/sirfsoc-onkey.c:132: undefined reference to `devm_input_allocate_device'
      drivers/input/misc/sirfsoc-onkey.c:139: undefined reference to `input_set_capability'
      drivers/input/misc/sirfsoc-onkey.c:161: undefined reference to `input_register_device'
      drivers/input/built-in.o: In function `sirfsoc_pwrc_report_event':
      drivers/input/misc/sirfsoc-onkey.c:48: undefined reference to `input_event'
      drivers/input/built-in.o: In function `sirfsoc_pwrc_report_event':
      include/linux/input.h:414: undefined reference to `input_event'
      drivers/input/built-in.o:(.debug_addr+0x24): undefined reference to `input_event'
      drivers/input/built-in.o:(.debug_addr+0xbc): undefined reference to `devm_input_allocate_device'
      drivers/input/built-in.o:(.debug_addr+0x104): undefined reference to `input_set_capability'
      drivers/input/built-in.o:(.debug_addr+0x128): undefined reference to `input_register_device'
      
      This marks the driver as 'tristate' so it becomes possible to have
      it in a loadable module, mainly to help with randconfig builds.
      
      We also have to add a missing semicolon here, which ended up not
      being needed in built-in mode because the following MODULE_DEVICE_TABLE
      is an empty macro followed by another semicolon then.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      af6e9463
    • Arnd Bergmann's avatar
      Input: xpad - remove unused function · a6ed4a18
      Arnd Bergmann authored
      There are two definitions of xpad_identify_controller(), one is used
      when CONFIG_JOYSTICK_XPAD_LEDS is set, but the other one is empty
      and never used, and we get a gcc warning about it:
      
      drivers/input/joystick/xpad.c:1210:13: warning: 'xpad_identify_controller' defined but not used [-Wunused-function]
      
      This removes the second definition.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: cae705ba ("Input: xpad - re-send LED command on present event")
      Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
      a6ed4a18
  2. 22 Jan, 2016 1 commit
  3. 13 Jan, 2016 4 commits
  4. 12 Jan, 2016 3 commits
  5. 11 Jan, 2016 1 commit
  6. 10 Jan, 2016 1 commit
  7. 08 Jan, 2016 2 commits
  8. 07 Jan, 2016 5 commits
  9. 04 Jan, 2016 4 commits
  10. 03 Jan, 2016 3 commits
  11. 20 Dec, 2015 1 commit
  12. 19 Dec, 2015 4 commits
  13. 18 Dec, 2015 7 commits
  14. 17 Dec, 2015 2 commits