Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp223664pxk; Thu, 1 Oct 2020 00:19:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKtmDjvzaRntRHl4uxB1XjHQsz4hNysO2y9g1CP1VQYDumc8GMR7R3U5j1whEmf2CXJlBS X-Received: by 2002:a50:dac1:: with SMTP id s1mr6837959edj.74.1601536770526; Thu, 01 Oct 2020 00:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601536770; cv=none; d=google.com; s=arc-20160816; b=ma7W3eobMEvqV5hEL9kabSCdc1dRD0y8UBALLkrwRCaiEqlCRBRwprjvyr/w1sJnN/ qaUH+2QOVWRIRKip/+iRFwFvEoCca2MViW46uu3LBkzvG0dc6PWkvz4SQoctIkq0yxL5 JaUG/gIkR+Wa2dYBdWrbr/Wpn/jDSE2qXhY9yxkkmdpdMJptMam9Td3VnMkHQnZPoQkr 4ZryB0mhc3PvlG7gvH8jNTl65Eg591o8mxBs4SpfZzOqfNKFFEHCcsQkwqQ4DsFkT2uv WdExOxbkZRIhcc0LEiaqkamxOdEIi+GTDJKJXfX9jCrW6uCHYrKD4LoHoVdXoViYComc PsRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=OJpLu1QIzAdT9OTCTuG0dJ9/mquNniVnavzG5rYcza0=; b=v5oVWOFdvnLgs8CmZ6aeDr8Wk6jBaG+LKEMWv7X/mF+ARnkQoptDRHIvHeAgf2s4PA Fjr5OFgXteyqy7itLRE8JZoCw3YixajcE/TsnIMfXX/Q3gNRwV6dG+AvWc2LqtQrpj0K LFZ1EWgUHIEiuncWIo2garLW1KLNnQXLcNYTMNPIgy/Iw1YzrudAZPxyAaTDlKG67hYf saBHkwT9/QWa7mr2hyjqVBl6iMbGb8vSNEi2aQ97Fjv1pgMHY1WIJcplERWZIGZEfAF4 AITLEE4BnqHDR4+5SL9d8wrg2MHIISQnp3WlJewnN3waAg7qidrr+zagEiv9uWCoVsbD UufQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f27si2821549ejt.420.2020.10.01.00.19.05; Thu, 01 Oct 2020 00:19:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726992AbgJAHQP convert rfc822-to-8bit (ORCPT + 99 others); Thu, 1 Oct 2020 03:16:15 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:51012 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725878AbgJAHQP (ORCPT ); Thu, 1 Oct 2020 03:16:15 -0400 Received: from marcel-macbook.fritz.box (p4fefc7f4.dip0.t-ipconnect.de [79.239.199.244]) by mail.holtmann.org (Postfix) with ESMTPSA id 14780CECD2; Thu, 1 Oct 2020 09:23:13 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: [PATCH BlueZ] doc/coding-style: Allow spaces after tabs for indenting wrapped lines From: Marcel Holtmann In-Reply-To: <20200916232924.129991-1-sonnysasaka@chromium.org> Date: Thu, 1 Oct 2020 09:16:12 +0200 Cc: linux-bluetooth Content-Transfer-Encoding: 8BIT Message-Id: References: <20200916232924.129991-1-sonnysasaka@chromium.org> To: Sonny Sasaka X-Mailer: Apple Mail (2.3608.120.23.2.1) Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Sonny, > The "only tabs for indentation" rule was enforced long ago to align with > Linux kernel net coding style. This is no longer the case today so we > are relaxing the coding style to allow spaces after tabs if it can > increase readability. > > --- > doc/coding-style.txt | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/doc/coding-style.txt b/doc/coding-style.txt > index f0bf880e3..6a7415847 100644 > --- a/doc/coding-style.txt > +++ b/doc/coding-style.txt > @@ -104,9 +104,16 @@ void btd_adapter_register_pin_cb(struct btd_adapter *adapter, > void btd_adapter_register_pin_cb(struct btd_adapter *adapter, > btd_adapter_pin_cb_t cb) > > +5) > +void btd_adapter_register_pin_cb(struct btd_adapter *adapter, > + btd_adapter_pin_cb_t cb) > + > The referred style for line wrapping is to indent as far as possible to the > right without hitting the 80 columns limit. > > +It is acceptable to add padding with spaces after tabs to increase > +readability, for example to indent function arguments at the parenthesis. > + NAK. The userspace style is a bit different than the kernel one. Regards Marcel