From 330fe1d1cc873ee24e7df49041cfa292a7662cb1 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Sat, 22 May 2021 19:43:54 -0700 Subject: Do not hard set config in CPTC files (#11864) --- common_features.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'common_features.mk') diff --git a/common_features.mk b/common_features.mk index 5a1231de49..1a9fd46b55 100644 --- a/common_features.mk +++ b/common_features.mk @@ -350,7 +350,11 @@ endif VALID_BACKLIGHT_TYPES := pwm timer software custom BACKLIGHT_ENABLE ?= no -BACKLIGHT_DRIVER ?= pwm +ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes) + BACKLIGHT_DRIVER ?= software +else + BACKLIGHT_DRIVER ?= pwm +endif ifeq ($(strip $(BACKLIGHT_ENABLE)), yes) ifeq ($(filter $(BACKLIGHT_DRIVER),$(VALID_BACKLIGHT_TYPES)),) $(error BACKLIGHT_DRIVER="$(BACKLIGHT_DRIVER)" is not a valid backlight type) -- cgit v1.2.3