Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1452288pxp; Thu, 10 Mar 2022 05:51:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9t1zQQgbGEGny3iqnp+oipUHmES8LGtwrZPaHUxcs5iglbSpUTK0WcCQZm0YZ0J7EnC7M X-Received: by 2002:a05:6402:5241:b0:416:6cab:5f2f with SMTP id t1-20020a056402524100b004166cab5f2fmr4429254edd.282.1646920261398; Thu, 10 Mar 2022 05:51:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646920261; cv=none; d=google.com; s=arc-20160816; b=UyWaYv966ZVhH04qP5bhpvXoe36zHT5tqAyK3vWE97EjQyB9f7DDhISxXagCR5GjV2 DHm8RtmFTujiEjsH7UD35Pt6AUr/MHPo+ZTlI5+XMQ7LGHvw85Lfdeb71XJhEg+n7tLS pDFPX4kYVgxzsHDtTWVGPA7UrG16r8b4+SNu/Bsx5Muf/QjAmXR6DxQJhVIOLLSpNKQD FugRami4sKN5SJF3mytT5yUX5WEh4auW7Vqoc8p3zmnZ7pwulx81T3C4r31yjfDfEQUF yNuT7HaT2WxaTvgDAawVN/+N9XBgFJIGc5+bzsAkUfJ7T4vVYhQ5IlIg7vAcvxLqD9ns o7hQ== 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=0Ss3AuBFpSxk5zqa4PgBJ3K/21uq5craCvEGX9a/5NvZlUueanzG9mvZubvTOMMH/8 YGrLEmB5rm+u6WyrZXAk5apBiF3rcUUbvzsSk7nlh+YwXeDq5mX/84lA3mXnPYb1/dDC Q4hLYZ0stVPoTSprA6+K8HG25afrDozFELxJsIYwHo6vQs9EOAgGgd3q1zmPPomnq/Xb +dJTfNcx1XDYlHvTU0VsxTS6zZ07oZm4y+NbYDBaSV6g2Z5yARTCjlI4ESCDxl1w1oPR La9kvx8wi1ULhKsg7wJluCdunLtAX+i6EglYYus0vKqZxwqTZiA1E0IxJKDJSyfM39Xo pm0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=qmJJ6uQq; 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 f2-20020a1709067f8200b006d0edf83954si2957388ejr.666.2022.03.10.05.50.38; Thu, 10 Mar 2022 05:51:01 -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=qmJJ6uQq; 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 S241042AbiCJJyF (ORCPT + 99 others); Thu, 10 Mar 2022 04:54:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241003AbiCJJxx (ORCPT ); Thu, 10 Mar 2022 04:53:53 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 075DDE9C; Thu, 10 Mar 2022 01:52:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1646905971; x=1678441971; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=inbCfOApjHcZj6rPnStLuoDA+QTiQF8O+NIL6iLwJf0=; b=qmJJ6uQq0kKauMzpcWUCC6/zR479/yu4//+sB765AgOB6hQn/BSCJBzl OUmWBziMn8409Kj7a3nH5uPYxQjDqxbInAEkgPbsP0gQPSDCQGdMq2fUs 1HMX+dcb6+eJR6p0u4+2vTiLs/IT9ve7G+59MMVHJBAClbPVhHAexiunw 27oCijoJiCLnCJbI/wy2qMksT+aLojRM2vDDYWj7kqrnShmLOp//hK7Kn 0KoDgBlhVJDLIvzQ1QLT5NrKSkN5/V8VvmsWB6RQGcbmVVwjundo5J/Sq RpClC4MEamMiCsvPbC3hBohgAVWKHNZ9mOls9cRcrPdD8B5WYJqZvjIQI g==; X-IronPort-AV: E=Sophos;i="5.90,170,1643698800"; d="scan'208";a="148746148" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 10 Mar 2022 02:52:50 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Thu, 10 Mar 2022 02:52:49 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Thu, 10 Mar 2022 02:52:43 -0700 From: Eugen Hristev To: , CC: , , , , , , Eugen Hristev , Jacopo Mondi Subject: [PATCH v9 07/13] media: atmel: atmel-isc: compact the controller formats list Date: Thu, 10 Mar 2022 11:51:56 +0200 Message-ID: <20220310095202.2701399-8-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220310095202.2701399-1-eugen.hristev@microchip.com> References: <20220310095202.2701399-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