From patchwork Mon Jun 15 16:18:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joshua Clayton X-Patchwork-Id: 6610511 Return-Path: X-Original-To: patchwork-linux-arm@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 64F50C0020 for ; Mon, 15 Jun 2015 16:21:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 68F8A20768 for ; Mon, 15 Jun 2015 16:21:57 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 827F42076A for ; Mon, 15 Jun 2015 16:21:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z4X74-00055B-4e; Mon, 15 Jun 2015 16:19:54 +0000 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z4X6k-0004u2-9a for linux-arm-kernel@lists.infradead.org; Mon, 15 Jun 2015 16:19:35 +0000 Received: by padev16 with SMTP id ev16so68616552pad.0 for ; Mon, 15 Jun 2015 09:19:13 -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=4DF9bCKVRjjbHk+swnF2CXCAqd1ZbZ9uHsoQQF2nzQs=; b=JDdt7hinCtUspP3ZpUZkVQb1fwvPsdKic6XuLoYFHP/P2/fhGgHATmnFtsmsAe1grM +9VKlu/sEHSyznhjYA6qfVUT54/xyV8a/dgSD/Zg25aR1VPXIL5KXz23ijWQ+3u4nYEt TO4N5KmbA5ldi3FW6Jo/U46+dnxKLMs/Agw+4HlVO9EaPAfKeKTE3P91iay2Lc1cSS/D Omz+kmA/MdKrniQCXa9R73hHrSQrQCjf6RGs98rDNBqxEVpcc3N8+pnufs6dhAy4UYMx Wz25hBIn9D1Qry3erviukg2GIyt7/krqHZT3R4BAosyjTIPY8OtHkLCpRSATuKiYzM0F 8bqQ== X-Received: by 10.66.122.37 with SMTP id lp5mr50035208pab.17.1434385153089; Mon, 15 Jun 2015 09:19:13 -0700 (PDT) Received: from localhost.localdomain (68-185-59-186.static.knwc.wa.charter.com. [68.185.59.186]) by mx.google.com with ESMTPSA id qg5sm12717637pdb.13.2015.06.15.09.19.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Jun 2015 09:19:11 -0700 (PDT) From: Joshua Clayton To: Vinod Koul Subject: [PATCH 01/10] dma: imx-sdma: constify local structs Date: Mon, 15 Jun 2015 09:18:56 -0700 Message-Id: <1434385144-4432-2-git-send-email-stillcompiling@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1434385144-4432-1-git-send-email-stillcompiling@gmail.com> References: <1434385144-4432-1-git-send-email-stillcompiling@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150615_091934_372128_E5CE8732 X-CRM114-Status: GOOD ( 11.59 ) X-Spam-Score: -0.8 (/) Cc: Joshua Clayton , linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, Dan Williams , Shawn Guo , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Signed-off-by: Joshua Clayton --- drivers/dma/imx-sdma.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index d0df198..0671d6d 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -310,7 +310,7 @@ struct sdma_firmware_header { struct sdma_driver_data { int chnenbl0; int num_events; - struct sdma_script_start_addrs *script_addrs; + const struct sdma_script_start_addrs *script_addrs; }; struct sdma_engine { @@ -335,7 +335,7 @@ static struct sdma_driver_data sdma_imx31 = { .num_events = 32, }; -static struct sdma_script_start_addrs sdma_script_imx25 = { +static const struct sdma_script_start_addrs sdma_script_imx25 = { .ap_2_ap_addr = 729, .uart_2_mcu_addr = 904, .per_2_app_addr = 1255, @@ -351,18 +351,18 @@ static struct sdma_script_start_addrs sdma_script_imx25 = { .shp_2_mcu_addr = 979, }; -static struct sdma_driver_data sdma_imx25 = { +static const struct sdma_driver_data sdma_imx25 = { .chnenbl0 = SDMA_CHNENBL0_IMX35, .num_events = 48, .script_addrs = &sdma_script_imx25, }; -static struct sdma_driver_data sdma_imx35 = { +static const struct sdma_driver_data sdma_imx35 = { .chnenbl0 = SDMA_CHNENBL0_IMX35, .num_events = 48, }; -static struct sdma_script_start_addrs sdma_script_imx51 = { +static const struct sdma_script_start_addrs sdma_script_imx51 = { .ap_2_ap_addr = 642, .uart_2_mcu_addr = 817, .mcu_2_app_addr = 747, @@ -375,13 +375,13 @@ static struct sdma_script_start_addrs sdma_script_imx51 = { .shp_2_mcu_addr = 892, }; -static struct sdma_driver_data sdma_imx51 = { +static const struct sdma_driver_data sdma_imx51 = { .chnenbl0 = SDMA_CHNENBL0_IMX35, .num_events = 48, .script_addrs = &sdma_script_imx51, }; -static struct sdma_script_start_addrs sdma_script_imx53 = { +static const struct sdma_script_start_addrs sdma_script_imx53 = { .ap_2_ap_addr = 642, .app_2_mcu_addr = 683, .mcu_2_app_addr = 747, @@ -395,13 +395,13 @@ static struct sdma_script_start_addrs sdma_script_imx53 = { .mcu_2_firi_addr = 1290, }; -static struct sdma_driver_data sdma_imx53 = { +static const struct sdma_driver_data sdma_imx53 = { .chnenbl0 = SDMA_CHNENBL0_IMX35, .num_events = 48, .script_addrs = &sdma_script_imx53, }; -static struct sdma_script_start_addrs sdma_script_imx6q = { +static const struct sdma_script_start_addrs sdma_script_imx6q = { .ap_2_ap_addr = 642, .uart_2_mcu_addr = 817, .mcu_2_app_addr = 747, @@ -414,13 +414,13 @@ static struct sdma_script_start_addrs sdma_script_imx6q = { .mcu_2_spdif_addr = 1134, }; -static struct sdma_driver_data sdma_imx6q = { +static const struct sdma_driver_data sdma_imx6q = { .chnenbl0 = SDMA_CHNENBL0_IMX35, .num_events = 48, .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,