Commit Graph
11 Commits
Author SHA1 Message Date
Stefan Sauer 71daf89476 Input: mma8450 - add parent device
Add the parent device so that udev can show the full hierarchy. This avoids
the device showing up under /devices/virtual/input instead of the i2c bus
it is actually attached to.

Signed-off-by: Stefan Sauer <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
2015-02-25 17:13:51 -08:00
Wei Yongjun acc84667c5 Input: mma8450 - add missing i2c_set_clientdata() in mma8450_probe()
Add missing i2c_set_clientdata() in mma8450_probe(), otherwise
calling i2c_get_clientdata() in mma8450_remove() returns NULL.

Signed-off-by: Wei Yongjun <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
2013-11-11 00:01:44 -08:00
Sebastien Royen 257a1ec603 Input: mma8450 - fix signed 12bits to 32bits conversion
Event value is wrong. Should be in range -2048 to 2047, but is in
range 0 to 4095.  Use s8 to int conversion and remove 0xfff mask.

Signed-off-by: Sebastien Royen <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
2013-03-31 00:48:10 -07:00
Bill Pemberton e2619cf78e Input: remove use of __devexit
CONFIG_HOTPLUG is going away as an option so __devexit is no
longer needed.

Signed-off-by: Bill Pemberton <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-24 00:05:38 -08:00
Bill Pemberton 5298cc4cc7 Input: remove use of __devinit
CONFIG_HOTPLUG is going away as an option so __devinit is no longer
needed.

Signed-off-by: Bill Pemberton <[email protected]>
Acked-by: Mark Brown <[email protected]>
Acked-by: Javier Martinez Canillas <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-24 00:05:19 -08:00
Bill Pemberton 1cb0aa8817 Input: remove use of __devexit_p
CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
needed.

Signed-off-by: Bill Pemberton <[email protected]>
Acked-by: Russell King <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
2012-11-24 00:03:48 -08:00
Axel Lin 1b92c1cf6b Input: convert I2C drivers to use module_i2c_driver()
This patch converts the drivers in drivers/input/* to use the
module_i2c_driver() macro which makes the code smaller and a bit
simpler.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
2012-03-16 23:06:19 -07:00
Dmitry Torokhov cb31f898cc Input: mma8450 - silence some 'uninitialized variable' warnings
Sometimes GCC is not smart enough to recognize that x, y and z are
always used properly initialized in mma8450_poll(). Let's rearrange
the code a bit to help GCC.

Signed-off-by: Dmitry Torokhov <[email protected]>
2011-10-06 19:41:57 -07:00
Axel Lin cd566c64f5 Input: mma8450 - fix module device table type
The module device table for of_device_id should use "of" type.

Signed-off-by: Axel Lin <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
2011-08-08 23:54:57 -07:00
Shawn Guo 71ff069c3d Input: mma8450 - add device tree probe support
It adds device tree probe support for mma8450 driver.

Signed-off-by: Shawn Guo <[email protected]>
Acked-by: Eric Miao <[email protected]>
Acked-by: Grant Likely <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
2011-07-31 20:08:15 -07:00
Eric Miao 3ead8b5ddb Input: add support for mma8450 accelerometer
Signed-off-by: Sammy He <[email protected]>
Signed-off-by: Eric Miao <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
2011-06-22 01:27:25 -07:00