HID: i2c-hid: support regulator power on/off
authorBrian Norris <briannorris@chromium.org>
Fri, 10 Feb 2017 02:03:57 +0000 (18:03 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 6 Mar 2017 12:48:44 +0000 (13:48 +0100)
commit572d3c6444979a6a49c6b464110563f578e8dece
treeedfa44f72e6d60a0b4ca84705e39f6a3b8dd9812
parentcb5cfd91a7ae5ae355e657e5ce4931836b7665eb
HID: i2c-hid: support regulator power on/off

On some boards, we need to enable a regulator before using the HID, and
it's also nice to save power in suspend by disabling it. Support an
optional "vdd-supply" and a companion initialization delay.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Jiri Kosina <jikos@kernel.org>
Cc: linux-input@vger.kernel.org
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid.c
include/linux/i2c/i2c-hid.h