From patchwork Mon Sep 18 08:15:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin King X-Patchwork-Id: 9955709 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 3960460568 for ; Mon, 18 Sep 2017 08:30:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 29DCA28BD4 for ; Mon, 18 Sep 2017 08:30:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2896828BDF; Mon, 18 Sep 2017 08:30:55 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 000AB28C01 for ; Mon, 18 Sep 2017 08:30:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jMw9+1DaS0KCrI7hnVFkECkbKJK6QKtp1kb5RLt3cH8=; b=UTXdmEUdt9PTy9 oJCH6R6uVr46dyABI1SAZwl3jNHfbwwJNNKpZDQGNwYr/buhe8KnbmCMziPmiYXhnDAiR4fb6PZ+6 WjmpTApZ1z3dgsHwmb3n4CdqXoGlR9GoW2XxwGubMnZd1bnmgcVe2tkdSSNLR4/QjnBp8+P4FgZVa t/WeunfSgKc6zpCEqoxUx1MdqvZtqduIq/HximtC/1O4FyZYXmClDUthoUwSlK9LE6LSPrQAj+614 18vOu2Wqp0vEbjniErr5pWKFgVTFJdNvf6ICwefXraHfzQ4GirSDsZNZ5EgFaQ6YzvQGQTBu+ZQL2 o+kDtoAU1nlPMlVGTkvg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dtrRO-0002Z1-PT; Mon, 18 Sep 2017 08:30:06 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dtrRL-0002ES-RE for linux-arm-kernel@bombadil.infradead.org; Mon, 18 Sep 2017 08:30:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=yboRNEe7MFOyUUBSU8l4xVF9QrRehy5ix+74pfn0bm4=; b=mC1MBX4sUsqcTWW0Xgl88ogNF3 bL2b8IrUuJi6fIpoqv9AVneue8jHUUqsE86TlkpmLtKLxsr1C6LSnO4xeVapb1PoXGN4tettyTG5B stE0KRAF08jsFoq4mbRKWrjVogW2V0Y8d8/+hzrzOIdpPgmj8V3tJ3QjxvGNoxR5iZvc4qbzjlEqi d/yJH54ULCUkAyt346Byu9PK1NrcMPMidzBJJGUYdSCpm/ZoPNyCPQcZ1ZBWjrbHKZKrwpMgBCjUO a1DoAJDlSAqU21UyfTKO1tAWjydDFnxww6c4IsOoDdx1SCEikZ7Hx0cF9knsEUHielVcuNS3vjyKh dme1xufg==; Received: from youngberry.canonical.com ([91.189.89.112]) by casper.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dtrDp-0005Nt-NP for linux-arm-kernel@lists.infradead.org; Mon, 18 Sep 2017 08:16:12 +0000 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1dtrDQ-0008UO-7n; Mon, 18 Sep 2017 08:15:40 +0000 From: Colin King To: Wolfram Sang , Maxime Coquelin , Alexandre Torgue , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH][V2] i2c: i2c-stm32f7: make structure stm32f7_setup static const Date: Mon, 18 Sep 2017 09:15:39 +0100 Message-Id: <20170918081539.26512-1-colin.king@canonical.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170918_091605_828424_450AD44E X-CRM114-Status: GOOD ( 11.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Colin Ian King The structure stm32f7_setup is local to the source and does not need to be in global scope, make it static const. Cleans up sparse warning: symbol 'stm32f7_setup' was not declared. Should it be static? Signed-off-by: Colin Ian King Acked-by: Pierre-Yves MORDRET --- drivers/i2c/busses/i2c-stm32f7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm32f7.c index 47c67b0ca896..3eae4fc96884 100644 --- a/drivers/i2c/busses/i2c-stm32f7.c +++ b/drivers/i2c/busses/i2c-stm32f7.c @@ -265,7 +265,7 @@ static struct stm32f7_i2c_spec i2c_specs[] = { }, }; -struct stm32f7_i2c_setup stm32f7_setup = { +static const struct stm32f7_i2c_setup stm32f7_setup = { .rise_time = STM32F7_I2C_RISE_TIME_DEFAULT, .fall_time = STM32F7_I2C_FALL_TIME_DEFAULT, .dnf = STM32F7_I2C_DNF_DEFAULT,