diff options
author | Uwe Kleine-König <u.kleine-koenig@baylibre.com> | 2024-07-12 19:18:20 +0200 |
---|---|---|
committer | Uwe Kleine-König <ukleinek@kernel.org> | 2024-09-05 11:14:14 +0200 |
commit | f9ecc2febf6fd6ad53208a1c0e1b5066ee65dd8b (patch) | |
tree | e1592e96b2d6be451ad48644c700f0b38ce6d7cd /drivers/pwm | |
parent | pwm: Make info in traces about affected pwm more useful (diff) | |
download | linux-f9ecc2febf6fd6ad53208a1c0e1b5066ee65dd8b.tar.xz linux-f9ecc2febf6fd6ad53208a1c0e1b5066ee65dd8b.zip |
pwm: Don't export pwm_capture()
There is only a single caller of this function, and that's in
drivers/pwm/core.c itself. So don't export the function.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20240712171821.1470833-2-u.kleine-koenig@baylibre.com
Signed-off-by: Uwe Kleine-König <ukleinek@kernel.org>
Diffstat (limited to 'drivers/pwm')
-rw-r--r-- | drivers/pwm/core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 8acbcf5b6673..56d91c11f0d4 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -325,8 +325,8 @@ EXPORT_SYMBOL_GPL(pwm_adjust_config); * * Returns: 0 on success or a negative error code on failure. */ -int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, - unsigned long timeout) +static int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, + unsigned long timeout) { if (!pwm || !pwm->chip->ops) return -EINVAL; @@ -338,7 +338,6 @@ int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, return pwm->chip->ops->capture(pwm->chip, pwm, result, timeout); } -EXPORT_SYMBOL_GPL(pwm_capture); static struct pwm_chip *pwmchip_find_by_name(const char *name) { |