From patchwork Sun Aug 13 13:23:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9897801 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 19F9560244 for ; Sun, 13 Aug 2017 13:23:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03E2728384 for ; Sun, 13 Aug 2017 13:23:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAF762860F; Sun, 13 Aug 2017 13:23:20 +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 9DB8E28384 for ; Sun, 13 Aug 2017 13:23:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751097AbdHMNXT (ORCPT ); Sun, 13 Aug 2017 09:23:19 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:32780 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751040AbdHMNXS (ORCPT ); Sun, 13 Aug 2017 09:23:18 -0400 Received: by mail-pg0-f65.google.com with SMTP id u185so6676740pgb.0; Sun, 13 Aug 2017 06:23:18 -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=ox+aOwLWzJSG0MyvHq+5Kh+GRUyRC8CdFxCOfW9LfwU=; b=vZkXJ2jiFEUx5sN6oOZYHola7Ve3yMSkttSUjXTfbd0o5c4oL2eKSxf7h0f/hpinxZ Du9CTcboSO+xgffYYAIzZUwZhzemdh/IrqgCu7JCAcbomtbsHhlI6og0Qy56kT6Fuzv0 qD08WG5vqUMNYD58y25xqzG1XXKi47tUPBvg852GoB6Sb9O7+1qYy7Rhz9z+PJ60sofI BSi4w9xXrueU7/yyqBm6DsBUWgzfefCT7TTTod3cz8VuQM7H+Bn6cNgtj/fc+92HJBoc YV4N1vhPpUgXfxL8tNj2k9q8UeiJ3ju/ODccBgp/0O+op45BQc8VF1lJKsZNTbcbta7R NAng== 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=ox+aOwLWzJSG0MyvHq+5Kh+GRUyRC8CdFxCOfW9LfwU=; b=SVQ8tIFCfQCuasn+fTH7ycbxaMf26Ja6/DwqYe0Dj0e5ctrppChko+szRfHxkhtXKK u4FjKdGxEKgTMIl2ulGy291PVDckX580qYXaSDDWzAz6/BiNpUozn/BBZ0F8XQjyOgYs HmUW5Ug/AB7+rN6L++MuXafFEPFQJInu4Dpu1OvtTzSvfE3pZzSw3Uu5qppaJVQMCTqP fGJNXQd7eBJqHGy4oogIRVlfvSG7x1Lwi79FkUNd80r52kYzt3HE3gsex/AjF7xUzVuN IjSEU/NKCnxAr9MJvJQx+pA/nknU2y6mObFAmxURuZlYS/+hK9C6ym+EEMN6Fl9UF7b8 pHag== X-Gm-Message-State: AHYfb5hPD9xfd69Dh/zny9h5tNg/9slJJ5EDoPkQ+z+2U0LFEhg9r6LL miTclOk/+AYswA== X-Received: by 10.84.174.129 with SMTP id r1mr23720322plb.55.1502630598028; Sun, 13 Aug 2017 06:23:18 -0700 (PDT) Received: from gmail.com ([2405:204:818a:ee90:a033:dadd:1a39:1760]) by smtp.gmail.com with ESMTPSA id d28sm10800884pfb.139.2017.08.13.06.23.13 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 13 Aug 2017 06:23:17 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sun, 13 Aug 2017 18:53:09 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, linus.walleij@linaro.org, dan.j.williams@intel.com, vinod.koul@intel.com, linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] ste_dma40: make stedma40_chan_cfg const Date: Sun, 13 Aug 2017 18:53:04 +0530 Message-Id: <1502630584-6844-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make these const as they are only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal Acked-by: Linus Walleij --- drivers/dma/ste_dma40.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index c3052fb..f4fab41 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -79,7 +79,7 @@ }; /* Default configuration for physcial memcpy */ -static struct stedma40_chan_cfg dma40_memcpy_conf_phy = { +static const struct stedma40_chan_cfg dma40_memcpy_conf_phy = { .mode = STEDMA40_MODE_PHYSICAL, .dir = DMA_MEM_TO_MEM, @@ -93,7 +93,7 @@ }; /* Default configuration for logical memcpy */ -static struct stedma40_chan_cfg dma40_memcpy_conf_log = { +static const struct stedma40_chan_cfg dma40_memcpy_conf_log = { .mode = STEDMA40_MODE_LOGICAL, .dir = DMA_MEM_TO_MEM,