Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1246034imd; Sat, 27 Oct 2018 05:22:05 -0700 (PDT) X-Google-Smtp-Source: AJdET5e3zLNUpMyF0Ue0Bltg/Go4Fp4g6r3W2xFvCuOpVonS3PJn4zmkHrKHfl+FtFvG6oVTbW72 X-Received: by 2002:a17:902:6684:: with SMTP id e4-v6mr7118099plk.173.1540642925691; Sat, 27 Oct 2018 05:22:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540642925; cv=none; d=google.com; s=arc-20160816; b=tw33FKMmQJDunmyNsp8vPgoBJoHtXWfForYlcqsDoFs3JdFeIQHl3VvAXm5S6Tltl5 yEIiXO6cBRNZmMjBIBpMhYky+5tEH42A+tlFbZ6yehVRBfvXLfwaEqqKx8JB2ixAylUX L2ecM9/96CqlpveiQfouyPwLOp7MAte5fbiNF3P/8h7uJwIBr2/f1ARXSDw1y3enwlYm EYTWb8LL6kasuAGbye35BaVYAp6kacARK4gjaD62wJIIybzi9XAH+uzGMhLGeUbqmpxa 7NyfhShU6Mn+9xFhCNFGQV3LMj1T+5xYlzBIyDgQNVg7bPh02OxM7vrBaHeAx1wNSxGg CoSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=7ZNEo6dJl/f8K519Lszf/VXyBt+P4SMo7/r18dmQowM=; b=W29+gBMAWo3ZB9Wmm2SDfI39Hpd1ocAVi6xVw0sYTe7NcX2CHrYKgIXHWMeLqaUso1 RJU0X9MxGR8V4fSDhCx7cjuJkOrSYf1TPZVWpr411GJxO2rDRU39ob6SVcUHTz32MngC rdlAVDdRlVgdtBofirYBDnsKyumYZwWPpnUFSSNBKBWLyAbKKTfMYZY4kubL2zWDyruW J/uMLJCgcv9ARMcPbl1EgTJxhIQdBfAPgwJG7LLn5ngbXUS6EsF0wTqlnXNc2nuBZYDt uXCVimbpejZJqmgo5YM0ExdJx5c5SBVA3EvWCkb7epKGctzpvHXbtr6vzHRMq6hmrtVT fCGw== 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 c135-v6si5343196pfc.6.2018.10.27.05.21.50; Sat, 27 Oct 2018 05:22:05 -0700 (PDT) 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 S1728589AbeJ0VCR (ORCPT + 99 others); Sat, 27 Oct 2018 17:02:17 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:24225 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726254AbeJ0VCR (ORCPT ); Sat, 27 Oct 2018 17:02:17 -0400 X-IronPort-AV: E=Sophos;i="5.54,431,1534802400"; d="scan'208";a="353086742" Received: from palace.lip6.fr ([132.227.105.202]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA256; 27 Oct 2018 14:21:27 +0200 From: Julia Lawall To: Mauro Carvalho Chehab Cc: kernel-janitors@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: mxl5xx: constify dvb_frontend_ops structure Date: Sat, 27 Oct 2018 13:46:11 +0200 Message-Id: <1540640771-25478-1-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The dvb_frontend_ops structure is only copied into the ops field of a dvb_frontend structure, so it can be const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/media/dvb-frontends/mxl5xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/dvb-frontends/mxl5xx.c b/drivers/media/dvb-frontends/mxl5xx.c index 6191315f5970..290b9eab099f 100644 --- a/drivers/media/dvb-frontends/mxl5xx.c +++ b/drivers/media/dvb-frontends/mxl5xx.c @@ -781,7 +781,7 @@ static int set_input(struct dvb_frontend *fe, int input) return 0; } -static struct dvb_frontend_ops mxl_ops = { +static const struct dvb_frontend_ops mxl_ops = { .delsys = { SYS_DVBS, SYS_DVBS2, SYS_DSS }, .info = { .name = "MaxLinear MxL5xx DVB-S/S2 tuner-demodulator",