From patchwork Sat Aug 19 10:34:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9910441 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 0C69260386 for ; Sat, 19 Aug 2017 10:35:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F28ED28C31 for ; Sat, 19 Aug 2017 10:35:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E79C028D99; Sat, 19 Aug 2017 10:35:54 +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 8B5CC28C31 for ; Sat, 19 Aug 2017 10:35:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751861AbdHSKem (ORCPT ); Sat, 19 Aug 2017 06:34:42 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34773 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751817AbdHSKej (ORCPT ); Sat, 19 Aug 2017 06:34:39 -0400 Received: by mail-pf0-f196.google.com with SMTP id j83so937149pfe.1; Sat, 19 Aug 2017 03:34:39 -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=O6yjr7K8PWpO8ARUeZmpuCKh8vh7rsF70gJcq6MVi9Y=; b=EBJf2xO5jMLjWKSczi2oyFrQlBr0RGPntbpfKM+nuWHLuFLCMJTq54CFlLNpyD+An3 R3v4VWAa8s0ujNp9KJyRl1jkWofgXw6rUh0LEdSkIqqkWQmLxaPRFKbRnnnSFX5HNgpe OCntWKjpB/wBPaOz5AGg9a/7swFLMajpUrHB1hvp/ini+D2NxyboS2pxEenYpFO3upyz +IPHQumKdn4qQMg/Ee7nyYdqAqJ8kzSq0vRmObYhgmhXxWpOkt9btsmB4SrIBDU6r262 Ul5R/yzETO9TOptOOej+wLoLB9WXdOdZ64MI+kX7FTVxpWw2LaGeFYeN+DsiNEUBeAQY WflA== 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=O6yjr7K8PWpO8ARUeZmpuCKh8vh7rsF70gJcq6MVi9Y=; b=SHGLg8NweJAyUaJdM5MPDFU4NOUuzB1BOCA7gDY6pmzZ9B9kl3H0Lvk+RQRv1xOLf3 7B1Y4OIqtqM3stzVEuRBOAuXTl5t4KWh0nSuh6A5zMkz26uyaEPKgFf9jO0hmLXBG00h kfr8t55qE1OJNm0nVp3W5esDO7JQFhv4XdAvOEtmFdx1IOVjZXoLd+LZTaMB1OHVg15S Zh4NmQ4FR/Nf0v5O6U9TuMhwlnSdaNvPk7KoSbFmqC5zjky93wXKjVWpL4JRPq17FDaA hmFuNFoz8SJ0d6U7bn2v4y6fJJ2dhrhA7ctuMDT1JJOCX/VGcLbnnXRRQK/sCIeNRiZ+ 2QnQ== X-Gm-Message-State: AHYfb5hy4GMZFpV7W0E9e7chhiD8WZtf+JY8GB0SJMdygObtOTe7RdNG r8CBMbHghslzBw== X-Received: by 10.99.8.194 with SMTP id 185mr11246741pgi.273.1503138878848; Sat, 19 Aug 2017 03:34:38 -0700 (PDT) Received: from gmail.com ([59.94.206.141]) by smtp.gmail.com with ESMTPSA id u28sm14802816pfg.95.2017.08.19.03.34.32 (version=TLS1 cipher=AES128-SHA bits=128/128); Sat, 19 Aug 2017 03:34:38 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Sat, 19 Aug 2017 16:04:29 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, wsa@the-dreams.de, jacmet@sunsite.dk, jglauber@cavium.com, david.daney@cavium.com, hans.verkuil@cisco.com, mchehab@kernel.org, awalls@md.metrocast.net, serjk@netup.ru, aospan@netup.ru, isely@pobox.com, ezequiel@vanguardiasur.com.ar, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH 1/4] i2c: busses: make i2c_adapter const Date: Sat, 19 Aug 2017 16:04:12 +0530 Message-Id: <1503138855-585-2-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503138855-585-1-git-send-email-bhumirks@gmail.com> References: <1503138855-585-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 const as they are only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal Acked-by: David Daney --- drivers/i2c/busses/i2c-kempld.c | 2 +- drivers/i2c/busses/i2c-ocores.c | 2 +- drivers/i2c/busses/i2c-octeon-platdrv.c | 2 +- drivers/i2c/busses/i2c-thunderx-pcidrv.c | 2 +- drivers/i2c/busses/i2c-xiic.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/i2c/busses/i2c-kempld.c b/drivers/i2c/busses/i2c-kempld.c index 25993d2..e879190 100644 --- a/drivers/i2c/busses/i2c-kempld.c +++ b/drivers/i2c/busses/i2c-kempld.c @@ -289,7 +289,7 @@ static u32 kempld_i2c_func(struct i2c_adapter *adap) .functionality = kempld_i2c_func, }; -static struct i2c_adapter kempld_i2c_adapter = { +static const struct i2c_adapter kempld_i2c_adapter = { .owner = THIS_MODULE, .name = "i2c-kempld", .class = I2C_CLASS_HWMON | I2C_CLASS_SPD, diff --git a/drivers/i2c/busses/i2c-ocores.c b/drivers/i2c/busses/i2c-ocores.c index 34f1889..8c42ca7 100644 --- a/drivers/i2c/busses/i2c-ocores.c +++ b/drivers/i2c/busses/i2c-ocores.c @@ -276,7 +276,7 @@ static u32 ocores_func(struct i2c_adapter *adap) .functionality = ocores_func, }; -static struct i2c_adapter ocores_adapter = { +static const struct i2c_adapter ocores_adapter = { .owner = THIS_MODULE, .name = "i2c-ocores", .class = I2C_CLASS_DEPRECATED, diff --git a/drivers/i2c/busses/i2c-octeon-platdrv.c b/drivers/i2c/busses/i2c-octeon-platdrv.c index 917524c..64bda83 100644 --- a/drivers/i2c/busses/i2c-octeon-platdrv.c +++ b/drivers/i2c/busses/i2c-octeon-platdrv.c @@ -126,7 +126,7 @@ static u32 octeon_i2c_functionality(struct i2c_adapter *adap) .functionality = octeon_i2c_functionality, }; -static struct i2c_adapter octeon_i2c_ops = { +static const struct i2c_adapter octeon_i2c_ops = { .owner = THIS_MODULE, .name = "OCTEON adapter", .algo = &octeon_i2c_algo, diff --git a/drivers/i2c/busses/i2c-thunderx-pcidrv.c b/drivers/i2c/busses/i2c-thunderx-pcidrv.c index ea35a895..df0976f 100644 --- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c +++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c @@ -75,7 +75,7 @@ static u32 thunderx_i2c_functionality(struct i2c_adapter *adap) .functionality = thunderx_i2c_functionality, }; -static struct i2c_adapter thunderx_i2c_ops = { +static const struct i2c_adapter thunderx_i2c_ops = { .owner = THIS_MODULE, .name = "ThunderX adapter", .algo = &thunderx_i2c_algo, diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index 34b27bf..ae6ed25 100644 --- a/drivers/i2c/busses/i2c-xiic.c +++ b/drivers/i2c/busses/i2c-xiic.c @@ -721,7 +721,7 @@ static u32 xiic_func(struct i2c_adapter *adap) .functionality = xiic_func, }; -static struct i2c_adapter xiic_adapter = { +static const struct i2c_adapter xiic_adapter = { .owner = THIS_MODULE, .name = DRIVER_NAME, .class = I2C_CLASS_DEPRECATED,