From patchwork Sun Feb 19 17:39:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9581705 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 B7A8A60578 for ; Sun, 19 Feb 2017 17:39:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A977D2864B for ; Sun, 19 Feb 2017 17:39:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BA912867B; Sun, 19 Feb 2017 17:39:35 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 A86EC2864B for ; Sun, 19 Feb 2017 17:39:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751501AbdBSRjR (ORCPT ); Sun, 19 Feb 2017 12:39:17 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35238 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbdBSRjQ (ORCPT ); Sun, 19 Feb 2017 12:39:16 -0500 Received: by mail-pf0-f193.google.com with SMTP id 68so7722533pfx.2; Sun, 19 Feb 2017 09:39:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=AaGy5oJYEQ5kbXsNNtdn16wHN2OqFAJTExWp8jU/v7I=; b=JqFj9aUe2N3gqmdRtK1KXtOSeLtk6210YiKFbmAMlI1z0rf0AnrM7e91rcOYI1YP+l a6AVErwIdyqoSkYxybFzBFbv+q/tgqGcO0iZHHuuf3TH0KU6nMzqAkAoQcJsUTILah1E sEg338efFUf68vNQgiBK5/UcyR0ry2y2Hs9dtdb6rutTISj3tn6zy7fz1AKr3Ah03LSb /SQTLtoyfmbUVrSUFKx7Xv5RH2SEXznY9lS356yf6Wp2TKioNsEQPh7/AwxiitNRvMJk 7/T66CRzX5Ddecz5ob6/OmjbE5hbrlIgtAcSh/vR3/5KmxmG6Zp0v9UMf3lCTosrrU59 RTxg== 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=AaGy5oJYEQ5kbXsNNtdn16wHN2OqFAJTExWp8jU/v7I=; b=UPE3PPC6/hxAnW1flTjijXGy9uF1+VlETUH6mMBOk16e5dd0NuYCAt5WkX8K73Yku3 NZ9e0IsBchOU2zF1oDPqjbQNVIC1nrh0I1/C5dFZzumqCGSaBQ//Zx9yZoAJWlNYm/wD U8JOxppUac/DB7MQvcSLaMVDJDNFxMqPDoPPdK0eUpLyvVqHKzd0TJlLP39oLpxyS+rI WjgZUJKMdpT0TulThzz8Nr0n56lACypwQlneY8W6M7/Nm608855tlezfBMXJ8BoQknkz MMEd9kJtMj9fsql7WfAjuL6jNoXwWdtZAzcdQphUTzQDu2rQdSfl1lrc7q7Nibte5kxy NbVQ== X-Gm-Message-State: AMke39nkmZl3jMWbPLbZDCLbHxfkJboWAwbOkKmOvyJRf5IUYU9FvmD9s50FPStwkWXU+Q== X-Received: by 10.98.27.8 with SMTP id b8mr21095595pfb.82.1487525955186; Sun, 19 Feb 2017 09:39:15 -0800 (PST) Received: from gmail.com ([2405:204:5502:c42f:904b:4bb3:300a:c260]) by smtp.gmail.com with ESMTPSA id s26sm30598321pge.33.2017.02.19.09.39.10 (version=TLS1 cipher=AES128-SHA bits=128/128); Sun, 19 Feb 2017 09:39:14 -0800 (PST) Received: by gmail.com (sSMTP sendmail emulation); Sun, 19 Feb 2017 23:09:07 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, mchehab@kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] pci: mantis: constify mb86a16_config structure Date: Sun, 19 Feb 2017 23:09:06 +0530 Message-Id: <1487525946-5683-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 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 Declare mb86a16_config structure as const as it is either passed as an argument to the function dvb_attach or is dereferenced. dvb_attach calls its first argument on the rest of its arguments. The first argument of dvb_attach in the changed case is mb86a16_attach and the parameter of this function to which the object reference is passed is of type const. So, mb86a16_config structures having this property can be made const. Signed-off-by: Bhumika Goyal --- drivers/media/pci/mantis/mantis_vp1034.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/mantis/mantis_vp1034.c b/drivers/media/pci/mantis/mantis_vp1034.c index 3b19285..e4972ff 100644 --- a/drivers/media/pci/mantis/mantis_vp1034.c +++ b/drivers/media/pci/mantis/mantis_vp1034.c @@ -36,7 +36,7 @@ #include "mantis_vp1034.h" #include "mantis_reg.h" -static struct mb86a16_config vp1034_mb86a16_config = { +static const struct mb86a16_config vp1034_mb86a16_config = { .demod_address = 0x08, .set_voltage = vp1034_set_voltage, };