From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mga04.intel.com ([192.55.52.120]:15091 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752870AbcBXRF4 (ORCPT ); Wed, 24 Feb 2016 12:05:56 -0500 From: Sakari Ailus To: linux-media@vger.kernel.org Cc: laurent.pinchart@ideasonboard.com, hverkuil@xs4all.nl Subject: [PATCH v5 1/4] v4l: libv4lsubdev: Make mbus_formats array const Date: Wed, 24 Feb 2016 18:25:25 +0200 Message-Id: <1456331128-7036-2-git-send-email-sakari.ailus@linux.intel.com> In-Reply-To: <1456331128-7036-1-git-send-email-sakari.ailus@linux.intel.com> References: <1456331128-7036-1-git-send-email-sakari.ailus@linux.intel.com> Sender: linux-media-owner@vger.kernel.org List-ID: The array is already static and may not be modified at runtime. Make it const. Signed-off-by: Sakari Ailus Acked-by: Laurent Pinchart --- utils/media-ctl/libv4l2subdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/media-ctl/libv4l2subdev.c b/utils/media-ctl/libv4l2subdev.c index dc2cd87..e45834f 100644 --- a/utils/media-ctl/libv4l2subdev.c +++ b/utils/media-ctl/libv4l2subdev.c @@ -715,7 +715,7 @@ int v4l2_subdev_parse_setup_formats(struct media_device *media, const char *p) return *end ? -EINVAL : 0; } -static struct { +static const struct { const char *name; enum v4l2_mbus_pixelcode code; } mbus_formats[] = { -- 2.1.0.231.g7484e3b