From patchwork Tue Oct 17 12:27:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 10011857 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 7DFB2601E7 for ; Tue, 17 Oct 2017 12:28:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7206F28889 for ; Tue, 17 Oct 2017 12:28:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 66D072888B; Tue, 17 Oct 2017 12:28:09 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable 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 2100128889 for ; Tue, 17 Oct 2017 12:28:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761637AbdJQM1y (ORCPT ); Tue, 17 Oct 2017 08:27:54 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:52130 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761618AbdJQM1m (ORCPT ); Tue, 17 Oct 2017 08:27:42 -0400 Received: by mail-wr0-f193.google.com with SMTP id j14so1474645wre.8; Tue, 17 Oct 2017 05:27:41 -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:in-reply-to:references; bh=LEvEeYmal3omlbFL4uVS8bF4Lxofy1VY0USke25R3Zk=; b=YhQ0JUC+EC/hpRH4tzcUUcaqbFJr2qX5awL3+Df5yoiTQZAcuZiyTdDkh7Yk+JZ3Cw OwEtONrJelkgaWuAn1+NFCixcT2rVC3TpvB8gtV6ErkYOruceQ/WWRBPNklEozdIat97 iwPqwWxmbO6IPLBAhrkZbSsSx9t0mXFpuQT66Tc+nFn57Upksh/k1bPW7xMnaPwJKm6J FAiDd9YCCh68CSDuy1MYNv5+5dAJRjwJlJ+zM8rBJO5oZRMnhfn81eveeSPw4wk2Zh0w tera5SuTQPopVu7NdgvXSgs04rHQKEXk32ablnunW/SjHxFtHfBdB3+haUJCS7UXmkqx b9kg== 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:in-reply-to :references; bh=LEvEeYmal3omlbFL4uVS8bF4Lxofy1VY0USke25R3Zk=; b=Hr9rk034naFZVwA5GNqRemdTQCS4Llncr4K/yFK74ogY40tvonkm6oaySCAIJqM1M1 Y8TZP6U/8q9Sb2nWpqMmAec2D0Lf5viGR/+1pEMnHXLtMvaKvO7GVPFXzXLZTvzCpHPT GtNhxjogMIXr2v6qoTef3a129q0GebRwu4+CR14JBdLlmmYJJSDWbrpa0rfBBd6vSiBe IMNewNna6vcgEW5k76Q0H94d9DDogmUBv/p/8dgbGL03YzsIyOOJYTvaImK5lkcl/pEs H+sMQ0mnVNXYEyzIhzgKmEmXt6LRr5gbCHm0x5m96VLfDStyQo0JlNPqoG1XC/m/TfEn mxZw== X-Gm-Message-State: AMCzsaW/XeU3y+TItwLRbdiofUGwjSO5yEgrst2NSmR/2JGFW6cuAJxw JVwpKrTp29A8waJ5Qd3PYbZ41Q== X-Google-Smtp-Source: ABhQp+QUquM6upCEfeM7IX+hBEapePAaxREHCPn5DdfdGJ4TCuS0Im7XhkokDOgqXRIvAFRs6uOp2g== X-Received: by 10.223.198.82 with SMTP id u18mr3715731wrg.5.1508243260942; Tue, 17 Oct 2017 05:27:40 -0700 (PDT) Received: from gmail.com (dell-goyal.wifi.rsr.lip6.fr. [132.227.77.190]) by smtp.gmail.com with ESMTPSA id m26sm16354421wrb.81.2017.10.17.05.27.39 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 17 Oct 2017 05:27:40 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Tue, 17 Oct 2017 14:27:38 +0200 From: Bhumika Goyal To: julia.lawall@lip6.fr, prabhakar.csengg@gmail.com, mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH 2/2] [media] davinci: make ccdc_hw_device structures const Date: Tue, 17 Oct 2017 14:27:25 +0200 Message-Id: <1508243245-30849-3-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508243245-30849-1-git-send-email-bhumirks@gmail.com> References: <1508243245-30849-1-git-send-email-bhumirks@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make these structures const as they are only getting passed to the functions vpfe_{register/unregister}_ccdc_device having the argument as const. Structures found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/media/platform/davinci/dm355_ccdc.c | 2 +- drivers/media/platform/davinci/dm644x_ccdc.c | 2 +- drivers/media/platform/davinci/isif.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/davinci/dm355_ccdc.c b/drivers/media/platform/davinci/dm355_ccdc.c index 6d492dc..89cb309 100644 --- a/drivers/media/platform/davinci/dm355_ccdc.c +++ b/drivers/media/platform/davinci/dm355_ccdc.c @@ -841,7 +841,7 @@ static int ccdc_set_hw_if_params(struct vpfe_hw_if_param *params) return 0; } -static struct ccdc_hw_device ccdc_hw_dev = { +static const struct ccdc_hw_device ccdc_hw_dev = { .name = "DM355 CCDC", .owner = THIS_MODULE, .hw_ops = { diff --git a/drivers/media/platform/davinci/dm644x_ccdc.c b/drivers/media/platform/davinci/dm644x_ccdc.c index 3b2d8a9..5fa0a1f 100644 --- a/drivers/media/platform/davinci/dm644x_ccdc.c +++ b/drivers/media/platform/davinci/dm644x_ccdc.c @@ -776,7 +776,7 @@ static void ccdc_restore_context(void) regw(ccdc_ctx[CCDC_VP_OUT >> 2], CCDC_VP_OUT); regw(ccdc_ctx[CCDC_PCR >> 2], CCDC_PCR); } -static struct ccdc_hw_device ccdc_hw_dev = { +static const struct ccdc_hw_device ccdc_hw_dev = { .name = "DM6446 CCDC", .owner = THIS_MODULE, .hw_ops = { diff --git a/drivers/media/platform/davinci/isif.c b/drivers/media/platform/davinci/isif.c index 5813b49..d5ff584 100644 --- a/drivers/media/platform/davinci/isif.c +++ b/drivers/media/platform/davinci/isif.c @@ -1000,7 +1000,7 @@ static int isif_close(struct device *device) return 0; } -static struct ccdc_hw_device isif_hw_dev = { +static const struct ccdc_hw_device isif_hw_dev = { .name = "ISIF", .owner = THIS_MODULE, .hw_ops = {