From patchwork Tue Mar 6 15:35:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 10262101 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 820046016D for ; Tue, 6 Mar 2018 15:35:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 728C128D6D for ; Tue, 6 Mar 2018 15:35:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 667A228D60; Tue, 6 Mar 2018 15:35:29 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham 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 DD1E428D60 for ; Tue, 6 Mar 2018 15:35:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753487AbeCFPf1 (ORCPT ); Tue, 6 Mar 2018 10:35:27 -0500 Received: from osg.samsung.com ([64.30.133.232]:44907 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750838AbeCFPf0 (ORCPT ); Tue, 6 Mar 2018 10:35:26 -0500 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id 6F8EE3B1AA; Tue, 6 Mar 2018 07:35:26 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at dev.s-opensource.com Received: from osg.samsung.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CQWOJRiDkfgi; Tue, 6 Mar 2018 07:35:25 -0800 (PST) Received: from smtp.s-opensource.com (177.43.25.174.dynamic.adsl.gvt.net.br [177.43.25.174]) by osg.samsung.com (Postfix) with ESMTPSA id 1AD683B1A2; Tue, 6 Mar 2018 07:35:25 -0800 (PST) Received: from mchehab by smtp.s-opensource.com with local (Exim 4.89) (envelope-from ) id 1etEcc-0006Bl-Mq; Tue, 06 Mar 2018 10:35:22 -0500 From: Mauro Carvalho Chehab Cc: Mauro Carvalho Chehab , Linux Media Mailing List , Mauro Carvalho Chehab , Jacopo Mondi , Laurent Pinchart , Hans Verkuil , Guennadi Liakhovetski , Bhumika Goyal Subject: [PATCH] media: ov772x: constify ov772x_frame_intervals Date: Tue, 6 Mar 2018 10:35:22 -0500 Message-Id: <7b69f2cb91319abdacf37be501db2eae45112a09.1520350517.git.mchehab@s-opensource.com> X-Mailer: git-send-email 2.14.3 To: unlisted-recipients:; (no To-header on input) 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 The values on this array never changes. Make it const. Signed-off-by: Mauro Carvalho Chehab Acked-by: Jacopo Mondi --- drivers/media/i2c/ov772x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/ov772x.c b/drivers/media/i2c/ov772x.c index 16665af0c712..321105bb3161 100644 --- a/drivers/media/i2c/ov772x.c +++ b/drivers/media/i2c/ov772x.c @@ -531,7 +531,7 @@ static const struct ov772x_win_size ov772x_win_sizes[] = { /* * frame rate settings lists */ -static unsigned int ov772x_frame_intervals[] = { 5, 10, 15, 20, 30, 60 }; +static const unsigned int ov772x_frame_intervals[] = { 5, 10, 15, 20, 30, 60 }; /* * general function