From fd60e5a8b2d22cfb8f97bf40f77cc86cfd7c9a3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Tue, 9 Apr 2024 15:16:03 +0200 Subject: [PATCH] pc_wifi: provide iwlwifi LED related dummies These generated dummies slipped in when the commit 'pc_linux: enable gpio, audio' got merged and mainly concern old devices from the 6xxx series. The functions are normally guarded via 'CONFIG_IWLWIFI_LEDS' but due to the olddefconfig step when generating our pc_linux config using LX_DISABLE has no effect. Issue #5066. --- repos/pc/src/lib/pc_wifi/dummies.c | 28 ++++++++++++++++++++ repos/pc/src/lib/pc_wifi/generated_dummies.c | 28 -------------------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/repos/pc/src/lib/pc_wifi/dummies.c b/repos/pc/src/lib/pc_wifi/dummies.c index 64393aa5c2..91529182eb 100644 --- a/repos/pc/src/lib/pc_wifi/dummies.c +++ b/repos/pc/src/lib/pc_wifi/dummies.c @@ -651,3 +651,31 @@ int pinctrl_init_done(struct device * dev) lx_emul_trace(__func__); return 0; } + + +extern void iwl_leds_exit(struct iwl_priv * priv); +void iwl_leds_exit(struct iwl_priv * priv) +{ + lx_emul_trace(__func__); +} + + +extern void iwl_leds_init(struct iwl_priv * priv); +void iwl_leds_init(struct iwl_priv * priv) +{ + lx_emul_trace(__func__); +} + + +extern void iwl_mvm_leds_exit(struct iwl_mvm * mvm); +void iwl_mvm_leds_exit(struct iwl_mvm * mvm) +{ + lx_emul_trace(__func__); +} + + +extern void iwlagn_led_enable(struct iwl_priv * priv); +void iwlagn_led_enable(struct iwl_priv * priv) +{ + lx_emul_trace(__func__); +} diff --git a/repos/pc/src/lib/pc_wifi/generated_dummies.c b/repos/pc/src/lib/pc_wifi/generated_dummies.c index dfc76f89a0..ccee7cee2f 100644 --- a/repos/pc/src/lib/pc_wifi/generated_dummies.c +++ b/repos/pc/src/lib/pc_wifi/generated_dummies.c @@ -661,34 +661,6 @@ void irq_work_tick(void) } -extern void iwl_leds_exit(struct iwl_priv * priv); -void iwl_leds_exit(struct iwl_priv * priv) -{ - lx_emul_trace_and_stop(__func__); -} - - -extern void iwl_leds_init(struct iwl_priv * priv); -void iwl_leds_init(struct iwl_priv * priv) -{ - lx_emul_trace_and_stop(__func__); -} - - -extern void iwl_mvm_leds_exit(struct iwl_mvm * mvm); -void iwl_mvm_leds_exit(struct iwl_mvm * mvm) -{ - lx_emul_trace_and_stop(__func__); -} - - -extern void iwlagn_led_enable(struct iwl_priv * priv); -void iwlagn_led_enable(struct iwl_priv * priv) -{ - lx_emul_trace_and_stop(__func__); -} - - #include struct kobject *kernel_kobj;