Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1493274ybh; Sun, 15 Mar 2020 04:17:37 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv51WtlNqlcNjWMmepC+KHLTwMwmixRMuh4Vw0w4BUIa8TaK+sMqMOL6kx6sqpWzzCGdSZo X-Received: by 2002:a9d:525:: with SMTP id 34mr13295808otw.80.1584271057277; Sun, 15 Mar 2020 04:17:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584271057; cv=none; d=google.com; s=arc-20160816; b=zH93DKzmjCHafClXhDPMIEjyKFDxEG/iUS1UpFiyaU0W6wDkscA+Zp+qD2OES6kdW0 7RCM7D0FxmZvcYktuyQrnfyeKmIbwX6+o0G85A/2t5BQcV6jElFJu/NeFbGITgbxsQkE UyaXN7Eth5wuaODPFSgH78nw3GLdIxXeT6hJJvn5tYG5S8JtHE92wAbw9tJh2DaQEF6f 9pnxjyYq6IiWfjuZ7190+/529bLOtEZuv0ycMtLs3Y9sDK7YeaNwYwD9NpGesXBIwRAw 2sJaZ9Ge6jMuhNZ3fDEBiAww2T2mV7bI9pvEacbzOHfW59Hr3MPp8ysfvHSEJdWxQs8f ATFQ== 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; bh=tXPcGm+6GT9Y8Wxnf4NOfxx6GOO8qzpAPN22qOoUXPA=; b=FBkVhBHdh8kmcSQmD9GHkAFavpCMLH8uUt3xzkyvyPsRQYfRiYDDeHO/LVlVyC+Vxy dn4d63mfSybEEK9JAxzpxnNoc3V9wtSHWPEBvBJoSe01Qhqn+a1/pyN289kNSrxS11CA 9EEdgVAhc0/a3KVdoeYn1fdFNFFMWsApbpzYao0bfOBe9yRQ4KnOnQkCbpxchvQL0XJY sWR9maPluOJY26XqjbD70JONCTa8kxsyc4VdxFQY6+8KBpC2+sdw5s7fMqjji2h4QU6V WLBouvZuS37ITDtxFC73iBWMdLc17Ohf5enGVWFBHzTem5cZ+AdJj+HNl0RSmGpf1lof /Tig== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u14si7936357otg.10.2020.03.15.04.17.13; Sun, 15 Mar 2020 04:17:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728336AbgCOLQf (ORCPT + 99 others); Sun, 15 Mar 2020 07:16:35 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:47228 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728234AbgCOLQe (ORCPT ); Sun, 15 Mar 2020 07:16:34 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id 2A5268050C; Sun, 15 Mar 2020 12:16:28 +0100 (CET) Date: Sun, 15 Mar 2020 12:16:27 +0100 From: Sam Ravnborg To: Tobias Schramm Cc: Andy Shevchenko , Sebastian Reichel , Rob Herring , Mark Rutland , Daniel Thompson , Maxime Ripard , Heiko Stuebner , Stephan Gerhold , Mark Brown , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Jonathan Cameron , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 3/3] power: supply: add CellWise cw2015 fuel gauge driver Message-ID: <20200315111627.GA21240@ravnborg.org> References: <20200312222448.25097-1-t.schramm@manjaro.org> <20200312222448.25097-4-t.schramm@manjaro.org> <20200313091124.GP1922688@smile.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=XpTUx2N9 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=z85fDJX7t83lHnj23ngA:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tobias. On Sun, Mar 15, 2020 at 12:00:35PM +0100, Tobias Schramm wrote: > Hi Andy, > > thanks for your feedback. Please find my comments inline. > > > > >> + dev_err(cw_bat->dev, > >> + "Failed to upload battery info\n"); > > > > Indentation of the second line. > > > I've seen quite a few different indentation styles used in kernel > source. Personally I'd indent like this: > > dev_warn(cw_bat->dev, > "some long error message"); > > However coding-style.rst specifies that spaces are never to be used for > indentation. May I assume they are ok for alignment though? Indent with tabs and align with spaces. So this becomes < tab >< tab >dev_warn(cw_bat->dev, < tab >< tab >_"some long error message"); Where '_' represents a space. This is the recommend kernel practice. Sam