Skip to content

Commit f1a3b43

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/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
2 parents ac60602 + c39f2d9 commit f1a3b43

20 files changed

+2183
-29
lines changed

drivers/input/joystick/iforce/iforce-ff.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* USB/RS232 I-Force joysticks and wheels.
77
*/
88

9-
/*
10-
*/
11-
129
#include "iforce.h"
1310

1411
/*

drivers/input/joystick/iforce/iforce-main.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* USB/RS232 I-Force joysticks and wheels.
77
*/
88

9-
/*
10-
*/
11-
129
#include <asm/unaligned.h>
1310
#include "iforce.h"
1411

drivers/input/joystick/iforce/iforce-packets.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* USB/RS232 I-Force joysticks and wheels.
77
*/
88

9-
/*
10-
*/
11-
129
#include <asm/unaligned.h>
1310
#include "iforce.h"
1411

drivers/input/joystick/iforce/iforce-serio.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* USB/RS232 I-Force joysticks and wheels.
77
*/
88

9-
/*
10-
*/
11-
129
#include <linux/serio.h>
1310
#include "iforce.h"
1411

drivers/input/joystick/iforce/iforce-usb.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* USB/RS232 I-Force joysticks and wheels.
77
*/
88

9-
/*
10-
*/
11-
129
#include <linux/usb.h>
1310
#include "iforce.h"
1411

drivers/input/joystick/iforce/iforce.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* USB/RS232 I-Force joysticks and wheels.
77
*/
88

9-
/*
10-
*/
11-
129
#include <linux/kernel.h>
1310
#include <linux/slab.h>
1411
#include <linux/input.h>

drivers/input/keyboard/Kconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,22 @@ config KEYBOARD_AMIGA
7171
config ATARI_KBD_CORE
7272
bool
7373

74+
config KEYBOARD_APPLESPI
75+
tristate "Apple SPI keyboard and trackpad"
76+
depends on ACPI && EFI
77+
depends on SPI
78+
depends on X86 || COMPILE_TEST
79+
help
80+
Say Y here if you are running Linux on any Apple MacBook8,1 or later,
81+
or any MacBookPro13,* or MacBookPro14,*.
82+
83+
You will also need to enable appropriate SPI master controllers:
84+
spi_pxa2xx_platform and spi_pxa2xx_pci for MacBook8,1, and
85+
spi_pxa2xx_platform and intel_lpss_pci for the rest.
86+
87+
To compile this driver as a module, choose M here: the
88+
module will be called applespi.
89+
7490
config KEYBOARD_ATARI
7591
tristate "Atari keyboard"
7692
depends on ATARI

drivers/input/keyboard/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ obj-$(CONFIG_KEYBOARD_ADP5520) += adp5520-keys.o
1010
obj-$(CONFIG_KEYBOARD_ADP5588) += adp5588-keys.o
1111
obj-$(CONFIG_KEYBOARD_ADP5589) += adp5589-keys.o
1212
obj-$(CONFIG_KEYBOARD_AMIGA) += amikbd.o
13+
obj-$(CONFIG_KEYBOARD_APPLESPI) += applespi.o
1314
obj-$(CONFIG_KEYBOARD_ATARI) += atakbd.o
1415
obj-$(CONFIG_KEYBOARD_ATKBD) += atkbd.o
1516
obj-$(CONFIG_KEYBOARD_BCM) += bcm-keypad.o

drivers/input/keyboard/adp5589-keys.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ static int adp5589_gpio_add(struct adp5589_kpad *kpad)
505505
if (!gpio_data)
506506
return 0;
507507

508+
kpad->gc.parent = dev;
508509
kpad->gc.ngpio = adp5589_build_gpiomap(kpad, pdata);
509510
if (kpad->gc.ngpio == 0) {
510511
dev_info(dev, "No unused gpios left to export\n");

0 commit comments

Comments
 (0)