From patchwork Fri Jul 15 08:15:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 9231307 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 B49DB60574 for ; Fri, 15 Jul 2016 08:17:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A43D52522B for ; Fri, 15 Jul 2016 08:17:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 987E028307; Fri, 15 Jul 2016 08:17:05 +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.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 08ADA2522B for ; Fri, 15 Jul 2016 08:17:05 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bNyHf-00085q-4K; Fri, 15 Jul 2016 08:15:43 +0000 Received: from mail01.prevas.se ([62.95.78.3]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bNyHF-0006M6-PJ; Fri, 15 Jul 2016 08:15:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=1116; q=dns/txt; s=ironport1; t=1468570517; x=1500106517; h=from:to:cc:subject:date:message-id:mime-version; bh=BnRHlowWwWXr55YxNQcAoGSfodFaYKhsHD9C1imZecM=; b=iA2hZ98vcam7F6DoA2VPR0Hc/VTbKLazk66EoWTwSXAHQ2iz7PvF7IiF Ta5efA2NCw5VnAIwsCIjTiVyOE53GsOtLx2hSf4FsVL7YUPy7JZWEGweu 7UnsrUWsHUydDEVypy/gI7DU8wPP1JVeBl+2cT/y+OjbWYRh15txERLtq E=; X-IronPort-AV: E=Sophos;i="5.28,367,1464645600"; d="scan'208";a="999994" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport1.prevas.se with ESMTP/TLS/AES256-SHA; 15 Jul 2016 10:14:49 +0200 Received: from prevas-ravi.prevas.se (172.16.11.27) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server (TLS) id 14.2.347.0; Fri, 15 Jul 2016 10:14:49 +0200 From: Rasmus Villemoes To: Wim Van Sebroeck , Guenter Roeck , Stephen Warren , Lee Jones , Eric Anholt Subject: [PATCH 1/3] watchdog: bcm2835_wdt: constify _ops and _info structures Date: Fri, 15 Jul 2016 10:15:21 +0200 Message-ID: <1468570524-18222-1-git-send-email-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 X-Originating-IP: [172.16.11.27] X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160715_011518_334803_2AB5E883 X-CRM114-Status: UNSURE ( 8.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rasmus Villemoes 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 These are never modified, so might as well be const. Signed-off-by: Rasmus Villemoes Reviewed-by: Guenter Roeck --- drivers/watchdog/bcm2835_wdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/watchdog/bcm2835_wdt.c b/drivers/watchdog/bcm2835_wdt.c index 2e6164c..733e402 100644 --- a/drivers/watchdog/bcm2835_wdt.c +++ b/drivers/watchdog/bcm2835_wdt.c @@ -96,7 +96,7 @@ static unsigned int bcm2835_wdt_get_timeleft(struct watchdog_device *wdog) return WDOG_TICKS_TO_SECS(ret & PM_WDOG_TIME_SET); } -static struct watchdog_ops bcm2835_wdt_ops = { +static const struct watchdog_ops bcm2835_wdt_ops = { .owner = THIS_MODULE, .start = bcm2835_wdt_start, .stop = bcm2835_wdt_stop, @@ -104,7 +104,7 @@ static struct watchdog_ops bcm2835_wdt_ops = { .get_timeleft = bcm2835_wdt_get_timeleft, }; -static struct watchdog_info bcm2835_wdt_info = { +static const struct watchdog_info bcm2835_wdt_info = { .options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | WDIOF_KEEPALIVEPING, .identity = "Broadcom BCM2835 Watchdog timer",