aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2021-03-13 11:38:26 +1100
committerGitHub <noreply@github.com>2021-03-13 11:38:26 +1100
commitf23639517683378bed12792903e0d9cc6a1a6794 (patch)
tree7af76715dedcbf70dfc180f3ea4af27d132cf188
parent5590c40b5b5a718ab2af270ea9974d98db68d8ef (diff)
downloadqmk_firmware-f23639517683378bed12792903e0d9cc6a1a6794.tar.gz
qmk_firmware-f23639517683378bed12792903e0d9cc6a1a6794.zip
LED Matrix: Clean up includes (#12197)
-rw-r--r--keyboards/clueboard/66_hotswap/gen1/gen1.c2
-rw-r--r--keyboards/terrazzo/terrazzo.c1
-rw-r--r--quantum/led_matrix.c3
-rw-r--r--quantum/led_matrix.h7
-rw-r--r--quantum/led_matrix_drivers.c7
5 files changed, 7 insertions, 13 deletions
diff --git a/keyboards/clueboard/66_hotswap/gen1/gen1.c b/keyboards/clueboard/66_hotswap/gen1/gen1.c
index dd399317c..339bd78d5 100644
--- a/keyboards/clueboard/66_hotswap/gen1/gen1.c
+++ b/keyboards/clueboard/66_hotswap/gen1/gen1.c
@@ -16,8 +16,6 @@
16#include "gen1.h" 16#include "gen1.h"
17 17
18#ifdef LED_MATRIX_ENABLE 18#ifdef LED_MATRIX_ENABLE
19 #include "is31fl3731-simple.h"
20
21const is31_led g_is31_leds[DRIVER_LED_TOTAL] = { 19const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
22/* Refer to IS31 manual for these locations 20/* Refer to IS31 manual for these locations
23 * driver 21 * driver
diff --git a/keyboards/terrazzo/terrazzo.c b/keyboards/terrazzo/terrazzo.c
index f079ded4d..2afda085b 100644
--- a/keyboards/terrazzo/terrazzo.c
+++ b/keyboards/terrazzo/terrazzo.c
@@ -17,7 +17,6 @@
17#include "terrazzo.h" 17#include "terrazzo.h"
18 18
19#ifdef LED_MATRIX_ENABLE 19#ifdef LED_MATRIX_ENABLE
20 #include "is31fl3731-simple.h"
21 #include <math.h> 20 #include <math.h>
22 #include "print.h" 21 #include "print.h"
23 #include "quantum.h" 22 #include "quantum.h"
diff --git a/quantum/led_matrix.c b/quantum/led_matrix.c
index 39bccdd58..1cbd908c7 100644
--- a/quantum/led_matrix.c
+++ b/quantum/led_matrix.c
@@ -17,9 +17,6 @@
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */ 18 */
19 19
20#include <stdint.h>
21#include <stdbool.h>
22#include "quantum.h"
23#include "led_matrix.h" 20#include "led_matrix.h"
24#include "progmem.h" 21#include "progmem.h"
25#include "config.h" 22#include "config.h"
diff --git a/quantum/led_matrix.h b/quantum/led_matrix.h
index 0817d1357..e4322a150 100644
--- a/quantum/led_matrix.h
+++ b/quantum/led_matrix.h
@@ -19,7 +19,14 @@
19 19
20#pragma once 20#pragma once
21 21
22#include <stdint.h>
23#include <stdbool.h>
22#include "led_matrix_types.h" 24#include "led_matrix_types.h"
25#include "quantum.h"
26
27#ifdef IS31FL3731
28# include "is31fl3731-simple.h"
29#endif
23 30
24enum led_matrix_effects { 31enum led_matrix_effects {
25 LED_MATRIX_UNIFORM_BRIGHTNESS = 1, 32 LED_MATRIX_UNIFORM_BRIGHTNESS = 1,
diff --git a/quantum/led_matrix_drivers.c b/quantum/led_matrix_drivers.c
index eddf3f286..370c5e685 100644
--- a/quantum/led_matrix_drivers.c
+++ b/quantum/led_matrix_drivers.c
@@ -15,9 +15,6 @@
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. 15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */ 16 */
17 17
18#include <stdint.h>
19#include <stdbool.h>
20#include "quantum.h"
21#include "led_matrix.h" 18#include "led_matrix.h"
22 19
23/* Each driver needs to define a struct: 20/* Each driver needs to define a struct:
@@ -30,10 +27,6 @@
30 27
31#if defined(IS31FL3731) || defined(IS31FL3733) 28#if defined(IS31FL3731) || defined(IS31FL3733)
32 29
33# if defined(IS31FL3731)
34# include "is31fl3731-simple.h"
35# endif
36
37# include "i2c_master.h" 30# include "i2c_master.h"
38 31
39static void init(void) { 32static void init(void) {