Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2375306pxj; Sat, 5 Jun 2021 23:56:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3a8z9FMqISRvfHozjM9Obf793pMpCtGn5W1PPb4OFLg3LH9N7KbV2qVXxI61WZapLf5tu X-Received: by 2002:a17:906:d92:: with SMTP id m18mr10324109eji.27.1622962578242; Sat, 05 Jun 2021 23:56:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622962578; cv=none; d=google.com; s=arc-20160816; b=NHTbMT0wqbP9Y74L525w+IvP7LZhu4Z8worEdREpGfSPxPimrw52olm5NhbZcw1Cbl STy4EWTGB/VmZp5e8YPOlRQJBvF1l0bvMPqX2rcgzA1ElxolxtKJ/vsuo9OfJf1fH5R8 zu9c5ONn0HEPh+skuR1hMFj7aCcHWftXy5ZfxVhpjYqm4YebWQfVAa5TUSyzOdjit84O E4xpJR4VkoQK6XLV78XCP7oR08r/HKymxxCI4VUh3/FMRiqADyYXPxpjeTQMeLtSS0VG Xm1e6PcoivpGGd8N8P/y2/2Yic/clnpwZey9+sxUn+nxggsGqgFdLliDbIfNoJhVa9Cq bGMg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lO02nVIA4gbpKup5dGYZ5/40UvIDgXPZESATu/o79d4=; b=KKqz07q2czXVmmV+vXXWaRPeNnHw2zzpHrn0PLQoPpH0rYex7x0ntqI/24EWbHXzu9 EfbA5nXPsNTmlPwsAfVBSwb1iiySKwGvl1z05jtFvtStHZdgVUSHKBvei811vbtFRuGH 5e9huKV85Q8OmWS3IOVV1zEqTRb1/WJLi34GAICF7JMa2dQ3b7U+It7Zgr1j01aECAsW U5jn+ZZSFX6lG8PRv0/NOEYs51cXDdm8zSPnMP3gT0IP1HDsWTauLuoOzUFjQJXjQHke dkngQOlGU84XVQx0Y34AADb9OHyY7LD+R/+TpF9oLYfZTpGZuTu7ALUhWjuW4jVp0CXR eO8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ingics-com.20150623.gappssmtp.com header.s=20150623 header.b=krddmKI6; 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 hh4si10158638ejb.79.2021.06.05.23.55.55; Sat, 05 Jun 2021 23:56:18 -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=krddmKI6; 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 S230173AbhFFGyH (ORCPT + 99 others); Sun, 6 Jun 2021 02:54:07 -0400 Received: from mail-pf1-f174.google.com ([209.85.210.174]:37863 "EHLO mail-pf1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230088AbhFFGyH (ORCPT ); Sun, 6 Jun 2021 02:54:07 -0400 Received: by mail-pf1-f174.google.com with SMTP id y15so10701262pfl.4 for ; Sat, 05 Jun 2021 23:52:09 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=lO02nVIA4gbpKup5dGYZ5/40UvIDgXPZESATu/o79d4=; b=krddmKI6j+IRGKHHDhtTY2bb3kzGqWkiZVFE+koAIwaF/J5EaGRzVfUBytIFQzyxzc fybATCIgUtSC4DF+MUNRts+Q+Vah1AJYgVF39Il9MWEEgOuH3WSFLqj2LZ+vzr9OdO6I ugCvXTQAvRqL0XdIA893mDK81D6AaeB3OKPG58arqzXp+6JUGJbV20+N0dhzbOrLyl2C y10BAmMSVTcYMPmYMG9Ezwfv95J+VrGNg2lt+EWF5VcQi7InWVM4Eui8OMno4Hi8TpRw 9dvPjKv4zlGJ26m/1CX4MOspvHLueSwaurng0O0RGeIFqlPoJa382Ddt8U4wttwm9Xa0 Fs+g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=lO02nVIA4gbpKup5dGYZ5/40UvIDgXPZESATu/o79d4=; b=kUOURt6bDC3EHA1A47J0fkYBNfGZkJnbs2c+3WZB5GqwKxcWa39QE1jRFKEuRNLpdA HmBngqQByPpcjq65zBjo+WRW/cJG1f4RPhWlLCBVPw6+fsWBmdDqty8gHnUMjE/J9H1L FqdUUqPInBGvtEh1LR3MdPDLJhJoKh26VYiTPfiH/u4BTsAMY2rXfTT/2/mhftLL9UjZ h9cwnO6K91Hd1kknNQQjfDbz4/Phg5DD00btv8OVf3c5X2Nt5RYdBmQZqEtDxkqqyZXi Na4okPfssMV5BDIqYaMpBwUjBSSufMn0e58aTovW6gOAunEr5dp0lG48EC7IaEED7oCv Y8rw== X-Gm-Message-State: AOAM531s2Y72aaAw77rdTFak02bW7tZOyJENo/5WbOfHWv05pMPU7U8+ Nx5kX8Hz9RglWGThY/FR7yZaHw== X-Received: by 2002:a63:c047:: with SMTP id z7mr12702080pgi.186.1622962269009; Sat, 05 Jun 2021 23:51:09 -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 u21sm5324851pfh.163.2021.06.05.23.51.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Jun 2021 23:51:08 -0700 (PDT) From: Axel Lin To: Mark Brown Cc: Hsin-Hsiung Wang , Wen Su , Liam Girdwood , linux-kernel@vger.kernel.org, Axel Lin Subject: [PATCH 2/3] regulator: mt6359: Use unsigned int for volt_tables Date: Sun, 6 Jun 2021 14:50:51 +0800 Message-Id: <20210606065052.1417111-2-axel.lin@ingics.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210606065052.1417111-1-axel.lin@ingics.com> References: <20210606065052.1417111-1-axel.lin@ingics.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The regulator_desc expects "const unsigned int *volt_table", thus use unsigned int instead of u32. Signed-off-by: Axel Lin --- drivers/regulator/mt6359-regulator.c | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/regulator/mt6359-regulator.c b/drivers/regulator/mt6359-regulator.c index 4f517c9fd6c4..8003c363cdfd 100644 --- a/drivers/regulator/mt6359-regulator.c +++ b/drivers/regulator/mt6359-regulator.c @@ -203,77 +203,77 @@ static const struct linear_range mt_volt_range8[] = { REGULATOR_LINEAR_RANGE(506250, 0, 0x7f, 6250), }; -static const u32 vsim1_voltages[] = { +static const unsigned int vsim1_voltages[] = { 0, 0, 0, 1700000, 1800000, 0, 0, 0, 2700000, 0, 0, 3000000, 3100000, }; -static const u32 vibr_voltages[] = { +static const unsigned int vibr_voltages[] = { 1200000, 1300000, 1500000, 0, 1800000, 2000000, 0, 0, 2700000, 2800000, 0, 3000000, 0, 3300000, }; -static const u32 vrf12_voltages[] = { +static const unsigned int vrf12_voltages[] = { 0, 0, 1100000, 1200000, 1300000, }; -static const u32 volt18_voltages[] = { +static const unsigned int volt18_voltages[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1700000, 1800000, 1900000, }; -static const u32 vcn13_voltages[] = { +static const unsigned int vcn13_voltages[] = { 900000, 1000000, 0, 1200000, 1300000, }; -static const u32 vcn33_voltages[] = { +static const unsigned int vcn33_voltages[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 2800000, 0, 0, 0, 3300000, 3400000, 3500000, }; -static const u32 vefuse_voltages[] = { +static const unsigned int vefuse_voltages[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1700000, 1800000, 1900000, 2000000, }; -static const u32 vxo22_voltages[] = { +static const unsigned int vxo22_voltages[] = { 1800000, 0, 0, 0, 2200000, }; -static const u32 vrfck_voltages[] = { +static const unsigned int vrfck_voltages[] = { 0, 0, 1500000, 0, 0, 0, 0, 1600000, 0, 0, 0, 0, 1700000, }; -static const u32 vrfck_voltages_1[] = { +static const unsigned int vrfck_voltages_1[] = { 1240000, 1600000, }; -static const u32 vio28_voltages[] = { +static const unsigned int vio28_voltages[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 2800000, 2900000, 3000000, 3100000, 3300000, }; -static const u32 vemc_voltages[] = { +static const unsigned int vemc_voltages[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2900000, 3000000, 0, 3300000, }; -static const u32 vemc_voltages_1[] = { +static const unsigned int vemc_voltages_1[] = { 0, 0, 0, 0, 0, 0, 0, 0, 2500000, 2800000, 2900000, 3000000, 3100000, 3300000, }; -static const u32 va12_voltages[] = { +static const unsigned int va12_voltages[] = { 0, 0, 0, 0, 0, 0, 1200000, 1300000, }; -static const u32 va09_voltages[] = { +static const unsigned int va09_voltages[] = { 0, 0, 800000, 900000, 0, 0, 1200000, }; -static const u32 vrf18_voltages[] = { +static const unsigned int vrf18_voltages[] = { 0, 0, 0, 0, 0, 1700000, 1800000, 1810000, }; -static const u32 vbbck_voltages[] = { +static const unsigned int vbbck_voltages[] = { 0, 0, 0, 0, 1100000, 0, 0, 0, 1150000, 0, 0, 0, 1200000, }; -static const u32 vsim2_voltages[] = { +static const unsigned int vsim2_voltages[] = { 0, 0, 0, 1700000, 1800000, 0, 0, 0, 2700000, 0, 0, 3000000, 3100000, }; -- 2.25.1