Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3363692imj; Tue, 19 Feb 2019 02:06:46 -0800 (PST) X-Google-Smtp-Source: AHgI3Iag6lF7sMgDdgRnxHriRQmwgQDk9yTEf9PFP0wSODifeA83mBxZjziF6Bkvera6qF2NQmUy X-Received: by 2002:a17:902:9a02:: with SMTP id v2mr26949360plp.201.1550570805999; Tue, 19 Feb 2019 02:06:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550570805; cv=none; d=google.com; s=arc-20160816; b=A/gSodfZWHttDOg/aN28QoIWpz+EIiIGqc457jvrAA5MZFd8kDp+Fwpm1x0xMoSMcL YaxhpUgrRd0DLxe+dkGscoGjJH3tUXCPJANWusHIIGp4o3aqE43jwJDBIzAhRNOrz4kX qbsde9IUPYMlDakFCaM2JOuTqbriWxX+t6ulC/7Bk8b5M6E19FyPiLqa6OKNohAQ4ZDG 07EGSwGIvXogr1378OzNyw80a8z5cJzBreW8IoQXwUs15oovCQLX/++8BU7xYX8IHhID EGlu3SxF/kCuWIOEn6Hxewt64IbbQBW5iNir8xfGmNTmruLgShRC5XioyaiydGZK1lsL bh1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=P89+R4OZuxfoxA+0m7cf9pEszdXbH/O201rXvMDqCVQ=; b=z915OBve9WzLxyGHgajQDpg2amJGGeuVehlktSczYHP3vD41fNRjAGk6F28uPpa4cW 1NdXaS0l/BBNOa+EMXFOpNh9Rg3IsD+s+zvc7wj7A98WNN/ef4CwUQOn9YtGFYFbBsYX WPDagN9FlgCTGPNIpnPdShkFmHskHd4ID6loN9+HII24osYw+TV/iY+snGPbHbY3vu7+ DRcydtABNcHAZFiptK2VtLvyFzF6gCBuqNHJ0TtioWY/nPO4iIgwlluSmXrqx6cR7sKA 64R9rx/m0V4fszOOYk9DKef2SoijaRBqqSbZIqgnJq5JztYp0HrRUwVuGVJfzcYfUtWA tlEA== 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 s22si9685612plr.44.2019.02.19.02.06.30; Tue, 19 Feb 2019 02:06:45 -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; 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 S1727787AbfBSKEl convert rfc822-to-8bit (ORCPT + 99 others); Tue, 19 Feb 2019 05:04:41 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:6003 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727233AbfBSKEk (ORCPT ); Tue, 19 Feb 2019 05:04:40 -0500 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1JA31s8015937; Tue, 19 Feb 2019 11:04:33 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2qpc6x7p42-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 19 Feb 2019 11:04:33 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 04FA63F; Tue, 19 Feb 2019 10:04:33 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id A50D6279E; Tue, 19 Feb 2019 10:04:32 +0000 (GMT) Received: from SFHDAG6NODE2.st.com (10.75.127.17) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 19 Feb 2019 11:04:31 +0100 Received: from SFHDAG6NODE2.st.com ([fe80::a56f:c186:bab7:13d6]) by SFHDAG6NODE2.st.com ([fe80::a56f:c186:bab7:13d6%20]) with mapi id 15.00.1347.000; Tue, 19 Feb 2019 11:04:31 +0100 From: Pascal PAILLET-LME To: "lgirdwood@gmail.com" , "broonie@kernel.org" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "axel.lin@ingics.com" CC: Pascal PAILLET-LME , "benjamin.gaignard@linaro.org" , "linux-stm32@st-md-mailman.stormreply.com" Subject: [PATCH 1/8] regulator: stpmic1: Use regulator mode definition from bindings Thread-Topic: [PATCH 1/8] regulator: stpmic1: Use regulator mode definition from bindings Thread-Index: AQHUyDqCrZe7ek/4FE6ODiyo2yuvVQ== Date: Tue, 19 Feb 2019 10:04:31 +0000 Message-ID: <1550570647-9555-2-git-send-email-p.paillet@st.com> References: <1550570647-9555-1-git-send-email-p.paillet@st.com> In-Reply-To: <1550570647-9555-1-git-send-email-p.paillet@st.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.48] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-19_06:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Get the regulator mode definition from the bindings header. Signed-off-by: pascal paillet --- drivers/regulator/stpmic1_regulator.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c index d456fb5..c25f82f 100644 --- a/drivers/regulator/stpmic1_regulator.c +++ b/drivers/regulator/stpmic1_regulator.c @@ -12,6 +12,8 @@ #include #include +#include + /** * stpmic1 regulator description * @desc: regulator framework description @@ -68,9 +70,6 @@ enum { /* Enable time worst case is 5000mV/(2250uV/uS) */ #define PMIC_ENABLE_TIME_US 2200 -#define STPMIC1_BUCK_MODE_NORMAL 0 -#define STPMIC1_BUCK_MODE_LP BUCK_HPLP_ENABLE_MASK - static const struct regulator_linear_range buck1_ranges[] = { REGULATOR_LINEAR_RANGE(600000, 0, 30, 25000), REGULATOR_LINEAR_RANGE(1350000, 31, 63, 0), -- 1.9.1