diff options
author | Olliver Schinagl <oliver@schinagl.nl> | 2015-10-26 17:32:33 -0400 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2015-11-10 07:06:47 -0500 |
commit | 5dcd7b42f1d06c62b5589441e69cc77c26c8b725 (patch) | |
tree | b0eda20757f666301969ad00a586255492a14d07 | |
parent | 65cdc6914a959d8e1ea562f05fb323a0b8cb7cb1 (diff) |
pwm: sunxi: Fix whitespace issue
This patch changes no code, it just fixes the whitespacing. Operators
should be separated from operands by a single space.
Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | drivers/pwm/pwm-sun4i.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pwm/pwm-sun4i.c b/drivers/pwm/pwm-sun4i.c index b093cc55f799..67af9f62361f 100644 --- a/drivers/pwm/pwm-sun4i.c +++ b/drivers/pwm/pwm-sun4i.c | |||
@@ -115,7 +115,7 @@ static int sun4i_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm, | |||
115 | * is not an integer so round it half up instead of | 115 | * is not an integer so round it half up instead of |
116 | * truncating to get less surprising values. | 116 | * truncating to get less surprising values. |
117 | */ | 117 | */ |
118 | div = clk_rate * period_ns + NSEC_PER_SEC/2; | 118 | div = clk_rate * period_ns + NSEC_PER_SEC / 2; |
119 | do_div(div, NSEC_PER_SEC); | 119 | do_div(div, NSEC_PER_SEC); |
120 | if (div - 1 > PWM_PRD_MASK) | 120 | if (div - 1 > PWM_PRD_MASK) |
121 | prescaler = 0; | 121 | prescaler = 0; |