summaryrefslogtreecommitdiffstats
path: root/drivers/pwm
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-02 14:57:18 +0800
committerThierry Reding <thierry.reding@gmail.com>2020-04-03 21:41:09 +0200
commit374c1104eb72b9570a52360274c3edbbd0e89ed0 (patch)
tree4a6738e3603bb4e12ac0b0f9e00b2efb994153fc /drivers/pwm
parent437fb760d046340d0dee3b4307e1cf4578fd8ca8 (diff)
downloadlinux-374c1104eb72b9570a52360274c3edbbd0e89ed0.tar.bz2
pwm: Make pwm_apply_state_debug() static
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>
Diffstat (limited to 'drivers/pwm')
-rw-r--r--drivers/pwm/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
index e9b9283cff28..9973c442b455 100644
--- a/drivers/pwm/core.c
+++ b/drivers/pwm/core.c
@@ -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;