Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3024434rwl; Sun, 9 Apr 2023 06:32:07 -0700 (PDT) X-Google-Smtp-Source: AKy350aVq0X0P02AkK1S2CeazyPGRLWWKQoBlSwXHiuBJvJgSoVYjTPLlTPUaK/Ij5doBbUBD1Wk X-Received: by 2002:a17:906:9155:b0:878:7a0e:5730 with SMTP id y21-20020a170906915500b008787a0e5730mr5334422ejw.56.1681047127543; Sun, 09 Apr 2023 06:32:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681047127; cv=none; d=google.com; s=arc-20160816; b=wHwLlm32CN7nZp/UF8q6WyinIZcB6rfXhvZCURWH2eL4CdbUBa8D3s1zul60XEa4YF DX83SqXdv/+e7WiBvm/B3iFaTZCHyJKw71wiGiWpA5TvLXN29DFvXc84GqbsUc9vY1pE KG2WPiPMXlYmUD+ZtQAZytUavYEJp86ZwjNoSwlXijUXUoPKDId7yfBwINksv0+S1XRe 5UqdxUgb6gaNxQOYlNgVqTPhzix8Nign8xh3H3rbKKj0oWL9+cW6Rn/z5u2GBD4TqGHT GptLMsZdJ5JiwEEff2gmhwNudSAwm6dwASUrID8T4b4tzL3OcB6rO8k8zr+nSQ0WWDqt Vk6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xWwDobpzqGH4vAFVJ50KnVPqjpTUbnMnTFVjovf89kY=; b=1Gd//SlNH+0jHLr1AiLWx2EYHEILT7H2Qc6ZJ5kR/7UwZnAPGY3Dbwy1LlGMyTEoLI XvjV0EKSyo2y9vxvrHNOJrhheLlORp6AbX0RvisEuzPLBwpryyLmwgazfNSPQqianAS7 DPHi2IIOvsQ8t8oFmpOkzxCEZPXeQZlqnQyTcgJwAkniVnF9rb5BmxInS9bH16OsFqQv BmL5nyOKdVVLORQ3s73C2Pe7g2XDRqsgKBPdpWB5pHjil+CRwAR829x4FT/uNfvB1vjZ 4jgUIEDP0IIPLiF8F9O9fmbGnqHTXL7jqRTE8RinRuXmsrekY/cdvq/woR09aDWkWLno evew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jsh5LOSf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j19-20020aa7c413000000b005049c7fff70si1037042edq.316.2023.04.09.06.31.11; Sun, 09 Apr 2023 06:32:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jsh5LOSf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229549AbjDINZL (ORCPT + 99 others); Sun, 9 Apr 2023 09:25:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbjDINZK (ORCPT ); Sun, 9 Apr 2023 09:25:10 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A0AD272D for ; Sun, 9 Apr 2023 06:25:06 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id sh8so6871762ejc.10 for ; Sun, 09 Apr 2023 06:25:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681046704; x=1683638704; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xWwDobpzqGH4vAFVJ50KnVPqjpTUbnMnTFVjovf89kY=; b=jsh5LOSfYt2GhCgO/LMCQGuuUlzqPOvswUhF0nM2Uei1IAbYcFKbOaXYh9j6jW4KZo suaGk7jLlmuemiUgcupslCSEkoHNIXvV0yh8i/Vq3vrVCInTxb9Mye8518VDZDq/ICRp zwCUSrcji2/ySvs8E7ESIfCRK2ARHS4LGQm4MlBgNUmmAHJu6CKOdUDm7Q1+bYemfclM Rjtrw1O8x9A2yr1j0iIOjODuBnS421MCbraqS1O9ukyoLNfTtht8eiXqd/79WWazsDsm UsRPdCcLxc06h/wTEQD07AsC9NKXNy+O+WxI/IYQrivglI5C0YruMuF6Cd3+FNUNsm/q fW9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681046704; x=1683638704; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xWwDobpzqGH4vAFVJ50KnVPqjpTUbnMnTFVjovf89kY=; b=uNajTjzARKWqk/WMbp6MDAquKvMOb7zG+ZOmi6677p1/FTRcASw85mQMGdzfLSDf/B 4Epk24qfwV1Vfos2u6+XuW0vb2DNa8aUwdbxYmcE0TpZreXw3frlxQf1LiX4u6v4BghA 5o2bnM4mqBCULwCN1q5BCOSvmOtcoeGotec4DgFySjg5naicr3w3c8h4zULhW2L3e3Hu u+a/h0IdJ3F/8C+AgPRFLnZeazggtS9+momprtRhRwtS9H4APHpby7cACBU8QXoZyqDP HVna96S9eue01Voc6pkT5SINFP5CVs+dvAhBgGfUKQxuJTAWOJLUkKigdGVNpsRiLLN4 lc3g== X-Gm-Message-State: AAQBX9c8PbXAxfmpmwVN/oP3Ll8jQZTLVirxAB6EntjqlHuxoY2GooFG VRcHpUbyyFjSzGMG2aGiPMc= X-Received: by 2002:a17:907:da7:b0:932:c1e2:9984 with SMTP id go39-20020a1709070da700b00932c1e29984mr6385265ejc.58.1681046704468; Sun, 09 Apr 2023 06:25:04 -0700 (PDT) Received: from [192.168.171.122] ([46.211.100.81]) by smtp.gmail.com with ESMTPSA id hv11-20020a17090760cb00b00946be16f725sm4120609ejc.153.2023.04.09.06.25.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 Apr 2023 06:25:04 -0700 (PDT) Message-ID: Date: Sun, 9 Apr 2023 16:25:02 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH] regulator: sm5703: Fix missing n_voltages for fixed regulators Content-Language: en-US To: Axel Lin , Mark Brown Cc: Liam Girdwood , linux-kernel@vger.kernel.org References: <20230409025529.241699-1-axel.lin@ingics.com> From: Markuss Broks In-Reply-To: <20230409025529.241699-1-axel.lin@ingics.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Looks good. Reviewed-by: Markuss Broks On 4/9/23 05:55, Axel Lin wrote: > Set n_voltages = 1 for fixed regulators. > > Signed-off-by: Axel Lin > --- > drivers/regulator/sm5703-regulator.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/regulator/sm5703-regulator.c b/drivers/regulator/sm5703-regulator.c > index 38e66df378a5..702461cf075e 100644 > --- a/drivers/regulator/sm5703-regulator.c > +++ b/drivers/regulator/sm5703-regulator.c > @@ -42,6 +42,7 @@ static const int sm5703_buck_voltagemap[] = { > .type = REGULATOR_VOLTAGE, \ > .id = SM5703_USBLDO ## _id, \ > .ops = &sm5703_regulator_ops_fixed, \ > + .n_voltages = 1, \ > .fixed_uV = SM5703_USBLDO_MICROVOLT, \ > .enable_reg = SM5703_REG_USBLDO12, \ > .enable_mask = SM5703_REG_EN_USBLDO ##_id, \ > @@ -56,6 +57,7 @@ static const int sm5703_buck_voltagemap[] = { > .type = REGULATOR_VOLTAGE, \ > .id = SM5703_VBUS, \ > .ops = &sm5703_regulator_ops_fixed, \ > + .n_voltages = 1, \ > .fixed_uV = SM5703_VBUS_MICROVOLT, \ > .enable_reg = SM5703_REG_CNTL, \ > .enable_mask = SM5703_OPERATION_MODE_MASK, \