From patchwork Wed Aug 23 16:09:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9917787 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 7FFF960327 for ; Wed, 23 Aug 2017 16:12:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 72A6C2899C for ; Wed, 23 Aug 2017 16:12:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 678C0289D7; Wed, 23 Aug 2017 16:12:29 +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.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 01AD92899C for ; Wed, 23 Aug 2017 16:12:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932240AbdHWQKO (ORCPT ); Wed, 23 Aug 2017 12:10:14 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34524 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932204AbdHWQKM (ORCPT ); Wed, 23 Aug 2017 12:10:12 -0400 Received: by mail-pg0-f68.google.com with SMTP id r133so428830pgr.1; Wed, 23 Aug 2017 09:10:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=xXiUHQcQFbV+iT527ccW3vsOr+HAXNHHVC5xt3WJloY=; b=ve6K419dD0pQdM7ks7uGRNN6QbhH1irx7Ilalv2dcq8sPDw8IvuSItETfEQArTdEiz rbHBp9IxTAXqvMo72IagrzC4iDJr+iV3475qZLEOdLPm4WDtGs+fiH/OexVHaeYhtIkH oa5oMyudrOuguN8dEmmX9SUu35yrgpJ7ewImHS61EVUVTfnyAMv6HtAv3V+4mLPWV2Zc /LHXm+hKpxepnHr/UvVn4Qd9IywmcbzTmSjZFAjkP8VBhUf5xSdwD3iJCCfbWl8Utt1T eAudRokrBRX55c3urTw2ViQoYf/2nSgro9rFYRZoMk5dYOh8EqM66lwHIhKf+WZm1Abd FyZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xXiUHQcQFbV+iT527ccW3vsOr+HAXNHHVC5xt3WJloY=; b=FVhRAFH+WGpjSIROqTwlemh30n8+ho8mDdr8xzoQ8Cgh1P75ilt/o1Kth7apBbC82Y MXlwaSg5IwkVlYuk7WIVAebFAi6qr6KWe8luzKaXn2nXthCLfaUnKJ36UQRV8u9wrt2x snQLOzqS2W6MorZ3xHEUXHAbBq1nlUWjVuXpv4BkmnA6h9cnWPVFgwZztngpQDxKosT1 PsjoLUdezpZxBXMQ2w00nk2Bn/KcJ1JuNylQFi5eouYdCALCaCQtXoMbRQdJm7xNzvVZ Ti3Pet4v+Jx2A6UgWupY/4RrZ9pInsrEEzBxgrck3717/gzQnn7OdlVTxv9wGe1Ux4Qg Xo/Q== X-Gm-Message-State: AHYfb5hl9LmGHrTJ6YYxuFJjvi5tuV5yPpt/XIBYJWT3nNsURyacwudb +w4DnoO81FUw8w== X-Received: by 10.98.153.68 with SMTP id d65mr3309360pfe.49.1503504611550; Wed, 23 Aug 2017 09:10:11 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.93]) by smtp.gmail.com with ESMTPSA id 206sm3310778pfc.61.2017.08.23.09.10.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Aug 2017 09:10:09 -0700 (PDT) From: Arvind Yadav To: broonie@kernel.org Cc: linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH] spi: pl022: constify amba_id Date: Wed, 23 Aug 2017 21:39:58 +0530 Message-Id: <6e2bcce417b8909c28ff825244d670b59a590169.1503504466.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP amba_id are not supposed to change at runtime. All functions working with const amba_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/spi/spi-pl022.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 2f76e02..4797c57 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -2429,7 +2429,7 @@ static struct vendor_data vendor_lsi = { .internal_cs_ctrl = true, }; -static struct amba_id pl022_ids[] = { +static const struct amba_id pl022_ids[] = { { /* * ARM PL022 variant, this has a 16bit wide