Received: by 10.192.165.148 with SMTP id m20csp3228769imm; Mon, 23 Apr 2018 02:58:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx48zWtIlAxfLYpqeUO9yLkgIOO8UtBSU3cicIqXFuxK9HtHOrdk5mP9rqFIVeUd//H32BO+n X-Received: by 10.101.69.194 with SMTP id m2mr16543319pgr.433.1524477514122; Mon, 23 Apr 2018 02:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524477514; cv=none; d=google.com; s=arc-20160816; b=nlguHSucVteMwpykhnIuE6jJPV3g7rlJWFIzblEhSrLPqsIqTOvonU5uzPOzzujL8A 5Zn/xYMiGpdiEqV460TsEE4JPdu13Aox2kCBHSIGliUl4LNF4bC2yH11/52CemQVWY8C cUDjcPDHGuYPx23iAbm20vnzjaF2BrOOgWUABFZQksoQOnDQUmnRhbKyE11VMoyqB141 yLevnEL3NnLH/IbuV84hpKSbKpr0QbXXu59JxKw9wGtQLR0MzmHc+REwBXRm6xz3oEIp rU1HRFur6bIFpsLRser2chCWIIMisUz7XkLPsVBnHvvhDSbKzaf7Z2M6bFBcVznLfdb7 jyPQ== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=DQZ9TbHX+HoGER6/WYirDGuZtTxj88KVgWmlq1BDBmw=; b=D/vYDvmBsl7/zRzQlhJXL1yHju/O3F1/HkdrVLOOushcUuFZpd7igpB6DNR0r16GuE xRwIguIw3zKgM+EsCB8VCSq8QrkW2TZCAbHDzo5hKcAc1O8oAJO8FUhGtgPvgIx83cnr 6WVNbrfmJWd/8922M1mxwTFF5Sm727pwKPdtyxruyD6yasOmrXT57o1yhufpd/uFVHSC OP8seUUT0/tqpAM1Vqap2+E19Bx6S5BYzki5Vo+HYCZ/OGMOnwcy400WjIR3RUjKB/1M lPFhRrId8lH59BqR4xtCRlvD/I4hth4sO5X7NJExVf0/+e1KTlrR/MYghY4nacodBFue gGPA== 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 w67si9665983pgb.447.2018.04.23.02.58.20; Mon, 23 Apr 2018 02:58:34 -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 S1754613AbeDWJ5G (ORCPT + 99 others); Mon, 23 Apr 2018 05:57:06 -0400 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:54330 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754456AbeDWJ5F (ORCPT ); Mon, 23 Apr 2018 05:57:05 -0400 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3N9rXUX015263; Mon, 23 Apr 2018 04:57:00 -0500 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail4.cirrus.com ([87.246.98.35]) by mx0b-001ae601.pphosted.com with ESMTP id 2hg1qmac2j-7; Mon, 23 Apr 2018 04:56:59 -0500 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail4.cirrus.com (Postfix) with ESMTP id 4D6AD611F7A5; Mon, 23 Apr 2018 03:55:45 -0500 (CDT) Received: from imbe.wolfsonmicro.main (198.61.95.81) by EX17.ad.cirrus.com (172.20.9.81) with Microsoft SMTP Server id 14.3.301.0; Mon, 23 Apr 2018 09:53:53 +0100 Received: from localhost.localdomain (algalon.ad.cirrus.com [198.90.251.122]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id w3N8rrHr018005; Mon, 23 Apr 2018 09:53:53 +0100 Date: Mon, 23 Apr 2018 09:53:53 +0100 From: Charles Keepax To: Linus Walleij CC: Liam Girdwood , Mark Brown , , Subject: Re: [PATCH 13/18 v2] regulator: wm8994: Pass descriptor instead of GPIO number Message-ID: <20180423085353.c567qjqtynamrmlp@localhost.localdomain> References: <20180422230742.3729-1-linus.walleij@linaro.org> <20180422230742.3729-13-linus.walleij@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20180422230742.3729-13-linus.walleij@linaro.org> User-Agent: NeoMutt/20170113 (1.7.2) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=722 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1804230107 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 23, 2018 at 01:07:37AM +0200, Linus Walleij wrote: > Instead of passing a global GPIO number for the enable GPIO, pass > a descriptor looked up from the device tree node or the board file > decriptor table for the regulator. > > There is a single board file passing the GPIOs for LDO1 and LDO2 > through platform data, so augment this to pass descriptors > associated with the i2c device as well. > > The special GPIO enable DT property for the enable GPIO is > nonstandard but this was accomodated in > commit 6a537d48461deacc57c07ed86d9915e5aa4b3539 > "gpio: of: Support regulator nonstandard GPIO properties". > > Cc: patches@opensource.cirrus.com > Cc: Charles Keepax > Acked-by: Lee Jones > Signed-off-by: Linus Walleij > --- > ChangeLog v1->v2: > - Rebase the patch on the other changes. > - Collect Lee's ACK. > --- Acked-by: Charles Keepax Thanks, Charles