Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3596928ybl; Sun, 8 Dec 2019 18:57:02 -0800 (PST) X-Google-Smtp-Source: APXvYqw17nRxiQvYGVdm3+y4UmQyNkn0B04FehPgpSAoQDm/V62c2K1pbo/M78vMM/ec5C0/mloV X-Received: by 2002:aca:bd85:: with SMTP id n127mr17007592oif.136.1575860222721; Sun, 08 Dec 2019 18:57:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575860222; cv=none; d=google.com; s=arc-20160816; b=ZqV0fL7Xz2rweVSf8IdEq1yvO1SCsyUHzUxvy/LI4De+P/ML8Rw4ZTMOiiCXVUp+Ij LMrbIRDajc+JrrngIFfbkMatjQQlN3nILeuXTNuO/Tdvxvud9CwW6MAcm4GdZ5FqiEbc PPGut7/kwMb2d9LK75s33sl/LBEYVl5cE0wSbEbGIshyigK6s65pfk+XD41Q3JSWkqN2 pcQ2v6i1iYEa6AMpwisI9MlmouT/s0BL774riLAIfXdQ1GBizrS91wr3xZtv20ujO3io 8TMMCH2XyAI62weWuVwHaBb9J957CzkFrH220+v2pS9ohUlzfjXbWbZx414udNCU5TrW L+cA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=m2lUrODSpTuA1453mVsRp9l2Fn57jclNVrwv88nJH8Y=; b=h0bqWhbVwK6arVozoFaMO2DjoR/zsP7NG8p/5YN2mn9pZl+OrMLWm5DJPH57Q5Fn5V LKlU2sWNy8CEzgEd+Ax26B84xMN799qOCcqijvfFdCQAnZxmasBDlYbDn3ckC7/fV4fZ aQdT3k+t/bf9acwkjgzyUjG/4q/rhUnLTyqgP5bcfRgsLhGbE2j6MgVFc/r0VBFfLswr KgZEvEEs1Y0XyB8KgNFzgvl4EqYNuIa+n3je3z2ITFc0cFbLAOjNJ6Z3W09J4FfYdR4p pvSpqU9tyB43XwzzKxTtt6Hg6qOZdX+dJK57sMIzK7l/fGm+NV7ZO7t20KwINGsXKdNw EGWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (dns failure for signature) header.i=@infradead.org header.s=bombadil.20170209 header.b=ofkFUo2B; 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 s6si10446451otp.126.2019.12.08.18.56.50; Sun, 08 Dec 2019 18:57:02 -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; dkim=temperror (dns failure for signature) header.i=@infradead.org header.s=bombadil.20170209 header.b=ofkFUo2B; 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 S1726974AbfLICys (ORCPT + 99 others); Sun, 8 Dec 2019 21:54:48 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:56930 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726748AbfLICyr (ORCPT ); Sun, 8 Dec 2019 21:54:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=m2lUrODSpTuA1453mVsRp9l2Fn57jclNVrwv88nJH8Y=; b=ofkFUo2BBScyBoHteW+FYdFTH xY8wAN7UTp5i74wJ5G89ooYRGaIjVUTrykMrxdN5eujS01tufh7Z3PJ5S4tVyN46KZ4jxX9yBcMcA o5qt/e+a0uJWQMbvu2frMzsRhntfDijHp8RRj6Ke4O7AmiapWfdMpo4esNGzZ49tjtjejZCw88qRl qwCdSUrtX57t+tnLOvdhxp5b9m+s/DJTMSy1qaErZLohxzIB1Ft8LW/7+T3muN5XhIPcsSLHNbqRx qJCYi5yizWaiCPr/e6h2FZwb8n+cQdV6Xv5yfvFdtm14EaYsdCwtcxUtsws5mtq1jPZO5SzWcE6pq ZjKyVGoQg==; Received: from [2601:1c0:6280:3f0::3deb] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1ie9CA-00038h-Jy; Mon, 09 Dec 2019 02:54:46 +0000 Subject: Re: [PATCH v5 2/2] iio: (bma400) add driver for the BMA400 To: Dan Robertson , Jonathan Cameron , linux-iio@vger.kernel.org, Peter Meerwald-Stadler Cc: Andy Shevchenko , devicetree@vger.kernel.org, Hartmut Knaack , Rob Herring , Mark Rutland , linux-kernel@vger.kernel.org, Joe Perches References: <20191209014320.13149-1-dan@dlrobertson.com> <20191209014320.13149-3-dan@dlrobertson.com> From: Randy Dunlap Message-ID: Date: Sun, 8 Dec 2019 18:54:44 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191209014320.13149-3-dan@dlrobertson.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 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). > + 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. > + > +config BMA400_I2C > + tristate > + depends on BMA400 > + > config BMC150_ACCEL > tristate "Bosch BMC150 Accelerometer Driver" > select IIO_BUFFER -- ~Randy