From patchwork Fri May 1 15:57:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6311111 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 34CB6BEEE1 for ; Fri, 1 May 2015 15:59:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5FC932039D for ; Fri, 1 May 2015 15:59:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 67B8120121 for ; Fri, 1 May 2015 15:59:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754001AbbEAP7T (ORCPT ); Fri, 1 May 2015 11:59:19 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:34374 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754670AbbEAP6F (ORCPT ); Fri, 1 May 2015 11:58:05 -0400 Received: by pdbqa5 with SMTP id qa5so95695017pdb.1; Fri, 01 May 2015 08:58:05 -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=YQM+FuY5wsCHtBOMiBWW6ee/nsjYcT2ABsgAYI4S1I0=; b=uIEFz+qfa0tfmdR2yPfzY/P/kGV7gzDKYP1LNH1hzLiVfDbtLNLkMufQtBYPE30gK4 XasEnbp5sUqKYgJ2ytg9f04F8k8HfsT1CJiay3rkgDpp9/juWzq5UO6K7xlo7jl9SZM2 mB9ssww/CcTSUG+oLPyQ27p4ZD9wNpCvMsxml4O/TffCMfQ9Ih5Ggd7psb6EYDxxa7Sr 2qOf+SmdO9ONvfXuoantvrYt8zdG4YcC3Ol/jyJpgtl7DdMHPxpGkvjU6hkCzTAjvHux ZEh4a0eB4lHvahnAig0auyNRitYChVwtLmnFUfBJTI1DyjyxNkkzgF34BttmLykk6SSg OFSg== X-Received: by 10.69.31.106 with SMTP id kl10mr18601478pbd.155.1430495885038; Fri, 01 May 2015 08:58:05 -0700 (PDT) Received: from localhost.localdomain ([125.130.175.98]) by mx.google.com with ESMTPSA id sl9sm5237776pac.41.2015.05.01.08.58.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 01 May 2015 08:58:04 -0700 (PDT) From: Krzysztof Kozlowski To: Dan Williams , Vinod Koul , dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/5] dmaengine: imx: Constify platform_device_id Date: Sat, 2 May 2015 00:57:46 +0900 Message-Id: <1430495869-32128-2-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/imx-dma.c | 2 +- drivers/dma/imx-sdma.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/imx-dma.c b/drivers/dma/imx-dma.c index eed405976ea9..865501fcc67d 100644 --- a/drivers/dma/imx-dma.c +++ b/drivers/dma/imx-dma.c @@ -193,7 +193,7 @@ struct imxdma_filter_data { int request; }; -static struct platform_device_id imx_dma_devtype[] = { +static const struct platform_device_id imx_dma_devtype[] = { { .name = "imx1-dma", .driver_data = IMX1_DMA, diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 62bbd79338e0..77b6aab04f47 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -420,7 +420,7 @@ static struct sdma_driver_data sdma_imx6q = { .script_addrs = &sdma_script_imx6q, }; -static struct platform_device_id sdma_devtypes[] = { +static const struct platform_device_id sdma_devtypes[] = { { .name = "imx25-sdma", .driver_data = (unsigned long)&sdma_imx25,