Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2659909pxj; Mon, 14 Jun 2021 04:16:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJEOXMFzIUxhbZLechUdUR+1etM9orX5QSPmnA6RK0ge/zw98yqZr+Bx+/wArgY65hDcxs X-Received: by 2002:a17:906:5593:: with SMTP id y19mr14310777ejp.195.1623669376686; Mon, 14 Jun 2021 04:16:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623669376; cv=none; d=google.com; s=arc-20160816; b=l4clAChn/Jj7yvQAJ/U8Zv8iVeqLMi0DEfYC/BuPcsddmkA6tjKXBLmKe6qkqBiVH4 UXzIfXbz6uiFJy6RuqxiWI2Db8NPJuR06QrQFvuwoJHbO/H2qEi7xRhSLL1BNLiyE/zq DYu54yamRk1LhP4wv7HgNPoF2XbT7AK5EXyAe5xKVSsPnkYvia1ZJ/Bkmf19Z6lw1IKN x3Wt5c8juucLuQwcY6Bg4yAA3f4fyClgTjfxO3/2uHExAZ7tbRednmeHFqlv7eramqNs yCHWLnBD303P5q1luyZ/i8iqug/JSuOfuW6BUF5mocxJSpXmT+IkymlbAaMyxDLmpwqE J6Nw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0l8xWTFuieAj7Iez80mSfmxnkYrB210ksoQV6Lvfls0=; b=NSfMhgrNcXf7gHjd6DcZqrbv8VBQWexDujHuL8SKDoFqquiOQkEioYdSdEN8T1Zb8g KZqjyNipJ6RvNzyjHQZ+dFd015lSIg+sUSZGvfdydEFREabVyoGr1TYueEMjnr7GAt76 8tw2rt3hrcg9fcyQnh2or8Cq52Ox//V3qlDu74CtTGnAX7XrT1BlaPBDlMHJd9ftXP48 Rs0Z2/VoA3AvatVr/XEb2uorzOBGU+taNBzr2izyNqGZFtvCH2o4d9WKV0PEeHZMrS00 q2eAi5Uw1GIOGfbWiTDc6gGiREsizoJql1lE9YKR73PVyUvmNFEvYBfogfFQNya3SuNP 9vnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KXQsJgxq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si11187279ejo.252.2021.06.14.04.15.53; Mon, 14 Jun 2021 04:16: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=@linuxfoundation.org header.s=korg header.b=KXQsJgxq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233644AbhFNLQv (ORCPT + 99 others); Mon, 14 Jun 2021 07:16:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:39160 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235107AbhFNLEt (ORCPT ); Mon, 14 Jun 2021 07:04:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7C91761400; Mon, 14 Jun 2021 10:44:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623667492; bh=GpfU/dJtA0DE9ufFGk4z6/di0+hAra5dAU9YzJeEG6g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KXQsJgxqwDpE1BH+HE8DyW2eSpCokDWomniwbScUC54ChzV59SbMts3h13rCx1XoT umEoUjiKt4+sq29A5Lcf29iHYxcJ0eAXsGSg8bIx453Zcga9RZjdTeFe7S5l3Q5e9U iYnRh6CGp6dp4QS8rPpo99AFKMYXFv16Epwkz0XU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Axel Lin , Christoph Fritz , Mark Brown Subject: [PATCH 5.10 093/131] regulator: fan53880: Fix missing n_voltages setting Date: Mon, 14 Jun 2021 12:27:34 +0200 Message-Id: <20210614102656.153768326@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210614102652.964395392@linuxfoundation.org> References: <20210614102652.964395392@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Axel Lin commit 34991ee96fd8477479dd15adadceb6b28b30d9b0 upstream. Fixes: e6dea51e2d41 ("regulator: fan53880: Add initial support") Signed-off-by: Axel Lin Acked-by: Christoph Fritz Link: https://lore.kernel.org/r/20210517105325.1227393-1-axel.lin@ingics.com Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- drivers/regulator/fan53880.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/regulator/fan53880.c +++ b/drivers/regulator/fan53880.c @@ -51,6 +51,7 @@ static const struct regulator_ops fan538 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 fan53 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 fan53 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,