Received: by 10.213.65.68 with SMTP id h4csp555375imn; Wed, 28 Mar 2018 08:31:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx494YHPm/AiKQf7V7BR2rF5R/kTeA+zMJvzESLfZMJmhjLaysxAjj9t2smrquJ/3OV84gEOe X-Received: by 2002:a17:902:a24:: with SMTP id 33-v6mr4336926plo.72.1522251074883; Wed, 28 Mar 2018 08:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522251074; cv=none; d=google.com; s=arc-20160816; b=rNWgktY7wQb3xHsmQXxpuLzE+WH1qo5TOXwRgvCIV+M0+t1asPVh2mfE2tiWrgW6bF ODWsBh6Risldr+whMCQfOeMjVv/jnLHchsOfLolqBhrpXisfxx2LXAwdZXa9FsqZJEfP TlTBx1OYS386gCNb4QY0CW/LT6AAIMkvYpbuRa4j88epz/OOGIYcAUNtCEdzEUqgbGiN vgfQfc9RVnDLudr3lNLHsbOVHZOsnipN5cJzi9HJ5i1swX35JvtCMOjVKYEoWUzCdFF5 ieBGbPd3TyCdsiAqy4TaSFDxDCQq5j/3q4nJnaCnQ/Qv5CkCfFfbvTzgrna/nzlWRAaz Ynmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=BLHdqu4L80lXpEl+8sBlwuHVpqndt3rkYawCgGPRA4E=; b=OzC834WDCSvi7SlAi6WbkPf32w3+HQgLscytaYMhQ8DSax1s/DYBLPDChThEBKAyw/ 8NWSyEglXVLx66z4UtnlpPV+lVm781YXmTYBso2o9Du5zK04RkrdO9cTzogOaqsp01UU 7mp6xjEFsPOR0wnXdgr5ZnAbQsH/6vUnk7a8AKlxoUE1SpfwxdHGm0nw2/mOxo70qENl /g2AGO45l8ztC0zKBl7cAoyqhwySoHck0DqwEXC4cugwq8Qh+G93FWjlqdD86THmSfmQ b3QbnpNAdkto7GFoOWfqYl1M/nK3+ahx1OtefF61d28iafhdLX9lg5yJe65jZWP6LbPU CuOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c0uJE2PC; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k14si2593868pgt.32.2018.03.28.08.30.52; Wed, 28 Mar 2018 08:31:14 -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=@linaro.org header.s=google header.b=c0uJE2PC; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753892AbeC1P37 (ORCPT + 99 others); Wed, 28 Mar 2018 11:29:59 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:44683 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753511AbeC1P36 (ORCPT ); Wed, 28 Mar 2018 11:29:58 -0400 Received: by mail-wr0-f196.google.com with SMTP id u46so2635784wrc.11 for ; Wed, 28 Mar 2018 08:29:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=BLHdqu4L80lXpEl+8sBlwuHVpqndt3rkYawCgGPRA4E=; b=c0uJE2PCKgTfdO8S62OUSRd0GpUDgbNXK49XpmqlnS6bYiulpsDjn2IiZ194VJpF/Q Th3DfQD1Ifl81FNpiL/wPcjjvPjBnwklAwhL+fysDeKEBILmEEaa4WLyUDwRUf0+iUJB zM4XfDFdovMF6o8jFVOg3MdcY6A+3gfRckDLg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=BLHdqu4L80lXpEl+8sBlwuHVpqndt3rkYawCgGPRA4E=; b=rwPAvMH8r1gnTmjL25rPjK5kL2JyruoVkDQR57BiisLFkzeemiafTTHIFvRXLKG8x0 oNX0BKUYA2H4glZ3ER09kVRCNa8b2EFSfTvcxOCPd2LLNBtB9hPXDnFRwt5PRITeEfp5 wIOhPFPMXost8KDi/LoT/5LEwUsoIQlZer3YhM23rKTIqmj+ueLwQ3t7Z0bblay2VhYa xb1S8BFYW5L8Y7+kG7tHBexg++d7n4j5rpzuGDy1BYl0mXZqWTMkrPofQ5CbFvo8pSDL tThtbiT3cf42pnrK/gmyz7wnOC/7itYT1sZnjaPYqiPDM+8xcvvQUkP7x33cyELc4puZ fCxA== X-Gm-Message-State: AElRT7ESM4WczKZxLdYAH1AiqOkGfl2tNvTlrOpYCzwiGQuquvozBbPZ NzPjJUwgKBzcMzq4i0a3DjBTModY1p4= X-Received: by 10.223.191.15 with SMTP id p15mr3530087wrh.156.1522250997576; Wed, 28 Mar 2018 08:29:57 -0700 (PDT) Received: from dell ([2.31.163.57]) by smtp.gmail.com with ESMTPSA id l41sm7916524wrl.2.2018.03.28.08.29.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Mar 2018 08:29:56 -0700 (PDT) Date: Wed, 28 Mar 2018 16:29:55 +0100 From: Lee Jones To: Steve Twiss Cc: LINUX-KERNEL , Support Opensource Subject: Re: [PATCH V1] mfd: da9062: use core helper regmap_reg_range macros Message-ID: <20180328152955.qrbga5fgo3ls6eje@dell> References: <20180328110612.1FCAD3FACC@swsrvapps-01.diasemi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180328110612.1FCAD3FACC@swsrvapps-01.diasemi.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 28 Mar 2018, Steve Twiss wrote: > From: Steve Twiss > > Replace multi-line entries in the regmap_range arrays with single > line macros: regmap_reg_range(). This will leave the static structure > array entries for regmap_range unaltered. It will significantly reduce > the line count in the DA9062/61 core file. > > Signed-off-by: Steve Twiss > > --- > This patch applies against linux-next and v4.16-rc7 > > Hi, > > This is a cosmetic tidy up operation. It reduces the line-count in the > file by over 200. > > It will replace regmap_range[] array entries, such as this: > { > .range_min = DA9062AA_DEVICE_ID, > .range_max = DA9062AA_CONFIG_ID, > }, > > with a single line, > regmap_reg_range(DA9062AA_DEVICE_ID, DA9062AA_CONFIG_ID), > > Regards, > Steve Twiss, Dialog Semiconductor > > > drivers/mfd/da9062-core.c | 462 ++++++++++++---------------------------------- > 1 file changed, 114 insertions(+), 348 deletions(-) Nice! Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog