From fa2f0cbabf735f4ef57b9ce1da777dab6f8b533d Mon Sep 17 00:00:00 2001 From: kopecdav Date: Fri, 18 Apr 2025 14:55:17 +0200 Subject: [PATCH] fixup! feat(core): Add max backlight limit to backlight driver. [no changelog] --- core/embed/io/backlight/inc/io/backlight.h | 4 ---- core/embed/io/backlight/stm32u5/tps61062.c | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/core/embed/io/backlight/inc/io/backlight.h b/core/embed/io/backlight/inc/io/backlight.h index 44267a5d99..42c7580eb7 100644 --- a/core/embed/io/backlight/inc/io/backlight.h +++ b/core/embed/io/backlight/inc/io/backlight.h @@ -57,11 +57,7 @@ int backlight_set(int val); // Returns 0 if the backlight driver is not initialized. int backlight_get(void); -#ifdef TREZOR_MODEL_T3W1 - // Set maximal backlight limit, limits the requested level to max_level value. // // Returns 0 if the backlight driver is not initialized. int backlight_set_max_level(int max_level); - -#endif diff --git a/core/embed/io/backlight/stm32u5/tps61062.c b/core/embed/io/backlight/stm32u5/tps61062.c index e6392f1303..0fd3ae26ae 100644 --- a/core/embed/io/backlight/stm32u5/tps61062.c +++ b/core/embed/io/backlight/stm32u5/tps61062.c @@ -158,6 +158,7 @@ void backlight_init(backlight_action_t action) { // Default no backlight max_level limit drv->max_level = BACKLIGHT_MAX_LEVEL; + drv->requested_level = BACKLIGHT_MIN_LEVEL; drv->initialized = true; }