Skip to content

Commit

Permalink
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/dtor/input

Pull more input updates from Dmitry Torokhov:

 - Apple SPI keyboard and trackpad driver for newer Macs

 - ALPS driver will ignore trackpoint-only devices to give the
   trackpoint driver a chance to handle them properly

 - another Lenovo is switched over to SMbus from PS/2

 - assorted driver fixups.

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input:
  Input: alps - fix a mismatch between a condition check and its comment
  Input: psmouse - fix build error of multiple definition
  Input: applespi - remove set but not used variables 'sts'
  Input: add Apple SPI keyboard and trackpad driver
  Input: alps - don't handle ALPS cs19 trackpoint-only device
  Input: hyperv-keyboard - remove dependencies on PAGE_SIZE for ring buffer
  Input: adp5589 - initialize GPIO controller parent device
  Input: iforce - remove empty multiline comments
  Input: synaptics - fix misuse of strlcpy
  Input: auo-pixcir-ts - switch to using  devm_add_action_or_reset()
  Input: gtco - bounds check collection indent level
  Input: mtk-pmic-keys - add of_node_put() before return
  Input: sun4i-lradc-keys - add of_node_put() before return
  Input: synaptics - whitelist Lenovo T580 SMBus intertouch
  • Loading branch information
torvalds committed Jul 20, 2019
2 parents ac60602 + c39f2d9 commit f1a3b43
Show file tree
Hide file tree
Showing 20 changed files with 2,183 additions and 29 deletions.
3 changes: 0 additions & 3 deletions drivers/input/joystick/iforce/iforce-ff.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
* USB/RS232 I-Force joysticks and wheels.
*/

/*
*/

#include "iforce.h"

/*
Expand Down
3 changes: 0 additions & 3 deletions drivers/input/joystick/iforce/iforce-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
* USB/RS232 I-Force joysticks and wheels.
*/

/*
*/

#include <asm/unaligned.h>
#include "iforce.h"

Expand Down
3 changes: 0 additions & 3 deletions drivers/input/joystick/iforce/iforce-packets.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
* USB/RS232 I-Force joysticks and wheels.
*/

/*
*/

#include <asm/unaligned.h>
#include "iforce.h"

Expand Down
3 changes: 0 additions & 3 deletions drivers/input/joystick/iforce/iforce-serio.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
* USB/RS232 I-Force joysticks and wheels.
*/

/*
*/

#include <linux/serio.h>
#include "iforce.h"

Expand Down
3 changes: 0 additions & 3 deletions drivers/input/joystick/iforce/iforce-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
* USB/RS232 I-Force joysticks and wheels.
*/

/*
*/

#include <linux/usb.h>
#include "iforce.h"

Expand Down
3 changes: 0 additions & 3 deletions drivers/input/joystick/iforce/iforce.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
* USB/RS232 I-Force joysticks and wheels.
*/

/*
*/

#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/input.h>
Expand Down
16 changes: 16 additions & 0 deletions drivers/input/keyboard/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,22 @@ config KEYBOARD_AMIGA
config ATARI_KBD_CORE
bool

config KEYBOARD_APPLESPI
tristate "Apple SPI keyboard and trackpad"
depends on ACPI && EFI
depends on SPI
depends on X86 || COMPILE_TEST
help
Say Y here if you are running Linux on any Apple MacBook8,1 or later,
or any MacBookPro13,* or MacBookPro14,*.

You will also need to enable appropriate SPI master controllers:
spi_pxa2xx_platform and spi_pxa2xx_pci for MacBook8,1, and
spi_pxa2xx_platform and intel_lpss_pci for the rest.

To compile this driver as a module, choose M here: the
module will be called applespi.

config KEYBOARD_ATARI
tristate "Atari keyboard"
depends on ATARI
Expand Down
1 change: 1 addition & 0 deletions drivers/input/keyboard/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ obj-$(CONFIG_KEYBOARD_ADP5520) += adp5520-keys.o
obj-$(CONFIG_KEYBOARD_ADP5588) += adp5588-keys.o
obj-$(CONFIG_KEYBOARD_ADP5589) += adp5589-keys.o
obj-$(CONFIG_KEYBOARD_AMIGA) += amikbd.o
obj-$(CONFIG_KEYBOARD_APPLESPI) += applespi.o
obj-$(CONFIG_KEYBOARD_ATARI) += atakbd.o
obj-$(CONFIG_KEYBOARD_ATKBD) += atkbd.o
obj-$(CONFIG_KEYBOARD_BCM) += bcm-keypad.o
Expand Down
1 change: 1 addition & 0 deletions drivers/input/keyboard/adp5589-keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ static int adp5589_gpio_add(struct adp5589_kpad *kpad)
if (!gpio_data)
return 0;

kpad->gc.parent = dev;
kpad->gc.ngpio = adp5589_build_gpiomap(kpad, pdata);
if (kpad->gc.ngpio == 0) {
dev_info(dev, "No unused gpios left to export\n");
Expand Down
Loading

0 comments on commit f1a3b43

Please sign in to comment.