Skip to content

Commit

Permalink
align function names
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr committed Mar 6, 2020
1 parent d1f25ff commit 6e341cc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion quantum/backlight/backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static inline void backlight_off(pin_t backlight_pin) {
# endif
}

void backlight_init_pins(void) {
void backlight_pins_init(void) {
// Setup backlight pin as output and output to off state.
FOR_EACH_LED(setPinOutput(backlight_pin); backlight_off(backlight_pin);)
}
Expand Down
2 changes: 1 addition & 1 deletion quantum/backlight/backlight.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ typedef union {
};
} backlight_config_t;

void backlight_init_pins(void);
void backlight_pins_init(void);
void backlight_pins_on(void);
void backlight_pins_off(void);

Expand Down
2 changes: 1 addition & 1 deletion quantum/backlight/backlight_avr.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ ISR(TIMERx_OVF_vect)

void backlight_init_ports(void) {
// Setup backlight pin as output and output to on state.
backlight_init_pins();
backlight_pins_init();

// I could write a wall of text here to explain... but TL;DW
// Go read the ATmega32u4 datasheet.
Expand Down
2 changes: 1 addition & 1 deletion quantum/backlight/backlight_soft.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ static const uint16_t backlight_duty_table[] = {

static uint8_t scale_backlight(uint8_t v) { return v * (backlight_duty_table_size - 1) / BACKLIGHT_LEVELS; }

void backlight_init_ports(void) { backlight_init_pins(); }
void backlight_init_ports(void) { backlight_pins_init(); }

void backlight_set(uint8_t level) { s_duty_pattern = backlight_duty_table[scale_backlight(level)]; }

Expand Down

0 comments on commit 6e341cc

Please sign in to comment.