Input: pwm-beeper - add optional amplifier regulator
authorDavid Lechner <david@lechnology.com>
Mon, 16 Jan 2017 01:09:43 +0000 (17:09 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 22 Jan 2017 08:23:22 +0000 (00:23 -0800)
commit9e54924432783bfb21e905e0bf7042556bcb4b90
tree7ddeb37703ff995a06ee4e77f3c429256a3320cc
parent62481881401246859d9bd06b7c7b9a391c78892c
Input: pwm-beeper - add optional amplifier regulator

This adds an optional regulator to the pwm-beeper device. This regulator
acts as an amplifier. The amplifier is only enabled while beeping in order
to reduce power consumption.

Tested on LEGO MINDSTORMS EV3, which has a speaker connected to PWM through
an amplifier.

Signed-off-by: David Lechner <david@lechnology.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Documentation/devicetree/bindings/input/pwm-beeper.txt
drivers/input/misc/pwm-beeper.c