From 92fbadeb1bb9f9c37cfeef2a4f81f2f154e1226b Mon Sep 17 00:00:00 2001 From: Ryan Date: Thu, 13 May 2021 09:17:18 +1000 Subject: Rename `point_t` -> `led_point_t` (#12864) --- quantum/led_matrix.c | 4 ++-- quantum/led_matrix_types.h | 8 ++++---- quantum/rgb_matrix.c | 4 ++-- quantum/rgb_matrix_types.h | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/quantum/led_matrix.c b/quantum/led_matrix.c index 58cda64130..d612fbfa9d 100644 --- a/quantum/led_matrix.c +++ b/quantum/led_matrix.c @@ -28,9 +28,9 @@ #include #ifndef LED_MATRIX_CENTER -const point_t k_led_matrix_center = {112, 32}; +const led_point_t k_led_matrix_center = {112, 32}; #else -const point_t k_led_matrix_center = LED_MATRIX_CENTER; +const led_point_t k_led_matrix_center = LED_MATRIX_CENTER; #endif // Generic effect runners diff --git a/quantum/led_matrix_types.h b/quantum/led_matrix_types.h index 13f44b07e9..61cdbd9b8e 100644 --- a/quantum/led_matrix_types.h +++ b/quantum/led_matrix_types.h @@ -61,7 +61,7 @@ typedef struct PACKED { typedef struct PACKED { uint8_t x; uint8_t y; -} point_t; +} led_point_t; #define HAS_FLAGS(bits, flags) ((bits & flags) == flags) #define HAS_ANY_FLAGS(bits, flags) ((bits & flags) != 0x00) @@ -75,9 +75,9 @@ typedef struct PACKED { #define NO_LED 255 typedef struct PACKED { - uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS]; - point_t point[DRIVER_LED_TOTAL]; - uint8_t flags[DRIVER_LED_TOTAL]; + uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS]; + led_point_t point[DRIVER_LED_TOTAL]; + uint8_t flags[DRIVER_LED_TOTAL]; } led_config_t; typedef union { diff --git a/quantum/rgb_matrix.c b/quantum/rgb_matrix.c index 097c5302df..e716c6aad3 100644 --- a/quantum/rgb_matrix.c +++ b/quantum/rgb_matrix.c @@ -26,9 +26,9 @@ #include #ifndef RGB_MATRIX_CENTER -const point_t k_rgb_matrix_center = {112, 32}; +const led_point_t k_rgb_matrix_center = {112, 32}; #else -const point_t k_rgb_matrix_center = RGB_MATRIX_CENTER; +const led_point_t k_rgb_matrix_center = RGB_MATRIX_CENTER; #endif __attribute__((weak)) RGB rgb_matrix_hsv_to_rgb(HSV hsv) { return hsv_to_rgb(hsv); } diff --git a/quantum/rgb_matrix_types.h b/quantum/rgb_matrix_types.h index 1a37922af9..df575d6577 100644 --- a/quantum/rgb_matrix_types.h +++ b/quantum/rgb_matrix_types.h @@ -62,7 +62,7 @@ typedef struct PACKED { typedef struct PACKED { uint8_t x; uint8_t y; -} point_t; +} led_point_t; #define HAS_FLAGS(bits, flags) ((bits & flags) == flags) #define HAS_ANY_FLAGS(bits, flags) ((bits & flags) != 0x00) @@ -77,9 +77,9 @@ typedef struct PACKED { #define NO_LED 255 typedef struct PACKED { - uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS]; - point_t point[DRIVER_LED_TOTAL]; - uint8_t flags[DRIVER_LED_TOTAL]; + uint8_t matrix_co[MATRIX_ROWS][MATRIX_COLS]; + led_point_t point[DRIVER_LED_TOTAL]; + uint8_t flags[DRIVER_LED_TOTAL]; } led_config_t; typedef union { -- cgit v1.2.3