Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8420746ybi; Tue, 23 Jul 2019 08:15:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQe57u1q9EzeeAKe8EDMuXlchDFFhOr2HvOR5OIc5d52C73cvj2JQvNlma1mBE8vOlHju7 X-Received: by 2002:a17:902:ba8e:: with SMTP id k14mr80923968pls.256.1563894918076; Tue, 23 Jul 2019 08:15:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563894918; cv=none; d=google.com; s=arc-20160816; b=03GnFazXRgwU+CO8zt/MMB0jyorqk4RKALxVy97InT9Xm6QYqZLfZr2Usnz2mTwCJt Lb4LmPXepyCvyrAm27VLpmuj17LoONsuqs17DSNM/e6OjGwQkhxmOzzI6PV6Y4st9JB4 RQwW9MUL84/TEAJQ/JHr1rQcVITM1dsV8HNz79Qi2pQkTvkKpRK3FV9P7uFuBXcQxIMH 1xgZkrx3ArZTcsTBRphO4hVSoFShCgh8f3v1wET08/X0Njc3iJ1s7Z2in+WZhqSAPB9H ah4XJttNKHMMCznzQ+dRuGKZTBXKtL2NhjO7yJp/ft5b9WQhRD+TvAZkIhNUDvSYlzaF KOWw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=AKxPpMAXwIcIBJsSDUaSrH2KFjcTDebR2UQK62XeNTI=; b=hVnNFqlPhB9giPtdLHrCtByYBFJolwi3DmnlW910bwFnXhiNO8EItsPuxv2mWFUDOR g3FrNAIZc5fhcaXDs/3CZwilZGL+3Vqu7/wJs/unVqPyN8563tK9s0E1e7UMeNmqs+5t 2g0k+9IocrYL6U2e5JA/+j250y/ePW9FCgMSTGB5udhqxZ55vraGM/faSuL1yVlaH2OY wgiUCzgI3DVUVk48t3qFfv7hhqRnGkNZijsr+gVrM5FDXI+S5Mh9t0zld5pxNP+l//L2 12nQQmJ7XVA9rRB17z0PHYkZg/doLfJ0QrYNhvpL5P+O6mLN7DbMwnc8EaBoHLj8BIfy 1adQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b=ffqKtykH; 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 n19si11440119pgh.219.2019.07.23.08.15.02; Tue, 23 Jul 2019 08:15:18 -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=@st.com header.s=STMicroelectronics header.b=ffqKtykH; 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 S1729256AbfGWIIo (ORCPT + 99 others); Tue, 23 Jul 2019 04:08:44 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:3080 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727375AbfGWIIo (ORCPT ); Tue, 23 Jul 2019 04:08:44 -0400 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 x6N87WFN014631; Tue, 23 Jul 2019 10:08:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=STMicroelectronics; bh=AKxPpMAXwIcIBJsSDUaSrH2KFjcTDebR2UQK62XeNTI=; b=ffqKtykHafNMPh5TWxQPVQuWC2I7ICVHmjwFXjHSX9qqaCMK+q/4ZW5Lk3FR6prWaaox 8/CVaCA3yQLnUt9KM/XEw2BZFNRyEUvaCbDVgU66erqmJTiKUd2mwPU0bi9rDWVk9tzv NfYT6vTWIWqB88RB/jvKdT0geA0dInDvxjMC8W7H9wXxa62vGaU9qDxfGSoRPKR8sZYW xa8rIBqhlrABX4idNe6Yq3WTuKgm8MWhO9cjU/iLS5GGPFEbVeeg7QtcFIxmil6aaj0O BE3+Eq3BWGsalZvNenPxF0GyaY2Wx63Id0Zp9Q9ZlIHsCjRNqDd1+wGIgakB6xqgGcLl SQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2tur39ge38-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 23 Jul 2019 10:08:38 +0200 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 2E3F93A; Tue, 23 Jul 2019 08:08:37 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas21.st.com [10.75.90.44]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 066C82514; Tue, 23 Jul 2019 08:08:37 +0000 (GMT) Received: from SAFEX1HUBCAS24.st.com (10.75.90.95) by SAFEX1HUBCAS21.st.com (10.75.90.44) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 23 Jul 2019 10:08:37 +0200 Received: from [10.48.0.167] (10.48.0.167) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 23 Jul 2019 10:08:36 +0200 Subject: Re: [PATCH] regulator: stm32-booster: Remove .min_uV and .list_voltage for fixed regulator To: Axel Lin , Mark Brown CC: Liam Girdwood , References: <20190723014102.25103-1-axel.lin@ingics.com> From: Fabrice Gasnier Message-ID: Date: Tue, 23 Jul 2019 10:07:30 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190723014102.25103-1-axel.lin@ingics.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.0.167] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-23_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/23/19 3:41 AM, Axel Lin wrote: > Setting .n_voltages = 1 and .fixed_uV is enough for fixed regulator, > remove the redundant .min_uV and .list_voltage settings. > > Signed-off-by: Axel Lin Hi Axel, Acked-by: Fabrice Gasnier Thanks, Fabrice > --- > drivers/regulator/stm32-booster.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/regulator/stm32-booster.c b/drivers/regulator/stm32-booster.c > index 2a897666c650..03f162ffd144 100644 > --- a/drivers/regulator/stm32-booster.c > +++ b/drivers/regulator/stm32-booster.c > @@ -20,7 +20,6 @@ > #define STM32MP1_SYSCFG_EN_BOOSTER_MASK BIT(8) > > static const struct regulator_ops stm32h7_booster_ops = { > - .list_voltage = regulator_list_voltage_linear, > .enable = regulator_enable_regmap, > .disable = regulator_disable_regmap, > .is_enabled = regulator_is_enabled_regmap, > @@ -31,7 +30,6 @@ static const struct regulator_desc stm32h7_booster_desc = { > .supply_name = "vdda", > .n_voltages = 1, > .type = REGULATOR_VOLTAGE, > - .min_uV = 3300000, > .fixed_uV = 3300000, > .ramp_delay = 66000, /* up to 50us to stabilize */ > .ops = &stm32h7_booster_ops, > @@ -53,7 +51,6 @@ static int stm32mp1_booster_disable(struct regulator_dev *rdev) > } > > static const struct regulator_ops stm32mp1_booster_ops = { > - .list_voltage = regulator_list_voltage_linear, > .enable = stm32mp1_booster_enable, > .disable = stm32mp1_booster_disable, > .is_enabled = regulator_is_enabled_regmap, > @@ -64,7 +61,6 @@ static const struct regulator_desc stm32mp1_booster_desc = { > .supply_name = "vdda", > .n_voltages = 1, > .type = REGULATOR_VOLTAGE, > - .min_uV = 3300000, > .fixed_uV = 3300000, > .ramp_delay = 66000, > .ops = &stm32mp1_booster_ops, >