extcon: arizona: Allow configuration of button detection
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Apr 2013 21:03:06 +0000 (22:03 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 2 Apr 2013 10:53:51 +0000 (11:53 +0100)
commit6fed4d869a11fdbb4c6a5e444dfb2c22f92c3e46
tree53c3e4ec22ae7a35c0a209ba4c2300b8743a07cd
parent84eaa13616b6e7d001b7f7b909228087779b677b
extcon: arizona: Allow configuration of button detection

The Arizona button detection circuit is configurable, allowing the system
integrator to program a range of thresholds for the buttons supported on
the accessory but currently the driver uses the default button ranges and
does not provide any flexibility in how this is exposed to the application
layer.

Provide platform data allowing the user to control this and to map
the buttons to keys in the input subsystem.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/extcon/extcon-arizona.c
include/linux/mfd/arizona/pdata.h