pwm: core: Make of_pwm_get() static

There are no users outside of PWM core of the of_pwm_get().
Make it static.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20220826172642.16404-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Andy Shevchenko 2022-08-26 20:26:42 +03:00 committed by Guenter Roeck
parent b88c48bfdd
commit b5ae0ad564
2 changed files with 2 additions and 13 deletions

View File

@ -734,8 +734,8 @@ static struct device_link *pwm_device_link_add(struct device *dev,
* Returns: A pointer to the requested PWM device or an ERR_PTR()-encoded * Returns: A pointer to the requested PWM device or an ERR_PTR()-encoded
* error code on failure. * error code on failure.
*/ */
struct pwm_device *of_pwm_get(struct device *dev, struct device_node *np, static struct pwm_device *of_pwm_get(struct device *dev, struct device_node *np,
const char *con_id) const char *con_id)
{ {
struct pwm_device *pwm = NULL; struct pwm_device *pwm = NULL;
struct of_phandle_args args; struct of_phandle_args args;
@ -797,7 +797,6 @@ put:
return pwm; return pwm;
} }
EXPORT_SYMBOL_GPL(of_pwm_get);
/** /**
* acpi_pwm_get() - request a PWM via parsing "pwms" property in ACPI * acpi_pwm_get() - request a PWM via parsing "pwms" property in ACPI

View File

@ -403,8 +403,6 @@ struct pwm_device *of_pwm_single_xlate(struct pwm_chip *pc,
const struct of_phandle_args *args); const struct of_phandle_args *args);
struct pwm_device *pwm_get(struct device *dev, const char *con_id); struct pwm_device *pwm_get(struct device *dev, const char *con_id);
struct pwm_device *of_pwm_get(struct device *dev, struct device_node *np,
const char *con_id);
void pwm_put(struct pwm_device *pwm); void pwm_put(struct pwm_device *pwm);
struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id); struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id);
@ -495,14 +493,6 @@ static inline struct pwm_device *pwm_get(struct device *dev,
return ERR_PTR(-ENODEV); return ERR_PTR(-ENODEV);
} }
static inline struct pwm_device *of_pwm_get(struct device *dev,
struct device_node *np,
const char *con_id)
{
might_sleep();
return ERR_PTR(-ENODEV);
}
static inline void pwm_put(struct pwm_device *pwm) static inline void pwm_put(struct pwm_device *pwm)
{ {
might_sleep(); might_sleep();