Input: rename cap1106 driver to cap11xx
authorMatt Ranostay <mranostay@gmail.com>
Sat, 1 Nov 2014 03:00:13 +0000 (20:00 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 2 Nov 2014 07:09:10 +0000 (00:09 -0700)
There are several devices in cap11xx family besides cap1106. The driver can
be made to support all of them, so let's give it more generic name.

Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Reviewed-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/cap11xx.txt [moved from Documentation/devicetree/bindings/input/cap1106.txt with 74% similarity]
drivers/input/keyboard/Kconfig
drivers/input/keyboard/Makefile
drivers/input/keyboard/cap1106.c [deleted file]
drivers/input/keyboard/cap11xx.c [new file with mode: 0644]

@@ -1,11 +1,12 @@
-Device tree bindings for Microchip CAP1106, 6 channel capacitive touch sensor
+Device tree bindings for Microchip CAP11xx based capacitive touch sensors
 
-The node for this driver must be a child of a I2C controller node, as the
+The node for this device must be a child of a I2C controller node, as the
 device communication via I2C only.
 
 Required properties:
 
-       compatible:             Must be "microchip,cap1106"
+       compatible:             Must contain one of:
+                                       "microchip,cap1106"
 
        reg:                    The I2C slave address of the device.
                                Only 0x28 is valid.
@@ -43,11 +44,11 @@ i2c_controller {
                autorepeat;
                microchip,sensor-gain = <2>;
 
-               linux,keycodes = <103           /* KEY_UP */
-                                 106           /* KEY_RIGHT */
-                                 108           /* KEY_DOWN */
-                                 105           /* KEY_LEFT */
-                                 109           /* KEY_PAGEDOWN */
-                                 104>;         /* KEY_PAGEUP */
+               linux,keycodes = <103>,         /* KEY_UP */
+                                <106>,         /* KEY_RIGHT */
+                                <108>,         /* KEY_DOWN */
+                                <105>,         /* KEY_LEFT */
+                                <109>,         /* KEY_PAGEDOWN */
+                                <104>;         /* KEY_PAGEUP */
        };
 }
Simple merge
Simple merge
diff --cc drivers/input/keyboard/cap1106.c
Simple merge
Simple merge