Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2968271ybp; Sun, 6 Oct 2019 01:47:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqwVL38pHn0wfJk5UO2PN33B1HOkp8siTn9T5KK7QFt4TvsGMDG7lpBPttZaDL5rAWuALErw X-Received: by 2002:a17:906:fac5:: with SMTP id lu5mr19101528ejb.71.1570351625247; Sun, 06 Oct 2019 01:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570351625; cv=none; d=google.com; s=arc-20160816; b=itX4/RHvlZoXrHm0XXdi5H3SpoUGKDhhR8L75UyjDeFUdywCrByIITTVGdOCAv/Lqn 0Pl9bvgDa5oRJs4QNBiSRGrr3/PxF7H+c+/1StiipjkqdZbLZUsXoY5kN5/GgomCalnP 9hSy9SozisUKImYYvMkHZ/WOONOGCD8Y2lTNflN84m67QOfnyX79B5RYY7AzDkxx9zI4 hTsRTMTBXM10a+PUZ4UTCKRHlvXCbvvbnmCtYtqwu5O/fTvmgESu2bR6sDg+U5xhC7+m siI7Nm9tdXqN7FqzVPK70uyDbm2fXhSpubc590dH1oFpWQpZf/9OWJI36s2u3V1Kdf2G HGSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=bt1vkYDW3lqh7BEolD/pW2EmnUEvnFVK9mEuesXeBhA=; b=wKLacaPuIPTwwVtRBo+aV5tT+XrkeBgvNlX6vGMSamv7Zmjy553AzVl+D8/Fkc6Syt k5OSKWCMMb+8KwvTHCSAUPxm6DvR/3MJZZd+6F/eWOhhwBglhVKcLQYv0GFZ38ZEZ0IC fbyl+kKwQwQ0kqLs/h28CYBQk2YFTis4GWA7dHZb5FluEOv3LuYVFGMKj3Y5wmQP5k/2 vBsaIuggAxhwilBRjoha2t4hw6qNOojpwVVFQkLPSBEFkJ7+xlEe5BXHEW5sSWtb5Qtx hsh346spAd7vgSUwilCnAvHqfsHzjhBMjgBkkQuFvrm5CMtjoruZ7s6dEJu3A29P1KOA q0IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="2LJ+/zh5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ci22si5365584ejb.162.2019.10.06.01.46.41; Sun, 06 Oct 2019 01:47:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="2LJ+/zh5"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726313AbfJFIqV (ORCPT + 99 others); Sun, 6 Oct 2019 04:46:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:46984 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726185AbfJFIqV (ORCPT ); Sun, 6 Oct 2019 04:46:21 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A61C82084B; Sun, 6 Oct 2019 08:46:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570351580; bh=hf30g4d8JZ11GzLvpR7H04sV2GMkhrx+p1kiP+B0azY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=2LJ+/zh5VABr02frYcHGE7Cc46uW0q0IKteroMEn73P2ECn2ICmzlgpsOFSLKctp2 zLKV8U+y5hyjtjhfAb5xe5WQ2CmbBydYwZn974xqBBCx1dyM8g3HTy2EslMEloE7hK 5zjQtRSWmcIia/Xlv4Zh5FcSjJvGPkn2HQfqJ5D8= Date: Sun, 6 Oct 2019 09:46:15 +0100 From: Jonathan Cameron To: William Breathitt Gray Cc: Colin King , Fabrice Gasnier , Maxime Coquelin , Alexandre Torgue , linux-iio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] counter: stm32: clean up indentation issue Message-ID: <20191006094615.5b798a42@archlinux> In-Reply-To: <20191005173004.GA7431@icarus> References: <20190925095126.20219-1-colin.king@canonical.com> <20191005173004.GA7431@icarus> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 5 Oct 2019 13:30:04 -0400 William Breathitt Gray wrote: > On Wed, Sep 25, 2019 at 10:51:26AM +0100, Colin King wrote: > > From: Colin Ian King > > > > There is an if statement that is indented one level too deeply, > > remove the extraneous tabs. > > > > Signed-off-by: Colin Ian King > > --- > > drivers/counter/stm32-timer-cnt.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/counter/stm32-timer-cnt.c b/drivers/counter/stm32-timer-cnt.c > > index 644ba18a72ad..613dcccf79e1 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); > > -- > > 2.20.1 > > Acked-by: William Breathitt Gray Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to poke it. Thanks, Jonathan > > Fabrice, > > I noticed the TIM_CR1_CEN check is happening before the > regmap_update_bits call for the enable path, while the disable path does > the check after. Is this logic is correct. > > William Breathitt Gray