Remove unnecessary RGB Matrix shutdown hooks (#24238)

This commit is contained in:
Joel Challis 2024-08-04 02:07:02 +01:00 committed by GitHub
parent 0b4065b50c
commit 0fbe150303
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
26 changed files with 10 additions and 230 deletions

View File

@ -53,13 +53,4 @@ led_config_t g_led_config = { {
2, 2, 2 2, 2, 2
} }; } };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif #endif

View File

@ -50,7 +50,8 @@
"solid_reactive_nexus": true, "solid_reactive_nexus": true,
"solid_reactive_multinexus": true "solid_reactive_multinexus": true
}, },
"driver": "is31fl3731" "driver": "is31fl3731",
"sleep": true
}, },
"features": { "features": {
"bootmagic": true, "bootmagic": true,

View File

@ -29,13 +29,3 @@ led_config_t g_led_config = {
4, 4, 4, 4, 4, 4, 4, 4 4, 4, 4, 4, 4, 4, 4, 4
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}

View File

@ -37,17 +37,3 @@ led_config_t g_led_config = { {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
} }; } };
#endif #endif
#ifdef RGB_MATRIX_ENABLE
void suspend_power_down_kb(void)
{
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void)
{
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif

View File

@ -1,31 +0,0 @@
/* Copyright 2019 marhalloweenvt
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "quantum.h"
#ifdef RGB_MATRIX_ENABLE
void suspend_power_down_kb(void)
{
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void)
{
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif

View File

@ -76,13 +76,3 @@ led_config_t g_led_config = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}

View File

@ -40,14 +40,4 @@ led_config_t g_led_config = {
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif #endif

View File

@ -83,16 +83,6 @@ const is31fl3733_led_t PROGMEM g_is31fl3733_leds[IS31FL3733_LED_COUNT] = {
{ 0, SW11_CS13, SW10_CS13, SW12_CS13 } { 0, SW11_CS13, SW10_CS13, SW12_CS13 }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
bool rgb_matrix_indicators_kb(void) { bool rgb_matrix_indicators_kb(void) {
if (!rgb_matrix_indicators_user()) { if (!rgb_matrix_indicators_user()) {
return false; return false;

View File

@ -106,13 +106,4 @@ led_config_t g_led_config = {
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif #endif

View File

@ -116,13 +116,4 @@ led_config_t g_led_config = {
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif #endif

View File

@ -110,13 +110,4 @@ led_config_t g_led_config = {
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif #endif

View File

@ -116,13 +116,4 @@ led_config_t g_led_config = {
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif #endif

View File

@ -107,13 +107,4 @@ led_config_t g_led_config = {
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif #endif

View File

@ -110,13 +110,4 @@ led_config_t g_led_config = {
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif #endif

View File

@ -116,13 +116,4 @@ led_config_t g_led_config = {
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif #endif

View File

@ -120,14 +120,4 @@ led_config_t g_led_config = {
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif #endif

View File

@ -139,14 +139,4 @@ led_config_t g_led_config = {
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif #endif

View File

@ -18,15 +18,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "quantum.h" #include "quantum.h"
#ifdef RGB_MATRIX_ENABLE #ifdef RGB_MATRIX_ENABLE
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
led_config_t g_led_config = { { led_config_t g_led_config = { {
// Key Matrix to LED Index // Key Matrix to LED Index

View File

@ -39,13 +39,4 @@ led_config_t g_led_config = {
} }
}; };
void suspend_power_down_kb(void) {
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void) {
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#endif #endif

View File

@ -20,7 +20,8 @@
}, },
"rgb_matrix": { "rgb_matrix": {
"driver": "ws2812", "driver": "ws2812",
"max_brightness": 150 "max_brightness": 150,
"sleep": true
}, },
"matrix_pins": { "matrix_pins": {
"cols": ["B0", "B1", "B2", "B3", "B7", "D0", "D1", "D2", "D3", "D5", "F0", "F1", "C7", "F4", "F5", "F6"], "cols": ["B0", "B1", "B2", "B3", "B7", "D0", "D1", "D2", "D3", "D5", "F0", "F1", "C7", "F4", "F5", "F6"],

View File

@ -54,7 +54,8 @@
"solid_splash": true, "solid_splash": true,
"solid_multisplash": true "solid_multisplash": true
}, },
"driver": "is31fl3731" "driver": "is31fl3731",
"sleep": true
}, },
"features": { "features": {
"audio": true, "audio": true,

View File

@ -115,18 +115,6 @@ uint8_t rgb_matrix_map_row_column_to_led_kb(uint8_t row, uint8_t column, uint8_t
return 0; return 0;
} }
void suspend_power_down_kb(void)
{
rgb_matrix_set_suspend_state(true);
suspend_power_down_user();
}
void suspend_wakeup_init_kb(void)
{
rgb_matrix_set_suspend_state(false);
suspend_wakeup_init_user();
}
#ifdef SWAP_HANDS_ENABLE #ifdef SWAP_HANDS_ENABLE
__attribute__ ((weak)) __attribute__ ((weak))
const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = { const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {

View File

@ -33,13 +33,4 @@ led_config_t g_led_config = { {
} }
}; };
void suspend_power_down_kb(void)
{
rgb_matrix_set_suspend_state(true);
}
void suspend_wakeup_init_kb(void)
{
rgb_matrix_set_suspend_state(false);
}
#endif // #ifdef RGB_MATRIX_ENABLE #endif // #ifdef RGB_MATRIX_ENABLE

View File

@ -58,7 +58,8 @@
"solid_multisplash": true "solid_multisplash": true
}, },
"driver": "ws2812", "driver": "ws2812",
"max_brightness": 128 "max_brightness": 128,
"sleep": true
}, },
"features": { "features": {
"bootmagic": true, "bootmagic": true,

View File

@ -47,13 +47,4 @@ led_config_t g_led_config = {{
} }
}; };
void suspend_power_down_kb(void)
{
rgb_matrix_set_suspend_state(true);
}
void suspend_wakeup_init_kb(void)
{
rgb_matrix_set_suspend_state(false);
}
#endif // #ifdef RGB_MATRIX_ENABLE #endif // #ifdef RGB_MATRIX_ENABLE

View File

@ -58,7 +58,8 @@
"solid_multisplash": true "solid_multisplash": true
}, },
"driver": "ws2812", "driver": "ws2812",
"max_brightness": 128 "max_brightness": 128,
"sleep": true
}, },
"features": { "features": {
"bootmagic": true, "bootmagic": true,