Skip to content
Commit 81a36d8c authored by Hans de Goede's avatar Hans de Goede Committed by Dmitry Torokhov
Browse files

Input: elan_i2c - move regulator_[en|dis]able() out of elan_[en|dis]able_power()



elan_disable_power() is called conditionally on suspend, where as
elan_enable_power() is always called on resume. This leads to
an imbalance in the regulator's enable count.

Move the regulator_[en|dis]able() calls out of elan_[en|dis]able_power()
in preparation of fixing this.

No functional changes intended.

Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220131135436.29638-1-hdegoede@redhat.com


[dtor: consolidate elan_[en|dis]able() into elan_set_power()]
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d9829926
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment