From patchwork Thu Jul 20 23:18:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 791793 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-rtc-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="IGPTjOmf"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xD8w90RSZz9s72 for ; Fri, 21 Jul 2017 09:18:33 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936168AbdGTXSc (ORCPT ); Thu, 20 Jul 2017 19:18:32 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:58026 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936121AbdGTXSc (ORCPT ); Thu, 20 Jul 2017 19:18:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Date:Sender:Message-Id:Content-Type:Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From:References:In-Reply-To; bh=Vdx0zaErVvNGMAqQk2Wc3Wd2VF/h17LPla0sR5ctf8g=; b=IGPTjOmfH/7g1KKIdLiwY2UZGwo3LKi4GXSmM6O5ZrqISqUKuMwoTNgBmpeKAehYfnbU3UgG2l7KeHJx8o1i4vg7nDF4R+ICqX9nijW4UZCiB4XpqHhiJk1pt0fTG18586uCZawPyeejyN1SfMkNh2h8VxzbGznelbiQG5SD0iU=; Received: from e0022681537dd.dyn.armlinux.org.uk ([2001:4d48:ad52:3201:222:68ff:fe15:37dd]:38120 helo=rmk-PC.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1dYKiA-0004wB-Tb; Fri, 21 Jul 2017 00:18:27 +0100 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1dYKi9-0001kK-RQ; Fri, 21 Jul 2017 00:18:25 +0100 In-Reply-To: <20170720231745.GE31807@n2100.armlinux.org.uk> References: <20170720231745.GE31807@n2100.armlinux.org.uk> From: Russell King To: Alessandro Zummo Cc: Linus Walleij , Alexandre Belloni , linux-arm-kernel@lists.infradead.org, linux-rtc@vger.kernel.org Subject: [PATCH 1/4] rtc: pl031: constify amba_ids MIME-Version: 1.0 Content-Disposition: inline Message-Id: Date: Fri, 21 Jul 2017 00:18:25 +0100 Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org The AMBA device IDs should be marked const. Make that so. Signed-off-by: Russell King Reviewed-by: Linus Walleij --- drivers/rtc/rtc-pl031.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-pl031.c b/drivers/rtc/rtc-pl031.c index e1687e19c59f..0d87b90b1903 100644 --- a/drivers/rtc/rtc-pl031.c +++ b/drivers/rtc/rtc-pl031.c @@ -446,7 +446,7 @@ static struct pl031_vendor_data stv2_pl031 = { .irqflags = IRQF_SHARED | IRQF_COND_SUSPEND, }; -static struct amba_id pl031_ids[] = { +static const struct amba_id pl031_ids[] = { { .id = 0x00041031, .mask = 0x000fffff,