From patchwork Fri May 1 15:57:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6311061 Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7A303BEEE1 for ; Fri, 1 May 2015 15:58:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B761C2039D for ; Fri, 1 May 2015 15:58:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E302020121 for ; Fri, 1 May 2015 15:58:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754795AbbEAP6O (ORCPT ); Fri, 1 May 2015 11:58:14 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:35224 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754654AbbEAP6L (ORCPT ); Fri, 1 May 2015 11:58:11 -0400 Received: by pabtp1 with SMTP id tp1so94265938pab.2; Fri, 01 May 2015 08:58:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QrlIHVWjoSzPU34zdIGSNlmAldQyFBJCjnMIaBGfE7g=; b=f/KUb9IT581L4nqFsBwv1eNjHQQNoCKmQgJj5MHLE1T8fN8i/MQdUTDmiAPQTRZvr5 F9qKC85JDGPRdNNI9PldGQTt50pav9OzgmgiX09038owlUyn4V2VAquSaM+UcfJLUCsf IBXGkZ3cyd5dHv9Eu5Aw5benjziQiYpOCD9wy0LpQCsUfM5mHx5IV8wgnOWOn42bq/j1 wJXOQnDDzUT8yiFV9EfyjqZWlX74WvtpSQEa8kZej1KTo+FhwJNWGWNaE1vQ1IztIGo1 D38pex68V1dhUz6KImxED6ad1Hko5CWOP4wNNUUlX05qeGDzSxout14LcsOg64XVTu97 /CKQ== X-Received: by 10.66.222.72 with SMTP id qk8mr18818837pac.7.1430495890893; Fri, 01 May 2015 08:58:10 -0700 (PDT) Received: from localhost.localdomain ([125.130.175.98]) by mx.google.com with ESMTPSA id sl9sm5237776pac.41.2015.05.01.08.58.08 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 May 2015 08:58:10 -0700 (PDT) From: Krzysztof Kozlowski To: Dan Williams , Vinod Koul , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 4/5] dmaengine: nbpfaxi: Constify platform_device_id Date: Sat, 2 May 2015 00:57:48 +0900 Message-Id: <1430495869-32128-4-git-send-email-k.kozlowski.k@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1430495869-32128-1-git-send-email-k.kozlowski.k@gmail.com> References: <1430495869-32128-1-git-send-email-k.kozlowski.k@gmail.com> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The platform_device_id is not modified by the driver and core uses it as const. Signed-off-by: Krzysztof Kozlowski --- drivers/dma/nbpfaxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c index 88b77c98365d..2b5a198ac77e 100644 --- a/drivers/dma/nbpfaxi.c +++ b/drivers/dma/nbpfaxi.c @@ -1455,7 +1455,7 @@ static int nbpf_remove(struct platform_device *pdev) return 0; } -static struct platform_device_id nbpf_ids[] = { +static const struct platform_device_id nbpf_ids[] = { {"nbpfaxi64dmac1b4", (kernel_ulong_t)&nbpf_cfg[NBPF1B4]}, {"nbpfaxi64dmac1b8", (kernel_ulong_t)&nbpf_cfg[NBPF1B8]}, {"nbpfaxi64dmac1b16", (kernel_ulong_t)&nbpf_cfg[NBPF1B16]},