Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1682598ybl; Wed, 8 Jan 2020 23:14:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxn3PD91uKZHKZ0BuY4KpuJjLb4/UAqj1ox+nfUt4Mt7JJW75pKsjDAPbUz2g0ugMMzdu9/ X-Received: by 2002:a9d:5786:: with SMTP id q6mr7093215oth.164.1578554089488; Wed, 08 Jan 2020 23:14:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578554089; cv=none; d=google.com; s=arc-20160816; b=A+UM6y/WZuRCEEYSKgt1AqPtyD9mzginkSptNk/a4+IRzHLJGUEbbomgtjBNwK0G0z 3uzEu3J+REmTF0gKlMvbQlybBS4cuacu4gcXDpV3dvo2vVLeU66lg6ws0HcOLGCBD5mB CA0YLuBJl4VHApliPqdgwWl5sB+Oq5s4Ag/EOtpWwCjeEPUzUUgch2U2Kt+TuhHNFAax oyrFRiYjuGwkXOApkeE9AD4/ydrPYcz+OG7gumf4oXTOgN/IWGbIeRktwoN0Rwy1W7Ls 9SSJGSaq6B2H4m4YEDYHQMuJ1QRQvUKDIf5OFqVPaJQvtE0rG9faXN75X/Fumb9eHusG 5MUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=fiAFQtFUwFWdNOhh+Eg7UU9rxYfvjrXKHQ0J5ZCCP5w=; b=aqdV2LTYKAl7kulNGWkLLYshHITXZrmKWZ9+GzIrIoALdK/GysGHz1IR9dCTRgTL/s 6scsvVnHEpFYmFUXLV91Yk5NiJi2U8W0vAT+FSQ8dvGiORF57kC2MzHE2T3lB22KMIjE 0+YJ9tPfV9xkhaYFB1SP7QYSibukd3ONvgM+uj2zOFi0TzGGfwNL5vHHuxDqiyWwFxYu 7kGifQo1XvGXULfClpvvFEGSU6uD7t5FDKeWUyIxiMcwmm7POyERTpFDO88SN33azzPe 4ZRTSYKQp6sNWNR+2HSTmRRBGoNxE60ZFN9GGGjzflrOCed2/YTaxFxef11MRquCbopJ W1/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oH+j2IDm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w19si3729827otj.209.2020.01.08.23.14.37; Wed, 08 Jan 2020 23:14:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=oH+j2IDm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728231AbgAIHN5 (ORCPT + 99 others); Thu, 9 Jan 2020 02:13:57 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:34970 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726541AbgAIHN4 (ORCPT ); Thu, 9 Jan 2020 02:13:56 -0500 Received: by mail-oi1-f194.google.com with SMTP id k4so5057456oik.2; Wed, 08 Jan 2020 23:13:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=fiAFQtFUwFWdNOhh+Eg7UU9rxYfvjrXKHQ0J5ZCCP5w=; b=oH+j2IDm8TIe8TKnEyvwYCKw3+LwczR3mBJig2UALv8he2fPsNghRzlbV2VMdPEZ7j fZEilEQ31yNGElzAe8XGp1YtjcEsI9igG/YF9/nFWM3I0e5UWsZaehdCukHKkzIusYBN uVP+RgcN/HLaesXVKDg0FkwRyWjAlMDvktCfuAvU1qChE5C0vlZfMjDTGahLIdVjUGA5 YKztgB7yV8yrewOwXGQ4bJgl3XxlSXJxLyXX8Ykd+vGoMwC5qy7JPEaz7U82gJzHOZsj jsejjFUy35zlqrAcbFY+//9mQnR0xZ5sIDVioWwbS1f6j5b0HzYIY1xIB+Xh8DfHs1s4 sVTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fiAFQtFUwFWdNOhh+Eg7UU9rxYfvjrXKHQ0J5ZCCP5w=; b=ZXKEStntThU3/byrkB5ydYMQCopnKGXqGFBK9g8FcJcDdO/7e3MmJOETI4WEdw4qKX JjFaO2FmmhG2pjAzl7QE93D/KqtyDCnHB86WA3wRNqyWh0BFYYWiNswDIS2V/o7IJ465 XKQLUX74xCgJHW759LA2AVLDA99ee8eD3Efzf7N2lMO487A42TIoPA45joG9F31kaB+b 4iszXOc2+F7/SaHlNpTBMmxOW+Zo7G+SIlDujnBU5G80+vEAghjveGfwzAOnToxYYOP0 HUkAWC+9O5L0sURLwgobtgtod1xjcXYzL8eZD899EYXhGTCO79RCSeplZgP0j0ec9fcD +qQQ== X-Gm-Message-State: APjAAAXv1BmmH48ysLn5NTlJrhYYuld0q3uk0asLnYgrpmu6B0z2aVkH xLMRKp932yKpapd/Ss/+X2WPdgkY2kMSzZjfdJ+UKwghE6g= X-Received: by 2002:aca:4ad5:: with SMTP id x204mr2021778oia.162.1578554035952; Wed, 08 Jan 2020 23:13:55 -0800 (PST) MIME-Version: 1.0 References: <1577864614-5543-1-git-send-email-Julia.Lawall@inria.fr> <1577864614-5543-6-git-send-email-Julia.Lawall@inria.fr> In-Reply-To: <1577864614-5543-6-git-send-email-Julia.Lawall@inria.fr> From: "Lad, Prabhakar" Date: Thu, 9 Jan 2020 07:13:30 +0000 Message-ID: Subject: Re: [PATCH 05/16] media: isif: constify copied structure To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, Mauro Carvalho Chehab , linux-media , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 1, 2020 at 8:20 AM Julia Lawall wrote: > > The isif_config_defaults structure is only copied into another > structure, so make it const. > > The opportunity for this change was found using Coccinelle. > > Signed-off-by: Julia Lawall > Acked-by: Lad Prabhakar Cheers, --Prabhakar Lad > --- > drivers/media/platform/davinci/isif.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/media/platform/davinci/isif.c b/drivers/media/platform/davinci/isif.c > index b49378b18e5d..c98edb67cfb2 100644 > --- a/drivers/media/platform/davinci/isif.c > +++ b/drivers/media/platform/davinci/isif.c > @@ -29,7 +29,7 @@ > #include "ccdc_hw_device.h" > > /* Defaults for module configuration parameters */ > -static struct isif_config_params_raw isif_config_defaults = { > +static const struct isif_config_params_raw isif_config_defaults = { > .linearize = { > .en = 0, > .corr_shft = ISIF_NO_SHIFT, >