summaryrefslogtreecommitdiffstats
path: root/quantum/backlight/backlight_software.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2022-02-12 10:29:31 -0800
committerGitHub <noreply@github.com>2022-02-12 18:29:31 +0000
commit63646e8906e062d1c1de3925cba70c4e3426a855 (patch)
tree4e91648b77b838e1125cf86331d7e84bde6d07a9 /quantum/backlight/backlight_software.c
parentafcdd7079c774dec2aa4b7f2d08adf8b7310919b (diff)
Format code according to conventions (#16322)
Diffstat (limited to 'quantum/backlight/backlight_software.c')
-rw-r--r--quantum/backlight/backlight_software.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/quantum/backlight/backlight_software.c b/quantum/backlight/backlight_software.c
index 709304f559..3d412cab52 100644
--- a/quantum/backlight/backlight_software.c
+++ b/quantum/backlight/backlight_software.c
@@ -30,11 +30,17 @@ static const uint16_t backlight_duty_table[] = {
// clang-format on
-static uint8_t scale_backlight(uint8_t v) { return v * (backlight_duty_table_size - 1) / BACKLIGHT_LEVELS; }
+static uint8_t scale_backlight(uint8_t v) {
+ return v * (backlight_duty_table_size - 1) / BACKLIGHT_LEVELS;
+}
-void backlight_init_ports(void) { backlight_pins_init(); }
+void backlight_init_ports(void) {
+ backlight_pins_init();
+}
-void backlight_set(uint8_t level) { s_duty_pattern = backlight_duty_table[scale_backlight(level)]; }
+void backlight_set(uint8_t level) {
+ s_duty_pattern = backlight_duty_table[scale_backlight(level)];
+}
void backlight_task(void) {
static uint8_t backlight_tick = 0;