Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp345419ybh; Wed, 11 Mar 2020 02:12:04 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtZfE67u4cFnEoeNzboLi1P46Ut8wNTuTkjjt2qgNDwUymXtxR/82xp0oaj92wr3amH6pSx X-Received: by 2002:a9d:4b0c:: with SMTP id q12mr1617923otf.77.1583917923870; Wed, 11 Mar 2020 02:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583917923; cv=none; d=google.com; s=arc-20160816; b=cP+1L1aNfk0LasjIOG95sbGt4ztYtKOaeq0ASml59vudm1Wf3JMudInYEXrqSphDiK mUKxSvtJni7BI8OKykL+FGYkoV3QzS2biIYx5isvQGPBxAWR8IH7A+wclsKAb+Dbo+F3 SJ2MCu/i1dWmVih+udJwAsEIK2OfVOfMHUUkqHL1WDi1AuI4Hf/ys1p4LjhsReXlR98l lHndYqb6DgAWYrA7LqX7/YpC93hD1xkBHS7W67mhv+JrZ2TkPTYVsW/9aS664iewcXSI Tgd7VvUwQcpl1lYlKBsPLla+UmP6trGZqLYC6hF2mxqi1Gnm63e4AIGJ0ijehjjolXPI GLaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=QGuLtBMB4FuxCg/6pY4RJf2MJm6wG1rBhpKDLO5OKrc=; b=S8IKmapUBMRHv0nyEyp/Mbm6UGhDAq5/SAmzMWWFnkR+fXie4MA38f7TARuAGYwDGp 9wDV0Xs0f97H+8VAKr+gnFUJcTQNLlvn/3YRGixCoLPYE9s5wH0QcbhGaZx66mH9+57d 7O0mDzS9RBiZQOOA+C92n4z68/XhFkr1dRauXn3eIMEGHZsU3T+HToNjPEuvrDLkSwTd tTJX7bjPETIapQmklRdlNs6A/gz+UOMjxKnn/btmwIcg2hCpu0cwL5n6NkZm1iKzsf7R r+zXLMaw7DuUQYRPpjW8WfxP8RuKNsR3qE8gjGrcb2etlO1qopFjsmJWZyZvHucXYNkL 3Wmw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 26si831663oiz.107.2020.03.11.02.11.52; Wed, 11 Mar 2020 02:12:03 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728736AbgCKJLb (ORCPT + 99 others); Wed, 11 Mar 2020 05:11:31 -0400 Received: from mga14.intel.com ([192.55.52.115]:36178 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbgCKJLb (ORCPT ); Wed, 11 Mar 2020 05:11:31 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Mar 2020 02:11:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,540,1574150400"; d="scan'208";a="443491350" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga006.fm.intel.com with ESMTP; 11 Mar 2020 02:11:28 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jBxOk-008hB5-Ey; Wed, 11 Mar 2020 11:11:30 +0200 Date: Wed, 11 Mar 2020 11:11:30 +0200 From: Andy Shevchenko To: Tobias Schramm Cc: Sebastian Reichel , Rob Herring , Mark Rutland , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Jonathan Cameron , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] power: supply: add CellWise cw2015 fuel gauge driver Message-ID: <20200311091130.GC1922688@smile.fi.intel.com> References: <20200309160346.2203680-1-t.schramm@manjaro.org> <20200309160346.2203680-3-t.schramm@manjaro.org> <20200310101050.GG1922688@smile.fi.intel.com> <20200311081450.GZ1922688@smile.fi.intel.com> <503baadb-b8f2-f4bd-a1a8-44b2dc77b933@manjaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <503baadb-b8f2-f4bd-a1a8-44b2dc77b933@manjaro.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 11, 2020 at 09:48:30AM +0100, Tobias Schramm wrote: > was just about to send v3. > > > > > __be16 value; > > > > > > ret = regmap(..., (...)value, sizeof(value)); Just checked this, simple &value works. > > if (ret) > > return ret; // note, you missed this in above. > > > > *val = be16_to_cpu(value); > > return 0; > > > > That implementation looks pretty clean. I'll take it. Thank you. -- With Best Regards, Andy Shevchenko