Skip to content

Commit

Permalink
pwm: Make pwm_apply_state_debug() static
Browse files Browse the repository at this point in the history
Fix the following gcc warning:

    drivers/pwm/core.c:467:6: warning: symbol 'pwm_apply_state_debug' was
        not declared. Should it be static?

Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Jason Yan <[email protected]>
Acked-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
JasonYanHw authored and thierryreding committed Apr 3, 2020
1 parent 437fb76 commit 374c110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/pwm/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ void pwm_free(struct pwm_device *pwm)
}
EXPORT_SYMBOL_GPL(pwm_free);

void pwm_apply_state_debug(struct pwm_device *pwm,
const struct pwm_state *state)
static void pwm_apply_state_debug(struct pwm_device *pwm,
const struct pwm_state *state)
{
struct pwm_state *last = &pwm->last;
struct pwm_chip *chip = pwm->chip;
Expand Down

0 comments on commit 374c110

Please sign in to comment.