diff options
54 files changed, 1278 insertions, 375 deletions
diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt b/Documentation/devicetree/bindings/i2c/trivial-devices.txt index ad0c4ac916dd..00f8652e193a 100644 --- a/Documentation/devicetree/bindings/i2c/trivial-devices.txt +++ b/Documentation/devicetree/bindings/i2c/trivial-devices.txt | |||
| @@ -19,8 +19,7 @@ adi,adt7475 +/-1C TDM Extended Temp Range I.C | |||
| 19 | adi,adt7476 +/-1C TDM Extended Temp Range I.C | 19 | adi,adt7476 +/-1C TDM Extended Temp Range I.C |
| 20 | adi,adt7490 +/-1C TDM Extended Temp Range I.C | 20 | adi,adt7490 +/-1C TDM Extended Temp Range I.C |
| 21 | adi,adxl345 Three-Axis Digital Accelerometer | 21 | adi,adxl345 Three-Axis Digital Accelerometer |
| 22 | adi,adxl346 Three-Axis Digital Accelerometer | 22 | adi,adxl346 Three-Axis Digital Accelerometer (backward-compatibility value "adi,adxl345" must be listed too) |
| 23 | adi,adxl34x Three-Axis Digital Accelerometer | ||
| 24 | at,24c08 i2c serial eeprom (24cxx) | 23 | at,24c08 i2c serial eeprom (24cxx) |
| 25 | atmel,24c00 i2c serial eeprom (24cxx) | 24 | atmel,24c00 i2c serial eeprom (24cxx) |
| 26 | atmel,24c01 i2c serial eeprom (24cxx) | 25 | atmel,24c01 i2c serial eeprom (24cxx) |
diff --git a/Documentation/devicetree/bindings/input/ti,drv2665.txt b/Documentation/devicetree/bindings/input/ti,drv2665.txt new file mode 100644 index 000000000000..1ba97ac04305 --- /dev/null +++ b/Documentation/devicetree/bindings/input/ti,drv2665.txt | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | * Texas Instruments - drv2665 Haptics driver | ||
| 2 | |||
| 3 | Required properties: | ||
| 4 | - compatible - "ti,drv2665" - DRV2665 | ||
| 5 | - reg - I2C slave address | ||
| 6 | - vbat-supply - Required supply regulator | ||
| 7 | |||
| 8 | Example: | ||
| 9 | |||
| 10 | haptics: haptics@59 { | ||
| 11 | compatible = "ti,drv2665"; | ||
| 12 | reg = <0x59>; | ||
| 13 | vbat-supply = <&vbat>; | ||
| 14 | }; | ||
| 15 | |||
| 16 | For more product information please see the link below: | ||
| 17 | http://www.ti.com/product/drv2665 | ||
diff --git a/Documentation/leds/leds-class.txt b/Documentation/leds/leds-class.txt index 79699c200766..62261c04060a 100644 --- a/Documentation/leds/leds-class.txt +++ b/Documentation/leds/leds-class.txt | |||
| @@ -2,9 +2,6 @@ | |||
| 2 | LED handling under Linux | 2 | LED handling under Linux |
| 3 | ======================== | 3 | ======================== |
| 4 | 4 | ||
| 5 | If you're reading this and thinking about keyboard leds, these are | ||
| 6 | handled by the input subsystem and the led class is *not* needed. | ||
| 7 | |||
| 8 | In its simplest form, the LED class just allows control of LEDs from | 5 | In its simplest form, the LED class just allows control of LEDs from |
| 9 | userspace. LEDs appear in /sys/class/leds/. The maximum brightness of the | 6 | userspace. LEDs appear in /sys/class/leds/. The maximum brightness of the |
| 10 | LED is defined in max_brightness file. The brightness file will set the brightness | 7 | LED is defined in max_brightness file. The brightness file will set the brightness |
diff --git a/MAINTAINERS b/MAINTAINERS index d7c53502aa86..246d9d841ad2 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
| @@ -5171,7 +5171,6 @@ F: include/linux/input/ | |||
| 5171 | INPUT MULTITOUCH (MT) PROTOCOL | 5171 | INPUT MULTITOUCH (MT) PROTOCOL |
| 5172 | M: Henrik Rydberg <rydberg@bitmath.org> | 5172 | M: Henrik Rydberg <rydberg@bitmath.org> |
| 5173 | L: linux-input@vger.kernel.org | 5173 | L: linux-input@vger.kernel.org |
| 5174 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/rydberg/input-mt.git | ||
| 5175 | S: Odd fixes | 5174 | S: Odd fixes |
| 5176 | F: Documentation/input/multi-touch-protocol.txt | 5175 | F: Documentation/input/multi-touch-protocol.txt |
| 5177 | F: drivers/input/input-mt.c | 5176 | F: drivers/input/input-mt.c |
diff --git a/drivers/input/Kconfig b/drivers/input/Kconfig index a11ff74a5127..a35532ec00e4 100644 --- a/drivers/input/Kconfig +++ b/drivers/input/Kconfig | |||
| @@ -25,6 +25,19 @@ config INPUT | |||
| 25 | 25 | ||
| 26 | if INPUT | 26 | if INPUT |
| 27 | 27 | ||
| 28 | config INPUT_LEDS | ||
| 29 | tristate "Export input device LEDs in sysfs" | ||
| 30 | depends on LEDS_CLASS | ||
| 31 | default INPUT | ||
| 32 | help | ||
| 33 | Say Y here if you would like to export LEDs on input devices | ||
| 34 | as standard LED class devices in sysfs. | ||
| 35 | |||
| 36 | If unsure, say Y. | ||
| 37 | |||
| 38 | To compile this driver as a module, choose M here: the | ||
| 39 | module will be called input-leds. | ||
| 40 | |||
| 28 | config INPUT_FF_MEMLESS | 41 | config INPUT_FF_MEMLESS |
| 29 | tristate "Support for memoryless force-feedback devices" | 42 | tristate "Support for memoryless force-feedback devices" |
| 30 | help | 43 | help |
diff --git a/drivers/input/Makefile b/drivers/input/Makefile index 5ca3f631497f..0c9302ca9954 100644 --- a/drivers/input/Makefile +++ b/drivers/input/Makefile | |||
| @@ -12,6 +12,7 @@ obj-$(CONFIG_INPUT_POLLDEV) += input-polldev.o | |||
| 12 | obj-$(CONFIG_INPUT_SPARSEKMAP) += sparse-keymap.o | 12 | obj-$(CONFIG_INPUT_SPARSEKMAP) += sparse-keymap.o |
| 13 | obj-$(CONFIG_INPUT_MATRIXKMAP) += matrix-keymap.o | 13 | obj-$(CONFIG_INPUT_MATRIXKMAP) += matrix-keymap.o |
| 14 | 14 | ||
| 15 | obj-$(CONFIG_INPUT_LEDS) += input-leds.o | ||
| 15 | obj-$(CONFIG_INPUT_MOUSEDEV) += mousedev.o | 16 | obj-$(CONFIG_INPUT_MOUSEDEV) += mousedev.o |
| 16 | obj-$(CONFIG_INPUT_JOYDEV) += joydev.o | 17 | obj-$(CONFIG_INPUT_JOYDEV) += joydev.o |
| 17 | obj-$(CONFIG_INPUT_EVDEV) += evdev.o | 18 | obj-$(CONFIG_INPUT_EVDEV) += evdev.o |
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index a18f41b89b6a..9d35499faca4 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c | |||
| @@ -422,10 +422,7 @@ static int evdev_release(struct inode *inode, struct file *file) | |||
| 422 | 422 | ||
| 423 | evdev_detach_client(evdev, client); | 423 | evdev_detach_client(evdev, client); |
| 424 | 424 | ||
| 425 | if (is_vmalloc_addr(client)) | 425 | kvfree(client); |
| 426 | vfree(client); | ||
| 427 | else | ||
| 428 | kfree(client); | ||
| 429 | 426 | ||
| 430 | evdev_close_device(evdev); | 427 | evdev_close_device(evdev); |
| 431 | 428 | ||
diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c index b81c88c43452..8f4a30fccbb6 100644 --- a/drivers/input/ff-core.c +++ b/drivers/input/ff-core.c | |||
| @@ -70,7 +70,7 @@ static int compat_effect(struct ff_device *ff, struct ff_effect *effect) | |||
| 70 | return -EINVAL; | 70 | return -EINVAL; |
| 71 | 71 | ||
| 72 | /* | 72 | /* |
| 73 | * calculate manginude of sine wave as average of rumble's | 73 | * calculate magnitude of sine wave as average of rumble's |
| 74 | * 2/3 of strong magnitude and 1/3 of weak magnitude | 74 | * 2/3 of strong magnitude and 1/3 of weak magnitude |
| 75 | */ | 75 | */ |
