Skip to content

Commit 63c4cce

Browse files
fauxparkobosob
authored andcommitted
LED Matrix: Clean up includes (qmk#12197)
1 parent 0bdbf57 commit 63c4cce

File tree

5 files changed

+7
-13
lines changed

5 files changed

+7
-13
lines changed

keyboards/clueboard/66_hotswap/gen1/gen1.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
#include "gen1.h"
1717

1818
#ifdef LED_MATRIX_ENABLE
19-
#include "is31fl3731-simple.h"
20-
2119
const is31_led g_is31_leds[DRIVER_LED_TOTAL] = {
2220
/* Refer to IS31 manual for these locations
2321
* driver

keyboards/terrazzo/terrazzo.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include "terrazzo.h"
1818

1919
#ifdef LED_MATRIX_ENABLE
20-
#include "is31fl3731-simple.h"
2120
#include <math.h>
2221
#include "print.h"
2322
#include "quantum.h"

quantum/led_matrix.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
*/
1919

20-
#include <stdint.h>
21-
#include <stdbool.h>
22-
#include "quantum.h"
2320
#include "led_matrix.h"
2421
#include "progmem.h"
2522
#include "config.h"

quantum/led_matrix.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@
1919

2020
#pragma once
2121

22+
#include <stdint.h>
23+
#include <stdbool.h>
2224
#include "led_matrix_types.h"
25+
#include "quantum.h"
26+
27+
#ifdef IS31FL3731
28+
# include "is31fl3731-simple.h"
29+
#endif
2330

2431
enum led_matrix_effects {
2532
LED_MATRIX_UNIFORM_BRIGHTNESS = 1,

quantum/led_matrix_drivers.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#include <stdint.h>
19-
#include <stdbool.h>
20-
#include "quantum.h"
2118
#include "led_matrix.h"
2219

2320
/* Each driver needs to define a struct:
@@ -30,10 +27,6 @@
3027

3128
#if defined(IS31FL3731) || defined(IS31FL3733)
3229

33-
# if defined(IS31FL3731)
34-
# include "is31fl3731-simple.h"
35-
# endif
36-
3730
# include "i2c_master.h"
3831

3932
static void init(void) {

0 commit comments

Comments
 (0)