Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp404631pxu; Thu, 3 Dec 2020 03:19:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnt7hby+HA1oYfkEIY+SAS3tHG1doOv3S3g/8OhECFmL0fFdEqBUXghT4/vnbPoqJLDGFL X-Received: by 2002:a17:906:5182:: with SMTP id y2mr2054006ejk.471.1606994350919; Thu, 03 Dec 2020 03:19:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606994350; cv=none; d=google.com; s=arc-20160816; b=AXdKHFGMfRukC5+GSxtKa5wNDWSz/37zTL7Ns34lCHQaLREdNFt4+JMEHgqbtARuK2 NVXpc8oKrnGDB8Q7SBhdDHHq2IzmGgYhDqw5rB6MTOfTD46HpZrHUIqsRV0zTTECmwAA iJhrteBIrBapMbt0+KsglH3WmVISzpI7t2pMaA0+Q+Lc5E2xMTy2CY5Lsh+ongQ33bLo p7e9hep04bQUAi55WDg7BPHXIRpyGf/cXRcupkUA6FPH21jJT4MV9QQJdfKfpUMrozzZ b4c2REf4a9rhEvsJt4MW/shtNtEXH0TJ0SWi5D9FLcyiZ7vhor81/zS0kBxQX7banWt6 67KQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=hjXUs9GpqNhMKcBZl+usb9XPlYBqX3aUFXiUViOPEAc=; b=BPw9wheHnW5XrLOij10mUwUMusE5QhQzKnYonffNtKNS9IX+oRJPKQqFEOWHKy3WMi 5fT6lhhwwfUQLF6yoUgRPKZetL+ywO0WaPDYGTL7Vd6g3qQGIzVW83U0cy8OV03VDD5Q DiIUDavhPO/HwKPJhSBqHo+tsFK4/VCs0J9AKiDcYK34j9DozwTMlsABZKMRK88QRPJz VLmVnSTDrLbFQ13TCTb5Zv3un6GhZOc4bwyUIfXLEkRx6bK6WlvGymcR3An9cAHZM1R3 xnWpk09A8SCzJ0oUb3T/SwWaMBGdB8/iuQZ2xJ9KTuF0XFoxrKgkTJKtrAtUke3xiYlq 70+g== ARC-Authentication-Results: i=1; mx.google.com; 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 l8si907965ejp.707.2020.12.03.03.18.46; Thu, 03 Dec 2020 03:19:10 -0800 (PST) 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; 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 S2388650AbgLCLPz (ORCPT + 99 others); Thu, 3 Dec 2020 06:15:55 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:8621 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729194AbgLCLPy (ORCPT ); Thu, 3 Dec 2020 06:15:54 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CmtXJ2smHz15WDR; Thu, 3 Dec 2020 19:14:40 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 3 Dec 2020 19:15:00 +0800 From: Zou Wei To: , , CC: , Zou Wei Subject: [PATCH -next] regulator: da9121: Mark some symbols with static keyword Date: Thu, 3 Dec 2020 19:26:35 +0800 Message-ID: <1606994795-36182-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warnings: drivers/regulator/da9121-regulator.c:55:21: warning: symbol 'da9121_10A_2phase_current' was not declared. Should it be static? drivers/regulator/da9121-regulator.c:63:21: warning: symbol 'da9121_6A_2phase_current' was not declared. Should it be static? drivers/regulator/da9121-regulator.c:71:21: warning: symbol 'da9121_5A_1phase_current' was not declared. Should it be static? drivers/regulator/da9121-regulator.c:79:21: warning: symbol 'da9121_3A_1phase_current' was not declared. Should it be static? drivers/regulator/da9121-regulator.c:151:32: warning: symbol 'status_event_handling' was not declared. Should it be static? Signed-off-by: Zou Wei --- drivers/regulator/da9121-regulator.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/da9121-regulator.c b/drivers/regulator/da9121-regulator.c index 3ead6a1..893512c 100644 --- a/drivers/regulator/da9121-regulator.c +++ b/drivers/regulator/da9121-regulator.c @@ -52,7 +52,7 @@ struct da9121_range { int reg_max; }; -struct da9121_range da9121_10A_2phase_current = { +static struct da9121_range da9121_10A_2phase_current = { .val_min = 7000000, .val_max = 20000000, .val_stp = 1000000, @@ -60,7 +60,7 @@ struct da9121_range da9121_10A_2phase_current = { .reg_max = 14, }; -struct da9121_range da9121_6A_2phase_current = { +static struct da9121_range da9121_6A_2phase_current = { .val_min = 7000000, .val_max = 12000000, .val_stp = 1000000, @@ -68,7 +68,7 @@ struct da9121_range da9121_6A_2phase_current = { .reg_max = 6, }; -struct da9121_range da9121_5A_1phase_current = { +static struct da9121_range da9121_5A_1phase_current = { .val_min = 3500000, .val_max = 10000000, .val_stp = 500000, @@ -76,7 +76,7 @@ struct da9121_range da9121_5A_1phase_current = { .reg_max = 14, }; -struct da9121_range da9121_3A_1phase_current = { +static struct da9121_range da9121_3A_1phase_current = { .val_min = 3500000, .val_max = 6000000, .val_stp = 500000, @@ -148,7 +148,7 @@ struct status_event_data { * * GPIO0/1/2 are not configured for use by default, so should not be seen. */ -const struct status_event_data status_event_handling[] = { +static const struct status_event_data status_event_handling[] = { DA9xxx_STATUS(0, 0, SG, 0, "Handled E_SG\n"), DA9121_STATUS(0, 0, TEMP_CRIT, (REGULATOR_EVENT_OVER_TEMP|REGULATOR_EVENT_DISABLE), NULL), DA9121_STATUS(0, 0, TEMP_WARN, REGULATOR_EVENT_OVER_TEMP, NULL), -- 2.6.2