Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4c0c470 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Bryan Wu
Browse files

pwm: Correct parameter name in header for *pwm_get() functions



To synchronize the header file definition and the actual code. In the code
the consumer parameter is named as con_id, change the header file and replace
consumer -> con_id in the parameter list.

Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Ackedy-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: default avatarBryan Wu <cooloney@gmail.com>
parent 0f86815a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -174,10 +174,10 @@ struct pwm_device *pwm_request_from_chip(struct pwm_chip *chip,
struct pwm_device *of_pwm_xlate_with_flags(struct pwm_chip *pc,
		const struct of_phandle_args *args);

struct pwm_device *pwm_get(struct device *dev, const char *consumer);
struct pwm_device *pwm_get(struct device *dev, const char *con_id);
void pwm_put(struct pwm_device *pwm);

struct pwm_device *devm_pwm_get(struct device *dev, const char *consumer);
struct pwm_device *devm_pwm_get(struct device *dev, const char *con_id);
void devm_pwm_put(struct device *dev, struct pwm_device *pwm);
#else
static inline int pwm_set_chip_data(struct pwm_device *pwm, void *data)