Skip to content

Commit 435cb74

Browse files
authored
LED Matrix: Clean up includes (qmk#12197)
1 parent 75e26b9 commit 435cb74

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

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)