Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4418051ybl; Mon, 9 Dec 2019 10:28:22 -0800 (PST) X-Google-Smtp-Source: APXvYqx2ncCt16sK0Tx5mup2syWO5Isxssg0nwJ2jjSWt+gpg+EP+PLsDBzN+9i5mC6R9X1ZCjy+ X-Received: by 2002:a9d:6216:: with SMTP id g22mr21631647otj.260.1575916102470; Mon, 09 Dec 2019 10:28:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575916102; cv=pass; d=google.com; s=arc-20160816; b=j33SNOOswNQPNMEAiqVVccHzWgxTN6mUWMCZ0oCafhByjwFkYzr30dx4hL8B0NiP7G 2BM5PBNZ4aEIxUkiDDeHsKZnOp1kLsPDVrZi5NFAN0Ozsj0ID5pS2lSAOCs5PT5KApVc or8/KYM0w0/dLY7yqK7yEhZjtCBii7rZcHh54yqhaWoApMtA/1mg0fJPbk8rLWCE4XV9 EahMczwghyWQBvT7YOrzkfT+Zmwhb/4e2BXRUHXtohyaPV1tparta8P5dbRLpKTrWFLq EKg/zVw28iislveMlW23bwq+Hsgq0fSETJI1j1CUS28H68ID8L+g59qjhb+n/T5pADb4 M4FQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qST48LGbEeti0hVqrKe4JVhTVDhvY4DFmAgNm3h8veo=; b=RE+qkZFIdXA8u0drTS4fPVTG4Hl/S7H9KBI0Iwe8c9umsyghi4P2UCAnDJYTQeQP8u 1XECUE31U8hCkEZness5cg4jIF50fbgZ20QEy7TvQ70s3sL/PAxl4mVaKIiwECASyh6y xXCWf1Yul8+yQ+7Pqv5TJqiBNghHM0zG9ckI6IBeihwpeY7eOIwYAFriYbL34pI+dmOp H5nR2XaEKYw78t/e13gGsEs6Ygnt0qVtIL71716Yi62dxgKNtVgTEuW/llO/4hPtTFyH nfMuXqafv2NtRZMSQynnJ3RWzRWly2o2sPgd+b4cCy9kwZXSJHOx+jj4j49DrBrpFno3 Kzfw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=dlrobertson.com dkim=pass dkdomain=dlrobertson.com dmarc=pass fromdomain=dlrobertson.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 b20si290059otl.159.2019.12.09.10.28.10; Mon, 09 Dec 2019 10:28:22 -0800 (PST) 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; arc=pass (i=1 spf=pass spfdomain=dlrobertson.com dkim=pass dkdomain=dlrobertson.com dmarc=pass fromdomain=dlrobertson.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 S1726509AbfLIS11 (ORCPT + 99 others); Mon, 9 Dec 2019 13:27:27 -0500 Received: from sender4-op-o18.zoho.com ([136.143.188.18]:17863 "EHLO sender4-op-o18.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbfLIS10 (ORCPT ); Mon, 9 Dec 2019 13:27:26 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1575916033; cv=none; d=zohomail.com; s=zohoarc; b=Uqeax3GWXw+lN2aiuuJ2WAdj6XJgf83shDkh4o75FqkeAl5csykPMHKyW4TQgimjl7U/UDhVIoUSh4vziZCAakMLOIYaF0zvEpDrlgJDyKMdpbVvsvDRYXVGyTNBr9NHYrPtnoNCCLelDAQvT5W7l89MYQdTzvP1nSfu2R9JMJg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575916033; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=qST48LGbEeti0hVqrKe4JVhTVDhvY4DFmAgNm3h8veo=; b=E9VH1LQn7SoUzRt1ikBlGnECa3C35ZQVKcifJtkVMROrNZO1tS7iu2OcZS2NBXd+AMClI7pBPvL1ZmX/z8iZmu4r8HfBJHjxKc6/xJUy6uq8qlBEgFBNzoilmDcVVRtcmIGSxIFjD8agU+C8AOFZxqv4IE1x/hnnqDMcyFQynAw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=dlrobertson.com; spf=pass smtp.mailfrom=dan@dlrobertson.com; dmarc=pass header.from= header.from= Received: from nessie (pool-173-73-58-202.washdc.fios.verizon.net [173.73.58.202]) by mx.zohomail.com with SMTPS id 1575916032260346.62116454289855; Mon, 9 Dec 2019 10:27:12 -0800 (PST) Date: Mon, 9 Dec 2019 18:11:53 +0000 From: Dan Robertson To: Randy Dunlap Cc: Jonathan Cameron , linux-iio@vger.kernel.org, Peter Meerwald-Stadler , Andy Shevchenko , devicetree@vger.kernel.org, Hartmut Knaack , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, Joe Perches Subject: Re: [PATCH v5 2/2] iio: (bma400) add driver for the BMA400 Message-ID: <20191209181153.GA13304@nessie> References: <20191209014320.13149-1-dan@dlrobertson.com> <20191209014320.13149-3-dan@dlrobertson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ZohoMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 08, 2019 at 06:54:44PM -0800, Randy Dunlap wrote: > On 12/8/19 5:43 PM, Dan Robertson wrote: > > diff --git a/drivers/iio/accel/Kconfig b/drivers/iio/accel/Kconfig > > index d4ef35aeb579..dc9bc646d403 100644 > > --- a/drivers/iio/accel/Kconfig > > +++ b/drivers/iio/accel/Kconfig > > @@ -112,6 +112,22 @@ config BMA220 > > To compile this driver as a module, choose M here: the > > module will be called bma220_spi. > > > > +config BMA400 > > + tristate "Bosch BMA400 3-Axis Accelerometer Driver" > > + select REGMAP > > + select BMA400_I2C if (I2C) > > What's with the parentheses? I see that there are roughly 2700 > "select ... if X" without parens and around 95 like > "select ... if (" [using rough grep expressions]. > The parens are unnecessary. They are often used on complex > expressions, but certainly not on simple ones (except in iio). Good point. I'll remove it. I'll need the parentheses if/when SPI support is added, but I'll add it when it is needed. > > + help > > + Say Y here if you want to build a driver for the Bosch BMA400 > > + triaxial acceleration sensor. > > + > > + To compile this driver as a module, choose M here: the > > + module will be called bma400_core and you will also get > > + bma400_i2c for I2C. > > iff I2C is set/enabled, so could be confusing. Good catch. Cheers, - Dan