summaryrefslogtreecommitdiffstats
path: root/drivers/counter
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-09-25 10:51:26 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-10-07 21:31:21 +0100
commit76510ec692c88ee865ebb32bb77b1ee294fee89e (patch)
tree6cbeb8f68ab55ec47a8f9e5326dbf08f57309038 /drivers/counter
parent3cfd6464fe23deb45bb688df66184b3f32fefc16 (diff)
downloadlinux-stable-76510ec692c88ee865ebb32bb77b1ee294fee89e.tar.gz
linux-stable-76510ec692c88ee865ebb32bb77b1ee294fee89e.tar.bz2
linux-stable-76510ec692c88ee865ebb32bb77b1ee294fee89e.zip
counter: stm32: clean up indentation issue
There is an if statement that is indented one level too deeply, remove the extraneous tabs. Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/counter')
-rw-r--r--drivers/counter/stm32-timer-cnt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/counter/stm32-timer-cnt.c b/drivers/counter/stm32-timer-cnt.c
index e425dd1e41fe..b61135b63ee8 100644
--- a/drivers/counter/stm32-timer-cnt.c
+++ b/drivers/counter/stm32-timer-cnt.c
@@ -219,8 +219,8 @@ static ssize_t stm32_count_enable_write(struct counter_device *counter,
if (enable) {
regmap_read(priv->regmap, TIM_CR1, &cr1);
- if (!(cr1 & TIM_CR1_CEN))
- clk_enable(priv->clk);
+ if (!(cr1 & TIM_CR1_CEN))
+ clk_enable(priv->clk);
regmap_update_bits(priv->regmap, TIM_CR1, TIM_CR1_CEN,
TIM_CR1_CEN);