Skip to content

Commit

Permalink
Remove unnecessary RGB Matrix shutdown hooks (qmk#24238)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored and sqrtnull committed Oct 22, 2024
1 parent ec24a70 commit d277dd4
Show file tree
Hide file tree
Showing 26 changed files with 10 additions and 230 deletions.
9 changes: 0 additions & 9 deletions keyboards/geekboards/macropad_v2/macropad_v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,4 @@ led_config_t g_led_config = { {
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
3 changes: 2 additions & 1 deletion keyboards/geekboards/tester/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"solid_reactive_nexus": true,
"solid_reactive_multinexus": true
},
"driver": "is31fl3731"
"driver": "is31fl3731",
"sleep": true
},
"features": {
"bootmagic": true,
Expand Down
10 changes: 0 additions & 10 deletions keyboards/geekboards/tester/tester.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,3 @@ led_config_t g_led_config = {
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();
}
14 changes: 0 additions & 14 deletions keyboards/handwired/colorlice/colorlice.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,3 @@ led_config_t g_led_config = { {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1
} };
#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
31 changes: 0 additions & 31 deletions keyboards/handwired/p65rgb/p65rgb.c

This file was deleted.

10 changes: 0 additions & 10 deletions keyboards/kbdfans/kbdmini/kbdmini.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,3 @@ led_config_t g_led_config = {
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();
}
10 changes: 0 additions & 10 deletions keyboards/kprepublic/bm40hsrgb/rev1/rev1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 0 additions & 10 deletions keyboards/latincompass/latin60rgb/latin60rgb.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,6 @@ const is31fl3733_led_t PROGMEM g_is31fl3733_leds[IS31FL3733_LED_COUNT] = {
{ 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) {
if (!rgb_matrix_indicators_user()) {
return false;
Expand Down
9 changes: 0 additions & 9 deletions keyboards/melgeek/mj61/rev1/rev1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 0 additions & 9 deletions keyboards/melgeek/mj61/rev2/rev2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 0 additions & 9 deletions keyboards/melgeek/mj63/rev1/rev1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 0 additions & 9 deletions keyboards/melgeek/mj63/rev2/rev2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 0 additions & 9 deletions keyboards/melgeek/mj64/rev1/rev1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 0 additions & 9 deletions keyboards/melgeek/mj64/rev2/rev2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 0 additions & 9 deletions keyboards/melgeek/mj64/rev3/rev3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 0 additions & 10 deletions keyboards/melgeek/mj65/rev3/rev3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 0 additions & 10 deletions keyboards/melgeek/mojo75/rev1/rev1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 0 additions & 9 deletions keyboards/percent/canoe_gen2/canoe_gen2.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ 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();
}

led_config_t g_led_config = { {
// Key Matrix to LED Index
Expand Down
9 changes: 0 additions & 9 deletions keyboards/phase_studio/titan65/hotswap/hotswap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion keyboards/phase_studio/titan65/hotswap/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
},
"rgb_matrix": {
"driver": "ws2812",
"max_brightness": 150
"max_brightness": 150,
"sleep": true
},
"matrix_pins": {
"cols": ["B0", "B1", "B2", "B3", "B7", "D0", "D1", "D2", "D3", "D5", "F0", "F1", "C7", "F4", "F5", "F6"],
Expand Down
3 changes: 2 additions & 1 deletion keyboards/planck/light/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"solid_splash": true,
"solid_multisplash": true
},
"driver": "is31fl3731"
"driver": "is31fl3731",
"sleep": true
},
"features": {
"audio": true,
Expand Down
12 changes: 0 additions & 12 deletions keyboards/planck/light/light.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,6 @@ uint8_t rgb_matrix_map_row_column_to_led_kb(uint8_t row, uint8_t column, uint8_t
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
__attribute__ ((weak))
const keypos_t PROGMEM hand_swap_config[MATRIX_ROWS][MATRIX_COLS] = {
Expand Down
9 changes: 0 additions & 9 deletions keyboards/sowbug/68keys/68keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion keyboards/sowbug/68keys/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"solid_multisplash": true
},
"driver": "ws2812",
"max_brightness": 128
"max_brightness": 128,
"sleep": true
},
"features": {
"bootmagic": true,
Expand Down
9 changes: 0 additions & 9 deletions keyboards/sowbug/ansi_tkl/ansi_tkl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion keyboards/sowbug/ansi_tkl/keyboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"solid_multisplash": true
},
"driver": "ws2812",
"max_brightness": 128
"max_brightness": 128,
"sleep": true
},
"features": {
"bootmagic": true,
Expand Down

0 comments on commit d277dd4

Please sign in to comment.