Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2356601ybp; Sat, 5 Oct 2019 10:34:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4vWRDZXK1wv4AcZ1Rc0nBClcs8yPaHl7cvJNcR4mOjj/SAlI8xVa3fLglX1hwOhP5Qh+6 X-Received: by 2002:a17:906:2ccc:: with SMTP id r12mr17276192ejr.219.1570296858205; Sat, 05 Oct 2019 10:34:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570296858; cv=none; d=google.com; s=arc-20160816; b=swTdElOjm1rRcSk/8C/twNbgdHdOBn4l2GDGsbvbIqPxVLAqpT/dpcBXvWS8TJsFLe f+qVhU8G0DjhSHThQ0dGNqW8ZnKbkTsJnMPuQP5jdYmvrmKp+7z9c1f1yafdBLLyPV61 wnPTuhTfCyKEEJapjliJjejOxKCW+ZqpjNtFModMdjQsf5eo/7V4g4AIlky0FjUdGmfR m0XCQGSh5BvXE6ewepex1hJOLijUYUQHFTKCRcY3x8RqZW/LQhPu4mof2YwTkBWcc7I6 4fKa5Qima/cce9R/MrpyIYQSssl2jkC5n6D+MkAnDIMspC2bLCpkxqm3Inqzmv6fD3R5 T1jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SFxd5AapzSICM/6Xgqhe/u9Vw5QC679Bx+c0QdN9hnI=; b=kSvZa/7nOwSTY07Pmk/pjzHUcYY7+9B8DUT1rVNi+8/M3yb/TN6R/nvit3TGmcYz14 DSjYt4M2UtNY3DqxzZPjNxhtweswJSK9hm/IeIPK8pEgwpEElhb/pWgHnr/Hw/J5qCBD HmxwXTWUh62opAw1iPhDSUrKFzlTBmTUc7nacJ9Zp+BzoAJ7ktopsJLqnBCl6E81I6IS DhfRlNlkQ2CW1lsd0MZOQt9hkGB3pLh9pKZFi3UFQKh9eJf1YyydnBZ33XEjF+G/PR4+ ZA8CGTDVRfKoyP8ypNHA6gZMRITICh75iG2AWExmXUSVvg+V5ZAyyIWGv/611C4MWfUq jj3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C4StFwvN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s20si4882481ejx.223.2019.10.05.10.33.50; Sat, 05 Oct 2019 10:34:18 -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=@gmail.com header.s=20161025 header.b=C4StFwvN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728892AbfJERa1 (ORCPT + 99 others); Sat, 5 Oct 2019 13:30:27 -0400 Received: from mail-yb1-f194.google.com ([209.85.219.194]:37157 "EHLO mail-yb1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725826AbfJERa1 (ORCPT ); Sat, 5 Oct 2019 13:30:27 -0400 Received: by mail-yb1-f194.google.com with SMTP id z125so3235338ybc.4; Sat, 05 Oct 2019 10:30:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=SFxd5AapzSICM/6Xgqhe/u9Vw5QC679Bx+c0QdN9hnI=; b=C4StFwvN+lCG1jC5GtRTymuZCkTXZueajmp5oKh8q2nS/QR4Y2Oo9mBbom6a6lMX/v f60G7QcnH8JR/KGokgFN2ry3x3ceJqyt0nyeTAkLqQ7SsSWqzosmkiLWW2dB85RQWaUZ 84ubNkcrNehQ4E0ryRIKFRdhvYl+I1a/sJrA/gvfYI/XHD28QUBdpd3oOhyXrN43bQK5 q5eNY46ePlOob7dDWUIctgZzkEKPabn+3FopVzptgyXTYfM8jYbTjnBHttfjXTT6iDQk zucn3Ajq0P4wByuR6wWzOPHXuIzhE1ag6cVKPVQBA1dLhD2+UnXqTF4K7mG2A79O+zOM ziPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=SFxd5AapzSICM/6Xgqhe/u9Vw5QC679Bx+c0QdN9hnI=; b=J7BlL7nMIjw+3RN71fvDqaEh4cU1FkNodsC/HTY8ifcmh8fZPkiySvaCE6vdaVe0v4 e/H+m1C8dxCL14QCMk/WdrLdNLXN7kvBuSUHsPUFkM4M+jp4EWezaOzMzMvpIbDq4vty fVG2Ks/rNdRnsPUTDXrg2f1QuPZot7LEByrThkgKlZogf0uRLtGm8F1b0ps5n2GFfkoQ bTXw1AJKFkgvM9nZgi2vJTaH5nQcvgzvbVnIMO6SYlM/Y0ZLzMRfdoYRp1cnd/mnGY0S oGDMqq1kgjAthy6UYcp+fzYUQS2gzVcVCYbQMM3eZi38GEg95jopHpBjYKvE1lOItA3h VrUw== X-Gm-Message-State: APjAAAU1ZK0BVN82X3o+jD1ZCP082pCoyZgqTk9eiRN8YJ7T2TJcUU8S 6T9zzyHnT17vjndq4voANOY= X-Received: by 2002:a25:7701:: with SMTP id s1mr6210156ybc.286.1570296625972; Sat, 05 Oct 2019 10:30:25 -0700 (PDT) Received: from icarus (072-189-084-142.res.spectrum.com. [72.189.84.142]) by smtp.gmail.com with ESMTPSA id 12sm2546780ywu.59.2019.10.05.10.30.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Oct 2019 10:30:25 -0700 (PDT) Date: Sat, 5 Oct 2019 13:30:04 -0400 From: William Breathitt Gray To: Colin King , Jonathan Cameron , Fabrice Gasnier Cc: 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: <20191005173004.GA7431@icarus> References: <20190925095126.20219-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190925095126.20219-1-colin.king@canonical.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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