]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea928b1ce95046b3b0a86b033b509168fb157a0d
tree53c3e4ec22ae7a35c0a209ba4c2300b8743a07cd
parent699df022269ce3a6901426bf7775b00ad0d1676a
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