Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2178476ybc; Sun, 24 Nov 2019 14:54:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzyG2CLOukMbUAuFkLGn1XVSOcG/5u15in6W+RIlQ4RsxH/ukubdETE+jj85Mr7Uxj5PTkj X-Received: by 2002:a50:9b1a:: with SMTP id o26mr14839190edi.208.1574636063298; Sun, 24 Nov 2019 14:54:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1574636063; cv=pass; d=google.com; s=arc-20160816; b=qsPudY42UeEEu866qFlaL777RpV8uvgBIueh2LnhML06KEao9cO6gD+gk5JMWvZXBL eleu5ILAt9xzFOLJ6OAg8uva2uO0bFPznPvdBgQYdjVhtCQHxOmpulJYY5uMVDGJeO2L aj+ofQLKU/rmTILXLCmYi1ScllDUaPlVbabJmPS5JqMBvsy8u0cFpenVLIDoMCltW6JA c/VuQZXQvZcOhEdJlsGO77XnT1M5KSR0Ul9/BN8kRrCBcO5CTuDMXhsaSDNuQ/RZC3+8 4Ld4DM6O7rKWfOdvEuaypVoq+EvM5iS2raZft9PJDcywjKn3BpmBaZsAnV0Bs3+MgYUj cNkA== ARC-Message-Signature: i=2; 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=VBlCIOBlmhYT1nXzZeusUrp2ZE5E5KFbCpOclqk1oRI=; b=ZGlBiZ7x67gzXAtxU60/WTZCEysZvVo/1WDlEyONnEYKQ64Z1jwzAd9Jm/OOP3uCKq FAqoAVHyB4gglDydPKVVGgOfYQYJCDOG49nhpc3Dys4hr5L4olUcJwiZIXR33lbioEBc KB6hi0fHr7o8N+5YGUDIDd2v41ytpdmj3QL3hFl5yU35UNN0t9nMvc/c4UDiWpueuiLl tDjNo7WiHXBoNvsbn/ACs+HV0UTinIP7oq95eR6YOlRzw4kAbJj75byMedTvh0TvUtp+ 2t4N+aXCVeEKSYWvX6F/zkbL1Njx3q1mdgbYrvtebH0A/2nBloMMjPQVlEdKDf4LlTHZ ThGg== 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 e8si3327555ejb.200.2019.11.24.14.53.57; Sun, 24 Nov 2019 14:54:23 -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 S1726994AbfKXWw7 (ORCPT + 99 others); Sun, 24 Nov 2019 17:52:59 -0500 Received: from sender4-op-o14.zoho.com ([136.143.188.14]:17478 "EHLO sender4-op-o14.zoho.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726855AbfKXWw7 (ORCPT ); Sun, 24 Nov 2019 17:52:59 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1574635958; cv=none; d=zohomail.com; s=zohoarc; b=nkhEXIzF9+0eSVEWhcQyoV6RJb7cH7U8Gr2gkLFCjEeuJUg2huMqkHX0csaHlKyVgttBtlmDlKmWemY0aVu/zthNq2k2KSD+DscGEN05VjaeiZ11vK7T5saX6/nN7xxYjPFNNrByvVz3HcsxcsCB6lL+rDvDFh2aEdoqoFfBLCM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1574635958; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=VBlCIOBlmhYT1nXzZeusUrp2ZE5E5KFbCpOclqk1oRI=; b=H9LIerKIxFLVX+a3CgdMu5BaAD8LkvS1IfTDtU6XBlJ4JhB/Ve3h8gklOB/hfWRDtUAJb9qdkBJOPSTTLVegEd5k5y/ffGTLwnlkWiUVFkDnLjLmFmxuOc7sgFNdTxiYP+cIQzzj6yyU8q8xgptetWnCe8uBeJ8shM+4enZtpTc= 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 1574635957113882.9905876044394; Sun, 24 Nov 2019 14:52:37 -0800 (PST) Date: Sun, 24 Nov 2019 22:37:34 +0000 From: Dan Robertson To: Jonathan Cameron Cc: Andy Shevchenko , linux-iio , Peter Meerwald-Stadler , devicetree , Hartmut Knaack , Rob Herring , Mark Rutland , Linux Kernel Mailing List , Randy Dunlap Subject: Re: [PATCH v4 2/2] iio: (bma400) add driver for the BMA400 Message-ID: <20191124223734.GA13261@nessie> References: <20191018031848.18538-1-dan@dlrobertson.com> <20191018031848.18538-3-dan@dlrobertson.com> <20191019024351.GB8593@nessie> <20191021162016.531e6a2e@archlinux> <20191118002504.GA29469@nessie> <20191123125135.4c7efcb0@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191123125135.4c7efcb0@archlinux> User-Agent: Mutt/1.12.2 (2019-09-21) X-ZohoMailClient: External Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 23, 2019 at 12:51:35PM +0000, Jonathan Cameron wrote: > If a function is your preferred route you could also just use it to compute > the values for the available table at startup? Yeah that makes sense. I'll add that in the next patchset version. > > The sampling ratio, frequency, etc code seems to be the most complicated part > > of the driver. Is it typically recommended to upstream a more minimal driver > > that might assume the defaults? > > Often people upstream a first version that just uses defaults, then follow > up (if they care) with later series adding the more fiddly elements. > > Sometimes those more fiddly bits never come as a particular author > never needed them. That's absolutely fine. It's a rare driver > that supports all the features on a non trivial device! Makes sense. I'll likely add some extra bits in a follow-up patchset, so I can learn a bit more. Cheers, - Dan