Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2191930pxp; Mon, 7 Mar 2022 10:05:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJw80BJenTeDKfjzj5/mChs1iSxiv/H/3s3tBOz6mzgTfsoO99z7x2uzciPadlf5YZOkgc/M X-Received: by 2002:a25:4f05:0:b0:628:d05c:246e with SMTP id d5-20020a254f05000000b00628d05c246emr8822260ybb.367.1646676310519; Mon, 07 Mar 2022 10:05:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646676310; cv=none; d=google.com; s=arc-20160816; b=kuDV3sfZgpwxp0RBFYa8lQ4YyA/ni7MwmZNNOFyz7E2T/WKYqRjlJJprUSh5CuLt9f e/6QstMOvjNFOJ9SQEwfG+HrEzV+u6408e9SeMFPRrNHEog/4FE122mbRxRirLb39YcT xurjexsygh/ScRgE5vjoh9RuwN3An8j8kqmFLkXdGu9vTO+1mHrHXg+gZ14I27l6SRV1 EXH8MtiyheSO/ppmB3AD3uLZO8FucNrvAYMucNmzLg17AdTznRL6XAz9KJQe2e/tKXws BBNqT98dlc6QhIAjjbRJA+VlLqxNS6sjfZ3oR2ZNbY/KeXCOyS/kkTyWPjUuIGJp1dpB MI1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/XNS4K2CuMw0baMSJKMld/j40hhAFpcnsibljUheRzY=; b=xyrho1CU+410pageY9Vc5C7Kgxu24UqVD7kWwtCKTZ71/xf4QlrFrGgv3KiZ6/dwZt MfO57sB5M0Nsj/tPnWFNaMVENd2nqCsgZViAFBESyO9eLRwsd47q2bIuuparpYHxiUda 3bR007/RhvmiJe8FEj41qzwXd68QxtHNcc6+5CY/vOneuz/rJc/ulqKh8OiQT74JrjQ2 TmepFWAc75nzWlHoRO/JF6wK40P+lcQBMbBOahYLoLmsBlxQPH5QxP/NI6yy1wwT3XXQ gk0je9R1VZNVjy7KPete4nq+pE4GhmWjYyj6LJETG6fdbm3k9vlb8wPZo8jbQEG8n7A/ KLJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=PBeEy+76; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a259f0d000000b00628a6ca7e30si8751883ybq.395.2022.03.07.10.04.54; Mon, 07 Mar 2022 10:05:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=PBeEy+76; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240802AbiCGMGx (ORCPT + 99 others); Mon, 7 Mar 2022 07:06:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240002AbiCGMGu (ORCPT ); Mon, 7 Mar 2022 07:06:50 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF76A7562D; Mon, 7 Mar 2022 04:05:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646654745; x=1678190745; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=inbCfOApjHcZj6rPnStLuoDA+QTiQF8O+NIL6iLwJf0=; b=PBeEy+7661EX9T138w/FW56qgkFoQ/p2mH1rfEr7269WL+3nvqv1g+Ej 6xS/uwz8bBvUFDxXlKb/06WMSta+4gTHx5UlTHCsIUwmyiPoK99Wqj6tn 8edxXaipznBytrvynQf7MANKik5aA/iqQj3u6PLjpIuHze1frQk3J8X+T ake8j3Vsu0YJ2/QawkeZ8fyeoyZpRIRBeGVAsAxglxpZ8F6MBSvcCXtkP 3TPW5vT5RYDF8GM6LH+nfID2QgXgvxv0XC5an3oEIkctLpc4zoyIEZAJ3 CSVnKm+hr4FBKXTpWblg3Gt5lg7sQo+t8Xyk8m2fQI2jeM2gI/dFskDEW Q==; X-IronPort-AV: E=Sophos;i="5.90,162,1643698800"; d="scan'208";a="155485971" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Mar 2022 05:05:44 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Mon, 7 Mar 2022 05:05:43 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Mon, 7 Mar 2022 05:05:40 -0700 From: Eugen Hristev To: , CC: , , , , , , Eugen Hristev , Jacopo Mondi Subject: [PATCH v7 07/13] media: atmel: atmel-isc: compact the controller formats list Date: Mon, 7 Mar 2022 14:04:17 +0200 Message-ID: <20220307120423.2427631-8-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220307120423.2427631-1-eugen.hristev@microchip.com> References: <20220307120423.2427631-1-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_SCC_BODY_TEXT_LINE, T_SPF_PERMERROR autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Compact the list array to be more readable. No other changes, only cosmetic. Signed-off-by: Eugen Hristev Reviewed-by: Jacopo Mondi --- .../media/platform/atmel/atmel-sama5d2-isc.c | 51 ++++++---------- .../media/platform/atmel/atmel-sama7g5-isc.c | 60 +++++++------------ 2 files changed, 37 insertions(+), 74 deletions(-) diff --git a/drivers/media/platform/atmel/atmel-sama5d2-isc.c b/drivers/media/platform/atmel/atmel-sama5d2-isc.c index 025c3e8a7e95..d96ee3373889 100644 --- a/drivers/media/platform/atmel/atmel-sama5d2-isc.c +++ b/drivers/media/platform/atmel/atmel-sama5d2-isc.c @@ -60,56 +60,39 @@ static const struct isc_format sama5d2_controller_formats[] = { { .fourcc = V4L2_PIX_FMT_ARGB444, - }, - { + }, { .fourcc = V4L2_PIX_FMT_ARGB555, - }, - { + }, { .fourcc = V4L2_PIX_FMT_RGB565, - }, - { + }, { .fourcc = V4L2_PIX_FMT_ABGR32, - }, - { + }, { .fourcc = V4L2_PIX_FMT_XBGR32, - }, - { + }, { .fourcc = V4L2_PIX_FMT_YUV420, - }, - { + }, { .fourcc = V4L2_PIX_FMT_YUYV, - }, - { + }, { .fourcc = V4L2_PIX_FMT_YUV422P, - }, - { + }, { .fourcc = V4L2_PIX_FMT_GREY, - }, - { + }, { .fourcc = V4L2_PIX_FMT_Y10, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SBGGR8, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SGBRG8, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SGRBG8, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SRGGB8, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SBGGR10, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SGBRG10, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SGRBG10, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SRGGB10, }, }; diff --git a/drivers/media/platform/atmel/atmel-sama7g5-isc.c b/drivers/media/platform/atmel/atmel-sama7g5-isc.c index 9dc75eed0098..e07ae188c15f 100644 --- a/drivers/media/platform/atmel/atmel-sama7g5-isc.c +++ b/drivers/media/platform/atmel/atmel-sama7g5-isc.c @@ -63,65 +63,45 @@ static const struct isc_format sama7g5_controller_formats[] = { { .fourcc = V4L2_PIX_FMT_ARGB444, - }, - { + }, { .fourcc = V4L2_PIX_FMT_ARGB555, - }, - { + }, { .fourcc = V4L2_PIX_FMT_RGB565, - }, - { + }, { .fourcc = V4L2_PIX_FMT_ABGR32, - }, - { + }, { .fourcc = V4L2_PIX_FMT_XBGR32, - }, - { + }, { .fourcc = V4L2_PIX_FMT_YUV420, - }, - { + }, { .fourcc = V4L2_PIX_FMT_UYVY, - }, - { + }, { .fourcc = V4L2_PIX_FMT_VYUY, - }, - { + }, { .fourcc = V4L2_PIX_FMT_YUYV, - }, - { + }, { .fourcc = V4L2_PIX_FMT_YUV422P, - }, - { + }, { .fourcc = V4L2_PIX_FMT_GREY, - }, - { + }, { .fourcc = V4L2_PIX_FMT_Y10, - }, - { + }, { .fourcc = V4L2_PIX_FMT_Y16, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SBGGR8, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SGBRG8, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SGRBG8, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SRGGB8, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SBGGR10, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SGBRG10, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SGRBG10, - }, - { + }, { .fourcc = V4L2_PIX_FMT_SRGGB10, }, }; -- 2.25.1