From patchwork Wed Jan 3 08:12:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 10141789 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ECA6F6034B for ; Wed, 3 Jan 2018 08:06:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E355128EE2 for ; Wed, 3 Jan 2018 08:06:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7B0728F59; Wed, 3 Jan 2018 08:06:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6850328EE2 for ; Wed, 3 Jan 2018 08:06:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751581AbeACIGd (ORCPT ); Wed, 3 Jan 2018 03:06:33 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:42706 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751357AbeACIGc (ORCPT ); Wed, 3 Jan 2018 03:06:32 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 37F414BC1EBFC; Wed, 3 Jan 2018 16:06:19 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.361.1; Wed, 3 Jan 2018 16:06:14 +0800 From: Wei Yongjun To: Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Lorenzo Bianconi CC: Wei Yongjun , Subject: [PATCH -next] iio: light: st_uvis25: make local symbols static Date: Wed, 3 Jan 2018 08:12:07 +0000 Message-ID: <1514967127-127457-1-git-send-email-weiyongjun1@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fixes the following sparse warning: drivers/iio/light/st_uvis25_i2c.c:22:28: warning: symbol 'st_uvis25_i2c_regmap_config' was not declared. Should it be static? drivers/iio/light/st_uvis25_spi.c:22:28: warning: symbol 'st_uvis25_spi_regmap_config' was not declared. Should it be static? Signed-off-by: Wei Yongjun --- drivers/iio/light/st_uvis25_i2c.c | 2 +- drivers/iio/light/st_uvis25_spi.c | 2 +- 2 file changed, 2 insertion(+), 2 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/iio/light/st_uvis25_i2c.c b/drivers/iio/light/st_uvis25_i2c.c index c939c0b..afd6eb0 100644 --- a/drivers/iio/light/st_uvis25_i2c.c +++ b/drivers/iio/light/st_uvis25_i2c.c @@ -19,7 +19,7 @@ #define UVIS25_I2C_AUTO_INCREMENT BIT(7) -const struct regmap_config st_uvis25_i2c_regmap_config = { +static const struct regmap_config st_uvis25_i2c_regmap_config = { .reg_bits = 8, .val_bits = 8, .write_flag_mask = UVIS25_I2C_AUTO_INCREMENT, diff --git a/drivers/iio/light/st_uvis25_spi.c b/drivers/iio/light/st_uvis25_spi.c index e697e14..cdfee5e 100644 --- a/drivers/iio/light/st_uvis25_spi.c +++ b/drivers/iio/light/st_uvis25_spi.c @@ -19,7 +19,7 @@ #define UVIS25_SENSORS_SPI_READ BIT(7) #define UVIS25_SPI_AUTO_INCREMENT BIT(6) -const struct regmap_config st_uvis25_spi_regmap_config = { +static const struct regmap_config st_uvis25_spi_regmap_config = { .reg_bits = 8, .val_bits = 8, .read_flag_mask = UVIS25_SENSORS_SPI_READ | UVIS25_SPI_AUTO_INCREMENT,