From patchwork Fri Aug 23 12:26:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 11111535 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EC91A1399 for ; Fri, 23 Aug 2019 12:26:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CA194233FE for ; Fri, 23 Aug 2019 12:26:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566563200; bh=ypX1o2hsCuFhuHU1jRTYCJPB+2mmYAusUPZwUYutOEU=; h=From:To:Cc:Subject:Date:List-ID:From; b=rD+JRLWxo7iv58CsI/qXvmY8TYRLWvryc/HJxa5fWw6XQ0pM7zAeZrAYUf2yA4YHm BzayJOKG9j2ZTFxPnH4XLi/0q/BzSCymbzFIP5OJysjMfbDrKqZZXZYLk3RSbdpDgM AV2uKLownKwvkx0ZLB83fqnQLxWT4e7aHmruGJRU= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728782AbfHWM0h (ORCPT ); Fri, 23 Aug 2019 08:26:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:33864 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbfHWM0h (ORCPT ); Fri, 23 Aug 2019 08:26:37 -0400 Received: from localhost (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B74CC21848; Fri, 23 Aug 2019 12:26:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566563196; bh=ypX1o2hsCuFhuHU1jRTYCJPB+2mmYAusUPZwUYutOEU=; h=From:To:Cc:Subject:Date:From; b=N//QOvIGXpermGaHXdkc+saq9orHM12iIj1Oi8bs3n86Nf4QJ8dt7eGg1zswdtcwO yJKIVRyFYIx5j2dT07NE/kDUo88ce4U6lWJn3u/xJfso2b9RFC2KvqQYvw7xAeywis KMbW6gT1AHZUxvxtm1kemzr14n0dWuA8iH/uRCFM= From: Maxime Ripard To: Hans Verkuil , Sakari Ailus , Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org, Chen-Yu Tsai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Maxime Ripard , Hans Verkuil Subject: [PATCH] media: sun4i: Make sun4i_csi_formats static Date: Fri, 23 Aug 2019 14:26:32 +0200 Message-Id: <20190823122632.30610-1-mripard@kernel.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Maxime Ripard The sun4i_csi_formats array is only used in sun4i_v4l2.c, so it doesn't make any sense to have it !static. Reported-by: Hans Verkuil Signed-off-by: Maxime Ripard --- drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c b/drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c index 772b0fc5920f..967bdb99221c 100644 --- a/drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c +++ b/drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c @@ -18,7 +18,7 @@ #define CSI_DEFAULT_WIDTH 640 #define CSI_DEFAULT_HEIGHT 480 -const struct sun4i_csi_format sun4i_csi_formats[] = { +const static struct sun4i_csi_format sun4i_csi_formats[] = { /* YUV422 inputs */ { .mbus = MEDIA_BUS_FMT_YUYV8_2X8,