From patchwork Fri May 1 15:57:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6311091 Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 22A6B9F1C2 for ; Fri, 1 May 2015 15:59:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 492B62039D for ; Fri, 1 May 2015 15:59:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 646A320121 for ; Fri, 1 May 2015 15:59:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754395AbbEAP6u (ORCPT ); Fri, 1 May 2015 11:58:50 -0400 Received: from mail-pd0-f172.google.com ([209.85.192.172]:35402 "EHLO mail-pd0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754776AbbEAP6I (ORCPT ); Fri, 1 May 2015 11:58:08 -0400 Received: by pdbqd1 with SMTP id qd1so95752122pdb.2; Fri, 01 May 2015 08:58:07 -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=qbj74eA/GKwDsH2XUC+f6xSEB0sUv6puKtdC5G4Bqhg=; b=llzHlRJaM6DUo77PBFg1PUqDKqL3/mx5h+nRSPpF60+ejBKCHiqgVk1+L+BJWBztI5 hjILAFxpFS0kYLemnmSDC2RYrveswT+9zvcjUkpf0XS2EepZroCtiezLcPQwY6EfrQ4J /+KU9ZCw1P0LjppM6KJswmAGC2G0p4EyvU1QeNL7vWi6ez6Sk3lV20O4uxD3P0yCnrh5 SY9JyOhf3G6OIINSgPRApUKaZ1C8w0Ak5DGnL1PF1XlsVbzJ+YRAEUWtNy6wpFeSTBU1 f7wp6i2j5dT/RkC7q9sFcB+7YihXol3d17cLsSijQr49CkAK63Rc1H+VN1gLStFIMaKQ SAng== X-Received: by 10.66.142.169 with SMTP id rx9mr19269082pab.84.1430495887885; Fri, 01 May 2015 08:58:07 -0700 (PDT) Received: from localhost.localdomain ([125.130.175.98]) by mx.google.com with ESMTPSA id sl9sm5237776pac.41.2015.05.01.08.58.05 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 May 2015 08:58:07 -0700 (PDT) From: Krzysztof Kozlowski To: Dan Williams , Vinod Koul , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/5] dmaengine: mxs: Constify platform_device_id Date: Sat, 2 May 2015 00:57:47 +0900 Message-Id: <1430495869-32128-3-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/mxs-dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index 829ec686dac3..60de35251da5 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -170,7 +170,7 @@ static struct mxs_dma_type mxs_dma_types[] = { } }; -static struct platform_device_id mxs_dma_ids[] = { +static const struct platform_device_id mxs_dma_ids[] = { { .name = "imx23-dma-apbh", .driver_data = (kernel_ulong_t) &mxs_dma_types[0],