Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp16218818ybl; Wed, 1 Jan 2020 00:23:57 -0800 (PST) X-Google-Smtp-Source: APXvYqzY/swsvp6MpS9/cJ3FDm7txLpRDfdLBd6XDwFYRoxf1JS+dNOq1toej3FrRTQ7b5yRiWnE X-Received: by 2002:a05:6402:228c:: with SMTP id cw12mr80946541edb.151.1577867037125; Wed, 01 Jan 2020 00:23:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577867037; cv=none; d=google.com; s=arc-20160816; b=al6IQ9aL8WMLuE9sjixBMYyTIPBlYgrYFjavcawtSInIDoBVwMgYPd7tBeuAZaSpgo Q+V3d8jnw+98zgqfDZtekzb79v1JX8ZLBDked40meBM6++QAN556KNYxFxkGJldbDSnX B5OlWM02SkgImBfHaV0PfFF78Fv26VbndtKphlyvvWXvF5q/VtqzagQVwtEj5XrLNwlY B0aYvPaZyswJo29lC/D45Dm5gqsZthz0qrcgAUzZwMZskqFexxmrTR6A170yo3Swrhn6 qiLaOMLrWLXRdgY6ZwgBAF5QPXoXsrD6OOrHSqw3+L95jDQIME1l0PUn0itkjddM0KcY ft9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=eT5UbViHkcR1P1IdkrQy+yDx8yypuUfwdejcyHxHT+s=; b=hivH/qESmnzkahIxJIXtZdY733KlC4PoESeSCvHTXNtIHHz6t62jRmFVvhiMXKClff yohYB5sOBTBPfmFzlQmNNym5glmmapDa7jw5v4pERhTH8SlULD34f7eDi2aHQ25F+hn6 WNSaJ2oF8B9jgvPg2aDvM8PaAy+cJWplbuWL5kncaSQJKzPu2o29yC1kuwIlBIt3B2qX v5Hc2ptMA5CcpNaZHpYZzeTsfP6btv+wYcSEY3VQmUrL2EMjUBoIh/fvLf3W/JFiGN+L ToW4uu//itaslq1ks54zflk72vO11aQW8TksOFzmE4VzPDq8vxXmVWF+GrRTN4mXzXXx I9ig== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si23644197ejk.11.2020.01.01.00.23.06; Wed, 01 Jan 2020 00:23:57 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725783AbgAAIUP (ORCPT + 99 others); Wed, 1 Jan 2020 03:20:15 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:56920 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbgAAIUO (ORCPT ); Wed, 1 Jan 2020 03:20:14 -0500 X-IronPort-AV: E=Sophos;i="5.69,382,1571695200"; d="scan'208";a="429578755" Received: from palace.rsr.lip6.fr (HELO palace.lip6.fr) ([132.227.105.202]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA256; 01 Jan 2020 09:20:08 +0100 From: Julia Lawall To: "Lad Prabhakar" Cc: kernel-janitors@vger.kernel.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 05/16] media: isif: constify copied structure Date: Wed, 1 Jan 2020 08:43:23 +0100 Message-Id: <1577864614-5543-6-git-send-email-Julia.Lawall@inria.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1577864614-5543-1-git-send-email-Julia.Lawall@inria.fr> References: <1577864614-5543-1-git-send-email-Julia.Lawall@inria.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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,