Skip to content

Commit e50d352

Browse files
Sachin KamatThierry Reding
authored andcommitted
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: Sachin Kamat <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent eba7cbe commit e50d352

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/pwm/core.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ static int pwm_device_request(struct pwm_device *pwm, const char *label)
129129
return 0;
130130
}
131131

132-
static struct pwm_device *of_pwm_simple_xlate(struct pwm_chip *pc,
133-
const struct of_phandle_args *args)
132+
static struct pwm_device *
133+
of_pwm_simple_xlate(struct pwm_chip *pc, const struct of_phandle_args *args)
134134
{
135135
struct pwm_device *pwm;
136136

@@ -527,7 +527,7 @@ void __init pwm_add_table(struct pwm_lookup *table, size_t num)
527527
struct pwm_device *pwm_get(struct device *dev, const char *con_id)
528528
{
529529
struct pwm_device *pwm = ERR_PTR(-EPROBE_DEFER);
530-
const char *dev_id = dev ? dev_name(dev): NULL;
530+
const char *dev_id = dev ? dev_name(dev) : NULL;
531531
struct pwm_chip *chip = NULL;
532532
unsigned int index = 0;
533533
unsigned int best = 0;
@@ -609,7 +609,7 @@ void pwm_put(struct pwm_device *pwm)
609609
mutex_lock(&pwm_lock);
610610

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

0 commit comments

Comments
 (0)