Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2965479ybl; Fri, 20 Dec 2019 01:28:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyhhPyny4R0/IIjutMadzhSqCj5L9e5QZJ9MzZEG8jTO+6F1c+uhg4B1FnDc/oPIHshhkGJ X-Received: by 2002:a9d:774e:: with SMTP id t14mr13724407otl.358.1576834109179; Fri, 20 Dec 2019 01:28:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576834109; cv=none; d=google.com; s=arc-20160816; b=lm21MEdLYCKMiEmznHp9BEL8ZgGtLkQY999e1IS3P3ZBvscs/CxClyDoUprw1feuJi t9UwasqxoobNBxAKhNE5FWdllC/aMX+DVGGHgagh1KsRtEB21GXdDdex/tiVSz6ypmis 1JEyfQWdEIfdMWYYGrkqbqYi+uF1vhfdW/c1NgMQTQwQMNRLzJQLgWk4Fk2QVu9Zgivj AXr1KhyHeBQbyeOJCVGcY6tweFA+w/YLCtr0nx/wdsk2etP2U8M+6YPOt2qXl9tW7TgT WNxd7CtjtHdl3lm35vmn3+zaCpAnE8qYAi/XbFeIn3W7jGp+VtJS1bbIFRUYVRuRWkrD tIOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=lRpjriDEf4WhkMeZP0yFN0tR+UFxcDI9jJhuTZIRsbE=; b=Sp8C76BeBFLYSdKVCF61oWSscG4z7m/f/RStrITSSBav4CbMLiYlPH/Bq4kwmaXmVN d8Coe6/f0eRnPUMBrhkzinM089QKeMfjy8PxUj0cQ/yvHfoSAncHPTGiROKTWUAZWGqK XjeSm26Ab2xQ83dB/WPvY48BTi6LgWYVeL+lCssCQ4N6q+uKA/K9kR7SkNbRolNJxMJM OevLLIMTLiNCHggir6fh0Fkwe6CdXW4AcUppycW/WofTKGMo2kSVT0pdkJWvNdxWI2HH aMiXw6SDM7rMndKSHEkiK6odDUfV3vYJ3e1qt0E+kPERcUvT2z5r376fVKQCzeX7AImd JHMA== 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 p21si2028356otr.58.2019.12.20.01.28.16; Fri, 20 Dec 2019 01:28:29 -0800 (PST) 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 S1727381AbfLTJ1J (ORCPT + 99 others); Fri, 20 Dec 2019 04:27:09 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:50862 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727167AbfLTJ1J (ORCPT ); Fri, 20 Dec 2019 04:27:09 -0500 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 251A4338C9E44F655816; Fri, 20 Dec 2019 17:27:07 +0800 (CST) Received: from euler.huawei.com (10.175.104.193) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.439.0; Fri, 20 Dec 2019 17:27:00 +0800 From: Chen Wandun To: , , , CC: Subject: [PATCH next] power: suppy: ucs1002: Make the symbol 'ucs1002_regulator_enable' static Date: Fri, 20 Dec 2019 17:41:44 +0800 Message-ID: <20191220094144.41142-1-chenwandun@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.104.193] 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 sparse warning: drivers/power/supply/ucs1002_power.c:492:5: warning: symbol 'ucs1002_regulator_enable' was not declared. Should it be static? Fixes: a3d70dacc727 ("power: suppy: ucs1002: disable power when maxcurrent is 0") Signed-off-by: Chen Wandun --- drivers/power/supply/ucs1002_power.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/ucs1002_power.c b/drivers/power/supply/ucs1002_power.c index 0ca80d00b80a..cdb9a23d825f 100644 --- a/drivers/power/supply/ucs1002_power.c +++ b/drivers/power/supply/ucs1002_power.c @@ -489,7 +489,7 @@ static irqreturn_t ucs1002_alert_irq(int irq, void *data) return IRQ_HANDLED; } -int ucs1002_regulator_enable(struct regulator_dev *rdev) +static int ucs1002_regulator_enable(struct regulator_dev *rdev) { struct ucs1002_info *info = rdev_get_drvdata(rdev); -- 2.17.1