diff options
author | Hsin-Yi Wang <hsinyi@chromium.org> | 2021-04-01 07:32:02 +0200 |
---|---|---|
committer | Robert Foss <robert.foss@linaro.org> | 2021-04-01 10:38:02 +0200 |
commit | 6c744983004ebc66756e582294672f8b991288d5 (patch) | |
tree | afcbfb6a83057e589cc8045b77b39af40a3e8baa /drivers/gpu/drm/bridge/analogix/anx7625.h | |
parent | dt-bindings: drm/bridge: anx7625: Add power supplies (diff) | |
download | linux-6c744983004ebc66756e582294672f8b991288d5.tar.xz linux-6c744983004ebc66756e582294672f8b991288d5.zip |
drm/bridge: anx7625: disable regulators when power off
When suspending the driver, anx7625_power_standby() will be called to
turn off reset-gpios and enable-gpios. However, power supplies are not
disabled. To save power, the driver can get the power supply regulators
and turn off them in anx7625_power_standby().
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Reviewed-by: Robert Foss <robert.foss@linaro.org>
Reviewed-by: Xin Ji <xji@analogixsemi.com>
Signed-off-by: Robert Foss <robert.foss@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210401053202.159302-2-hsinyi@chromium.org
Diffstat (limited to 'drivers/gpu/drm/bridge/analogix/anx7625.h')
-rw-r--r-- | drivers/gpu/drm/bridge/analogix/anx7625.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.h b/drivers/gpu/drm/bridge/analogix/anx7625.h index 193ad86c5450..e4a086b3a3d7 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.h +++ b/drivers/gpu/drm/bridge/analogix/anx7625.h @@ -350,6 +350,7 @@ struct s_edid_data { struct anx7625_platform_data { struct gpio_desc *gpio_p_on; struct gpio_desc *gpio_reset; + struct regulator_bulk_data supplies[3]; struct drm_bridge *panel_bridge; int intp_irq; u32 low_power_mode; |