]> git.baikalelectronics.ru Git - kernel.git/commitdiff
pwm: Make pwm_apply_state_debug() static
authorJason Yan <yanaijie@huawei.com>
Thu, 2 Apr 2020 06:57:18 +0000 (14:57 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Fri, 3 Apr 2020 19:41:09 +0000 (21:41 +0200)
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 <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c

index e9b9283cff2836ac8f7af2dac20200db49ecc49a..9973c442b45557ce94a74a5b31de08788e6045b1 100644 (file)
@@ -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;