Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1804569ybg; Sat, 19 Oct 2019 02:53:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzrA6K6RK19B5v22Xv6bQ8UtUiLo+OrSTW2CbB+CJkecx4gWTMd5J7E/lzDCCI6SixUUWaG X-Received: by 2002:a17:906:c57:: with SMTP id t23mr12663771ejf.219.1571478790879; Sat, 19 Oct 2019 02:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571478790; cv=none; d=google.com; s=arc-20160816; b=T/34li9mTH6/axQOAUoJSNYm7h1dxsr3lrsVO2jG3FdXK6v0BLrKcsijzTJopR4w8l Nnuk2QJTJlvGULGYjc0PNL0e4l18zPYTyz9aGmKX2GOAF48tEzcgGMmpqAj6RnCiFymf rkbjScPHBPp0ag7phurf4rxEBbYePYPANw4Lme5UWPMY6qCJSBBudm9WLH97zFjxeNUE og0Hyq7CQL8EehxLA0o+bC+xNDwWNu7tUafoLM/hQd5XkATVeZHzWX8UZK6IPbrXQsFE buRoZ2JERQQ+cFRDV0D6gNYk7Jevu0YuRlI3KPVY7nv4widjpNFh4tSbiny6LRuq86rv lyNA== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=fp0XrKJxO2utb73Eb25FCpYeOJhSYoo9kO+N+b4sZyA=; b=OdFHIQ5LG+lSF6UWtJiWhDNgDC5l0MrPrb/ufvEdHfSDTt1Ue9NZlOvHVc0pvQguec Pxr7gBOZ+KzBkif5oIsrrwcwWScXDjxQZZdoDvtHoY/sXqbp92dS1vCRRmwvluwnDX8x lqt9Fgcuq7j1gCUtaA8ktAdEwVkEc0tkGeNO373rhT2WjDRR/mynEbds40ZYAujQ8wyx tLAiHtt+aQFzDmCgDi/hjJ/4tV+U1Ok7gGZOjfmyoGE55P/P5uzoWyr8vxc2DwTofh+M NgBUk1Xgyy9y8EuvfmHbvejHlTsyW9FWO9uZw7zaxPF4at6sNIegdb6KcupYD9rKG6LQ swKQ== ARC-Authentication-Results: i=1; mx.google.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 ec21si4510316ejb.26.2019.10.19.02.52.47; Sat, 19 Oct 2019 02:53:10 -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; 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 S1726729AbfJSEZG (ORCPT + 99 others); Sat, 19 Oct 2019 00:25:06 -0400 Received: from smtprelay0080.hostedemail.com ([216.40.44.80]:44528 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725385AbfJSEZF (ORCPT ); Sat, 19 Oct 2019 00:25:05 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id D5C94180144BE; Sat, 19 Oct 2019 04:25:03 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1540:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3352:3622:3865:3868:4250:4321:5007:6121:10004:10400:10848:11026:11232:11658:11914:12043:12048:12297:12438:12740:12760:12895:13069:13311:13357:13439:13972:14659:14721:21080:21627:30054:30091,0,RBL:23.242.70.174:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: tank37_ed58174bf857 X-Filterd-Recvd-Size: 2088 Received: from XPS-9350 (cpe-23-242-70-174.socal.res.rr.com [23.242.70.174]) (Authenticated sender: joe@perches.com) by omf17.hostedemail.com (Postfix) with ESMTPA; Sat, 19 Oct 2019 04:25:01 +0000 (UTC) Message-ID: <0a5b872c48fb4047982c67d84f90bd075a0a357b.camel@perches.com> Subject: Re: [PATCH v4 2/2] iio: (bma400) add driver for the BMA400 From: Joe Perches 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, Randy Dunlap Date: Fri, 18 Oct 2019 21:25:00 -0700 In-Reply-To: <20191018031848.18538-3-dan@dlrobertson.com> References: <20191018031848.18538-1-dan@dlrobertson.com> <20191018031848.18538-3-dan@dlrobertson.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.32.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2019-10-18 at 03:18 +0000, Dan Robertson wrote: > Add a IIO driver for the Bosch BMA400 3-axes ultra-low power accelerometer. > The driver supports reading from the acceleration and temperature > registers. The driver also supports reading and configuring the output data > rate, oversampling ratio, and scale. trivial logging note: > diff --git a/drivers/iio/accel/bma400_core.c b/drivers/iio/accel/bma400_core.c [] > +static int bma400_get_accel_reg(struct bma400_data *data, > + const struct iio_chan_spec *chan, > + int *val) > +{ [] > + dev_err(data->dev, "invalid axis channel modifier"); All the logging should use \n terminations dev_err(data->dev, "invalid axis channel modifier\n"); [] > +static int bma400_get_accel_output_data_rate(struct bma400_data *data) > +{ [] > + dev_err(data->dev, "invalid ODR=%x", odr); should be: dev_err(data->dev, "invalid ODR=%x\n", odr); etc...