Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp331417ybb; Fri, 10 Apr 2020 00:36:54 -0700 (PDT) X-Google-Smtp-Source: APiQypLhnhA4DfVXfDHRqF782G7i8v04MByJYN8bFD66YJwCe6A1BcChFDuRuCuT3DuOSsv851i2 X-Received: by 2002:ac8:76c4:: with SMTP id q4mr3233019qtr.375.1586504214294; Fri, 10 Apr 2020 00:36:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586504214; cv=none; d=google.com; s=arc-20160816; b=geeb5FWP49fwq0WjV9AEBg5e19efrEB+jdPG4wzuXwOVlDz7EZy4j6XlzKbBO5csQX LN5Rt0NrlbpkCRdpdVnVQ+qBX67Ol4k6QG+fwKF6elPLGsbZzr+7IQlzbK3ET/Ge39Hs 1x6HkbK/81kkjKFgXR7t9FaE8eDhyM/hYl486gZUpav5K67S/rTCC3otzd0A7YL0lDCS uEZFy43yBI3V6ZCfRhl75AOxbfPCEVB9WoK49veQ0gkhDjLC93PgNL9AlCEJ3a8WTZ5Z fcqDIcWMWnqDssky+FwWkUcon/v8tH6GehKnt9ahGt9WJ3akwQXYcYu1/Zr7FUNvvVh1 Wzrg== 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:mime-version :message-id:date:subject:cc:to:from; bh=gzINyCaCxr3CIxyPu3pXrpSsAIg0AegnCpvRL5qxqRQ=; b=oxnqMjtg5rmtoV7MsZ26EHVEvO2+VbPl16FBKAORkFs1IIP5SI6y0FWMAV4Zc1RpIH F9BL8JrW0aBQfrSvUMcAFe6hQm2FAhLxkJR7h0Go0q+QZvh2UR4mnb2ym3AbWZgIiqw5 y7eiCxlguFVtWIcm8W0iFH8urznqdnD6NBQakjrqMT21CgEKpcEN26fWgchsEgGg93FK /P7mjla0DqPICfhea678/G5DpOvraMIerR3tbFqdISiTUNcK+gJIHlO7HHEXApXa/rRl txlahPyUWbY79DFpIXeQ/CF0ZBXePQT1+is94O6j6HWPnzP7nKqMw1X+fOtXCVC9AZAJ Vt3g== ARC-Authentication-Results: i=1; mx.google.com; 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 22si810044qtp.186.2020.04.10.00.36.38; Fri, 10 Apr 2020 00:36:54 -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; 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 S1726678AbgDJHfT (ORCPT + 99 others); Fri, 10 Apr 2020 03:35:19 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12709 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725897AbgDJHfT (ORCPT ); Fri, 10 Apr 2020 03:35:19 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 842447D1C40349AFE12C; Fri, 10 Apr 2020 15:35:17 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Fri, 10 Apr 2020 15:35:10 +0800 From: Jason Yan To: , , CC: Jason Yan Subject: [PATCH] regulator: ab8500: remove some defined but not used variables Date: Fri, 10 Apr 2020 15:33:43 +0800 Message-ID: <20200410073343.39031-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following gcc warning: drivers/regulator/ab8500.c:195:27: warning: ‘ldo_vdmic_voltages’ defined but not used [-Wunused-const-variable=] static const unsigned int ldo_vdmic_voltages[] = { ^~~~~~~~~~~~~~~~~~ drivers/regulator/ab8500.c:169:27: warning: ‘fixed_3300000_voltage’ defined but not used [-Wunused-const-variable=] static const unsigned int fixed_3300000_voltage[] = { ^~~~~~~~~~~~~~~~~~~~~ drivers/regulator/ab8500.c:142:27: warning: ‘ldo_sdio_voltages’ defined but not used [-Wunused-const-variable=] static const unsigned int ldo_sdio_voltages[] = { ^~~~~~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/regulator/ab8500.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/drivers/regulator/ab8500.c b/drivers/regulator/ab8500.c index f60e1b26c2d2..716ca5bb178e 100644 --- a/drivers/regulator/ab8500.c +++ b/drivers/regulator/ab8500.c @@ -139,17 +139,6 @@ static const unsigned int ldo_vintcore_voltages[] = { 1350000, }; -static const unsigned int ldo_sdio_voltages[] = { - 1160000, - 1050000, - 1100000, - 1500000, - 1800000, - 2200000, - 2910000, - 3050000, -}; - static const unsigned int fixed_1200000_voltage[] = { 1200000, }; @@ -166,10 +155,6 @@ static const unsigned int fixed_2050000_voltage[] = { 2050000, }; -static const unsigned int fixed_3300000_voltage[] = { - 3300000, -}; - static const unsigned int ldo_vana_voltages[] = { 1050000, 1075000, @@ -192,13 +177,6 @@ static const unsigned int ldo_vaudio_voltages[] = { 2600000, /* Duplicated in Vaudio and IsoUicc Control register. */ }; -static const unsigned int ldo_vdmic_voltages[] = { - 1800000, - 1900000, - 2000000, - 2850000, -}; - static DEFINE_MUTEX(shared_mode_mutex); static struct ab8500_shared_mode ldo_anamic1_shared; static struct ab8500_shared_mode ldo_anamic2_shared; -- 2.17.2