From ea98aa8e5ef8bebac52a76ad22ddd22e6d7f289e Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Fri, 4 Nov 2022 11:54:35 +0000 Subject: [PATCH] Reduce includes for dip_switch header (#18951) --- quantum/dip_switch.c | 8 +++++--- quantum/dip_switch.h | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/quantum/dip_switch.c b/quantum/dip_switch.c index e180cfccdf..6e254578d1 100644 --- a/quantum/dip_switch.c +++ b/quantum/dip_switch.c @@ -16,14 +16,16 @@ * along with this program. If not, see . */ +#include // for memcpy + #include "dip_switch.h" +#include "gpio.h" +#include "util.h" + #ifdef SPLIT_KEYBOARD # include "split_common/split_util.h" #endif -// for memcpy -#include - #if !defined(DIP_SWITCH_PINS) && !defined(DIP_SWITCH_MATRIX_GRID) # error "Either DIP_SWITCH_PINS or DIP_SWITCH_MATRIX_GRID must be defined." #endif diff --git a/quantum/dip_switch.h b/quantum/dip_switch.h index 058a10f41f..6e79dcb0bf 100644 --- a/quantum/dip_switch.h +++ b/quantum/dip_switch.h @@ -18,7 +18,8 @@ #pragma once -#include "quantum.h" +#include +#include bool dip_switch_update_kb(uint8_t index, bool active); bool dip_switch_update_user(uint8_t index, bool active);