Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2669346pxj; Mon, 17 May 2021 07:09:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8khZ+xwvOg3tEXBM4exRVExXRWov/c1pmZYaCnjCSdTSJuyArFK/ip0XpPSNQ1y+5CdjI X-Received: by 2002:a92:d290:: with SMTP id p16mr15731275ilp.80.1621260556056; Mon, 17 May 2021 07:09:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621260556; cv=none; d=google.com; s=arc-20160816; b=lyFqBYfMt1QhGKh+ROE9Fiwrf0RJ8CC6PSLjQhLuJSCPK/GRXvpkSoypL5U1+wIfqj P6VcKWalkJ+6vaI4NNXHYFqXD1Ww/roLj1Ms9lCOhvdvfeGC1KyS+meqG0ZZWIOuxD9U vR7SWSb1mMtYDV2W9bEC7aXP4Rno/hBeQ/nqyx6gCsQLzyJV3c99sKEqbpUhw7BlY8UC sVwTk3BPRlcRQ2iCZ3dJwQajIh1vEm6xlr4OQ5i+cbAB8/JiT3/kRj0TJiJYThj+oP9j qCD0kpub8ZV/WOzm2HMUDLbJkLZkioxKevqyVFt2GfSa2CL82KBm4QNIJ0WcMhQj731u Jpvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=yTBxlhVVQ6O5eAhomhBBjHn+XCVqzUbosulYbl171R0=; b=Ec/wBe4nPzUbBcRFFzWC+lhvueoDGpUoAECAupAOwf1TKWG2cwH8YG6leF8T+zZPwh AnZjYRs/1rMG7qJQF5vn6rkfTppJzzCE3WFrFdp8b31XT0V1CUIOcVd0BybHHVtDpnZ6 V8vxqC9wJpwNlDS0DOwUEOcNsrtWHoJw9Jec+2DtJ5R4IdW+50TwuPjaxEuHdaaigzoW lCnCdhzX7rNpjBXL13gTcMZR5vT4uTjKPQA/vK3OyumHH0prjLbb+iJL46I4NULkL1lr BFEEXtHhRqdczZHE4ArozU1K4JLRXLgZiRRpPWwbz/YXvukMuWQNU30rT/AY5tXzcXv9 5aMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=qhcfziig; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u5si18482853jat.11.2021.05.17.07.09.02; Mon, 17 May 2021 07:09:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=qhcfziig; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236568AbhEQKyw (ORCPT + 99 others); Mon, 17 May 2021 06:54:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236489AbhEQKyu (ORCPT ); Mon, 17 May 2021 06:54:50 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2FD8C061573 for ; Mon, 17 May 2021 03:53:34 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id e19so4677529pfv.3 for ; Mon, 17 May 2021 03:53:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yTBxlhVVQ6O5eAhomhBBjHn+XCVqzUbosulYbl171R0=; b=qhcfziigPT7XIWX42Rcy+Q1CvCnFV3sLU7zTexFQtkn5WhttcU6tdaSbKFLWWqGrWu mta9om4bcUNLul/CF0hkCILZNz5gIm6f/f9CD7pzc76Qq8luDc/6uk/i6a6dn2UXJqkO CFvwqzPxXzdx4Qe1KRYtntDflt2Upab2T/sZNBHEMYuq7N7lFYpxAgVnPt/FAjWkM5+1 1tOY/t2hPbG1s0Fr3X10gwixFgyei/64nHFJEi3F2riiGhAY8VdjoSt6RF/iQ9HPyUPo cBjRRzLjanXOXv2g3Nrq2SsbtHvkhGcApSCh8tL8GPUHngcCROEVX7iHYZoeXV3CS3kD OENw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yTBxlhVVQ6O5eAhomhBBjHn+XCVqzUbosulYbl171R0=; b=lfGiFfBwbrS8MrIGYqkz33FmDDAi2JVcIcjBdBkkkqoqD9ho7EQc6Xqc/rA00cYPjr 3U7zo0y8dJnSlCU2YUNAai/3xOqklzD0hGeuQWxJYfniRnVxcHfVsEab/uIywycAg8v+ bU27VGd4WmmMK1HwZbxNLiM/9FEN7pKSoEKgWUx6iLlAA42iSdyToB6txUC2cCP15sDS 9eL/Q9QhE0p2FOmr/gQpQ9DIDhTIXcAc/IcQJ2LsXiH5TmgjaIjEVooju8d5wy+LIYCA hdVMx0ORGe+67iaQKX5+zJaM9OTbbmm3EVBUAx6VBmZT8nvOqauBMDgQt8dVPOuN2nSO jNJw== X-Gm-Message-State: AOAM531v9ReW3sLMM7S33qz83mRA1T5NNqtSbvnp0h32oCbO3YktCRVC JTzEnVBcDj/KXdAJfDEXGPLleg== X-Received: by 2002:a65:4689:: with SMTP id h9mr23537713pgr.347.1621248814185; Mon, 17 May 2021 03:53:34 -0700 (PDT) Received: from localhost.localdomain (122-117-179-2.HINET-IP.hinet.net. [122.117.179.2]) by smtp.gmail.com with ESMTPSA id 187sm9511700pff.139.2021.05.17.03.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 May 2021 03:53:33 -0700 (PDT) From: Axel Lin To: Mark Brown Cc: Christoph Fritz , Liam Girdwood , linux-kernel@vger.kernel.org, Axel Lin Subject: [PATCH v2 1/2] regulator: fan53880: Fix missing n_voltages setting Date: Mon, 17 May 2021 18:53:24 +0800 Message-Id: <20210517105325.1227393-1-axel.lin@ingics.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes: e6dea51e2d41 ("regulator: fan53880: Add initial support") Signed-off-by: Axel Lin --- v2: address Christoph' comment drivers/regulator/fan53880.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/regulator/fan53880.c b/drivers/regulator/fan53880.c index e83eb4fb1876..1684faf82ed2 100644 --- a/drivers/regulator/fan53880.c +++ b/drivers/regulator/fan53880.c @@ -51,6 +51,7 @@ static const struct regulator_ops fan53880_ops = { REGULATOR_LINEAR_RANGE(800000, 0xf, 0x73, 25000), \ }, \ .n_linear_ranges = 2, \ + .n_voltages = 0x74, \ .vsel_reg = FAN53880_LDO ## _num ## VOUT, \ .vsel_mask = 0x7f, \ .enable_reg = FAN53880_ENABLE, \ @@ -76,6 +77,7 @@ static const struct regulator_desc fan53880_regulators[] = { REGULATOR_LINEAR_RANGE(600000, 0x1f, 0xf7, 12500), }, .n_linear_ranges = 2, + .n_voltages = 0xf8, .vsel_reg = FAN53880_BUCKVOUT, .vsel_mask = 0x7f, .enable_reg = FAN53880_ENABLE, @@ -95,6 +97,7 @@ static const struct regulator_desc fan53880_regulators[] = { REGULATOR_LINEAR_RANGE(3000000, 0x4, 0x70, 25000), }, .n_linear_ranges = 2, + .n_voltages = 0x71, .vsel_reg = FAN53880_BOOSTVOUT, .vsel_mask = 0x7f, .enable_reg = FAN53880_ENABLE_BOOST, -- 2.25.1