Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1560991ybb; Thu, 9 Apr 2020 04:44:33 -0700 (PDT) X-Google-Smtp-Source: APiQypKl4SoKTr+rFsEgQXh4Mmiv+s4zkOT9Y2GclsbcvwnfQLfzmola64LLxKQxCw/6JZvjXoVq X-Received: by 2002:ac8:3707:: with SMTP id o7mr11884613qtb.172.1586432673320; Thu, 09 Apr 2020 04:44:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586432673; cv=none; d=google.com; s=arc-20160816; b=nrSqf7eAe8pUcWjGpmG1ZkvRxFLEhPSWcH+dky5dtTnqT+GEFngQslRQw2wRLsehZf KysCQlIdana5HEH4Bg3Ijp3SYNpQEMl2FYuJnsrjDZUtZCDTZy88ekDhlEHABaXq1/aR FRuss9zIf1v1N4W6N0BYUb/BlKVAERFSDLHZ91r8OD2sAJHArQk/mPmqfSfIr83uGX+4 b+pfWNY9+o5FPu89L3g+Eqy93gJexpvrEP8f+jCFGRIPsalc7luF4i7Xp4KZ4knUNOj3 OLy2HL1Uet5aqL3o+PNK/oISSiGrR6v+PLKTZMwEoTyaYlHhCSY+yDXEmUNrmZtVgcao 7HgA== 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=vsb9bTMZa1Wa+j6UXcWr7QphDupzUUX9SzCJLOz41jw=; b=Xzg0l9IxU90c+fvpSXnXWsa1BcnWFE+xd8Vf6cE7O6kn/z/BqQ18a442mrM6WrRwE6 GWW5hYHUqMMdpuHjByHewTuSGNlmZNaFN1iSfoWMRJ2I5KjVuWpraLuc3ERc/jSr8005 ieodtb6+T/QFe9sQUDUjJ50F9eLDPdo4HGX2CTDaff/E5qkSpxUXw6LeVnRvqjuFoWRF yUcx5Ei3C9zVNCl5TU83yEgBF8YYqf2Ny7zlst1eYDKNApMp+0dY4P/enXSHS2YeNW2i QAfg1QtufhNIcBT8f0JS0mRESxeZzCLRw0ch6EKhyuJF7xWMZZs+qjptMLjOqhruSILz ApCQ== 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 1si5221105qvc.166.2020.04.09.04.44.17; Thu, 09 Apr 2020 04:44:33 -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 S1726681AbgDILm6 (ORCPT + 99 others); Thu, 9 Apr 2020 07:42:58 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:12707 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726521AbgDILmz (ORCPT ); Thu, 9 Apr 2020 07:42:55 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 84429AF7EE05142D64A7; Thu, 9 Apr 2020 19:42:02 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 19:41:53 +0800 From: Jason Yan To: , , , , , CC: Jason Yan Subject: [PATCH] regulator: qcom_rpm: remove defined but not used 'pm8921_ftsmps' Date: Thu, 9 Apr 2020 19:40:26 +0800 Message-ID: <20200409114026.38383-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/qcom_rpm-regulator.c:607:34: warning: ‘pm8921_ftsmps’ defined but not used [-Wunused-const-variable=] static const struct qcom_rpm_reg pm8921_ftsmps = { ^~~~~~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/regulator/qcom_rpm-regulator.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/regulator/qcom_rpm-regulator.c b/drivers/regulator/qcom_rpm-regulator.c index 7fc97f23fcf4..1ee8ec686ed3 100644 --- a/drivers/regulator/qcom_rpm-regulator.c +++ b/drivers/regulator/qcom_rpm-regulator.c @@ -604,16 +604,6 @@ static const struct qcom_rpm_reg pm8921_smps = { .supports_force_mode_bypass = false, }; -static const struct qcom_rpm_reg pm8921_ftsmps = { - .desc.linear_ranges = ftsmps_ranges, - .desc.n_linear_ranges = ARRAY_SIZE(ftsmps_ranges), - .desc.n_voltages = 101, - .desc.ops = &uV_ops, - .parts = &rpm8960_smps_parts, - .supports_force_mode_auto = true, - .supports_force_mode_bypass = false, -}; - static const struct qcom_rpm_reg pm8921_ncp = { .desc.linear_ranges = ncp_ranges, .desc.n_linear_ranges = ARRAY_SIZE(ncp_ranges), -- 2.17.2