Commit f9ecc2fe authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Uwe Kleine-König

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: default avatarUwe Kleine-König <u.kleine-koenig@baylibre.com>
Link: https://lore.kernel.org/r/20240712171821.1470833-2-u.kleine-koenig@baylibre.comSigned-off-by: default avatarUwe Kleine-König <ukleinek@kernel.org>
parent 1c3e34bf
...@@ -325,8 +325,8 @@ EXPORT_SYMBOL_GPL(pwm_adjust_config); ...@@ -325,8 +325,8 @@ EXPORT_SYMBOL_GPL(pwm_adjust_config);
* *
* Returns: 0 on success or a negative error code on failure. * Returns: 0 on success or a negative error code on failure.
*/ */
int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, static int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result,
unsigned long timeout) unsigned long timeout)
{ {
if (!pwm || !pwm->chip->ops) if (!pwm || !pwm->chip->ops)
return -EINVAL; return -EINVAL;
...@@ -338,7 +338,6 @@ int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result, ...@@ -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); 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) static struct pwm_chip *pwmchip_find_by_name(const char *name)
{ {
......
...@@ -394,9 +394,6 @@ static inline bool pwm_might_sleep(struct pwm_device *pwm) ...@@ -394,9 +394,6 @@ static inline bool pwm_might_sleep(struct pwm_device *pwm)
} }
/* PWM provider APIs */ /* PWM provider APIs */
int pwm_capture(struct pwm_device *pwm, struct pwm_capture *result,
unsigned long timeout);
void pwmchip_put(struct pwm_chip *chip); void pwmchip_put(struct pwm_chip *chip);
struct pwm_chip *pwmchip_alloc(struct device *parent, unsigned int npwm, size_t sizeof_priv); struct pwm_chip *pwmchip_alloc(struct device *parent, unsigned int npwm, size_t sizeof_priv);
struct pwm_chip *devm_pwmchip_alloc(struct device *parent, unsigned int npwm, size_t sizeof_priv); struct pwm_chip *devm_pwmchip_alloc(struct device *parent, unsigned int npwm, size_t sizeof_priv);
...@@ -462,13 +459,6 @@ static inline void pwm_disable(struct pwm_device *pwm) ...@@ -462,13 +459,6 @@ static inline void pwm_disable(struct pwm_device *pwm)
might_sleep(); might_sleep();
} }
static inline int pwm_capture(struct pwm_device *pwm,
struct pwm_capture *result,
unsigned long timeout)
{
return -EINVAL;
}
static inline void pwmchip_put(struct pwm_chip *chip) static inline void pwmchip_put(struct pwm_chip *chip)
{ {
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment