Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2018893ybp; Sat, 12 Oct 2019 02:32:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdxUlBqMJDKOPlr9nVzAO3iiU30KQG27lNnOsB0/kr+hyE+F6pe2us2uclisxGsRfdnZGa X-Received: by 2002:a17:906:edb7:: with SMTP id sa23mr18404032ejb.263.1570872748019; Sat, 12 Oct 2019 02:32:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570872748; cv=none; d=google.com; s=arc-20160816; b=jRezGRw1Rbu3tBco/YV/tmFSKLveuW+rQYdG4ZIQdEQ0VUSwDK95HDOSEs9z1FiY/8 1GP3D16ZkuunPcio3e5TAhvnHuN3RmfB57MU+84lyXOE2F5KJp8EaI+ySwuvTMleJRNs lvWHHTKQae8+ysih38cDNKfEVTK8KemRhIUVoQCtuR29VuKgWaKD4FQzkupCcjzH0FAP 1/YURDQjU4U5su8ZWdFi7bkPJttgQ+1ypC2jDzVoZii9n9OGGyxX5zTW8OAFsM2b0oF7 k2izCvQ0Vt4dBPAtF5CgTXpHbUNI77IyirOXwuQInQkQbGQJBQ4bciHQsHJSVxvoGKBh xozg== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=0pRkMs9LhkygIoO3Y/Qg0fzl0j7H69kOZJGAlCJgORo=; b=VRwwk1paoXdiGmqZv9Kb+H235Ap56chsPa2gapv0HaklRdaNb9Ih4jwYWxQvVk1Yg8 5QwRbNT4l34tWB8kDVLCL7yIrxzQRvsA3H9lfiZ2FIFZSLg75PVIYTwV9KmyYCkHpu9e 4VopEf2XYKqMOJc1fHinnmMqdjdHhAGdlsMBAdzl7c3SK6Af3/YqD6tY2slw/n+oo5hv tuTiScN9WZwg3ka1GOGs1RW2WDIF3IjeDbacrQTqco/a/dfeTUy9yXUlASQlFJ3mGBcv 39tCOQyO3bUebmgDZT5jo/rfpUTmo6KHy6uJvY1V7YmRerFs8wrxGgq3KZEzLlRXv0Ck +Kxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=slJ4SI6Y; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i56si7466062eda.19.2019.10.12.02.32.04; Sat, 12 Oct 2019 02:32:28 -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=@kernel.org header.s=default header.b=slJ4SI6Y; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728536AbfJLJbY (ORCPT + 99 others); Sat, 12 Oct 2019 05:31:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:52506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727083AbfJLJ3Y (ORCPT ); Sat, 12 Oct 2019 05:29:24 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1A310206A1; Sat, 12 Oct 2019 09:29:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570872563; bh=gxaRUVY8E1/KFigUY3uva7Oja1DegcG2ZBJ0mfjL7JI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=slJ4SI6YVMHjn95c8ZAJVo0qfYC8I6roX1VrsAMPeoNOJQhQn5co9n8WXQF4IMg7m CBR/mg8+05q4j/HBP0QAe2nYgq1EEfwRVapOnC+d8c0QJEF8+WuNzCO0aui9uhp6/c PA+e07/n285aMevlrXozpPI+jE6nXatljd04aNHs= Date: Sat, 12 Oct 2019 10:29:17 +0100 From: Jonathan Cameron To: Andy Shevchenko Cc: Randy Dunlap , Dan Robertson , linux-iio , Peter Meerwald-Stadler , devicetree , Hartmut Knaack , Rob Herring , Mark Rutland , Linux Kernel Mailing List Subject: Re: [PATCH v2 2/2] iio: (bma400) add driver for the BMA400 Message-ID: <20191012102917.7e85275f@archlinux> In-Reply-To: References: <20191012035420.13904-1-dan@dlrobertson.com> <20191012035420.13904-3-dan@dlrobertson.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 12 Oct 2019 10:39:54 +0300 Andy Shevchenko wrote: > On Sat, Oct 12, 2019 at 10:07 AM Randy Dunlap wrote: > > On 10/11/19 8:54 PM, Dan Robertson wrote: > > > > +config BMA400_I2C > > > + tristate > > > + depends on BMA400 > > > + depends on I2C > > > + select REGMAP_I2C > > > + > > > > The bma400_i2c driver seems to use some OF interfaces. > > Should it also depend on OF? > > Please, avoid unnecessary and strict dependencies when it's limiting > the area of use the driver. > The driver does not depend to OF. Why to stick with OF? > > The actual change has to be done is to switch from > > > #include > > to > > #include > Good point Andy. There are numerous drivers in IIO that do the same over enthusiastic including of linux/of.h just to get of_device_id definition. Would be good to clean those up to just include this instead. This is going to cause very little noise so if there are any new contributors reading this it would be a nice sensible cleanup to get started with! Thanks, Jonathan