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

Commit e50d3523 authored by Sachin Kamat's avatar Sachin Kamat Committed by Thierry Reding
Browse files

pwm: core: Fix coding style issues



Fixes the following:
WARNING: line over 80 characters
ERROR: spaces required around that ':' (ctx:VxW)
WARNING: Prefer pr_warn(... to pr_warning(...

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarThierry Reding <thierry.reding@avionic-design.de>
parent eba7cbe5
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -129,8 +129,8 @@ static int pwm_device_request(struct pwm_device *pwm, const char *label)
	return 0;
	return 0;
}
}


static struct pwm_device *of_pwm_simple_xlate(struct pwm_chip *pc,
static struct pwm_device *
					      const struct of_phandle_args *args)
of_pwm_simple_xlate(struct pwm_chip *pc, const struct of_phandle_args *args)
{
{
	struct pwm_device *pwm;
	struct pwm_device *pwm;


@@ -609,7 +609,7 @@ void pwm_put(struct pwm_device *pwm)
	mutex_lock(&pwm_lock);
	mutex_lock(&pwm_lock);


	if (!test_and_clear_bit(PWMF_REQUESTED, &pwm->flags)) {
	if (!test_and_clear_bit(PWMF_REQUESTED, &pwm->flags)) {
		pr_warning("PWM device already freed\n");
		pr_warn("PWM device already freed\n");
		goto out;
		goto out;
	}
	}