Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1394022pxb; Fri, 21 Jan 2022 17:31:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJxt97DnrBVF8It5LQLWcXQJDyDhhS/7DYGUsQnXMjKQsg4H1XtAMKEoDVocv3GDu2bE68vE X-Received: by 2002:a17:90b:4c89:: with SMTP id my9mr3271473pjb.74.1642815069529; Fri, 21 Jan 2022 17:31:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642815069; cv=none; d=google.com; s=arc-20160816; b=l2O9/rkNl1oa/yv3SQNJRGjmdSw28JF/sH5fQu1xMED+V9c6bdxjw0oXDntHaLHpww p1SFQE+5i2US6Q6DAGYceZaucd92E6pl6eag2j7oPwdINqllRAxZzRLU+enDw0xRSeZi dAKTJYvxz9YP8ouPCRVxzDeBIKACVspjVOd3OQ7MjhvWizVQseYEAQrb09ngzLvhLVUn /gt8YGWWnk6Mz2hQR29tagiQNeAvjH/NPcCofYeZ9scFtKyDWeORIJIZ+n4lKVIJcxwa WaVob8WSrDrMXRI9Uw3WhHV7OHRp1M0r1GDm05qD/BV/kz7ZtokKEzU6FJeYrt7hn5TJ KdMw== 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 :ironport-sdr:dkim-signature; bh=/XNS4K2CuMw0baMSJKMld/j40hhAFpcnsibljUheRzY=; b=bYJ+Gt8ETqU7HLBTscAJYEhFp9QKJmh+boPcW4WvxKGhN9qsFTzGyiqkQXbzRng1+k NqJEUtlhLfRTctQ3u7UOO6fui6nkGr1xI2hZ+DtFYuYlWteZyIomAa/NU/eGvwChqnw1 jWWkvEPG/H7rXzeQV64LNEu0zYeGgWY3UyRftrHaCF+0BcFSfmTBLOhfJ97CfEs/cxwA eCC2DQbisXhbQ0mgs24o7uQbBpv9rhg7pqzvwszokvhJjAtQ0wmdOwRHuWy+fNbGclp8 +EcWyub2zN6raGE79MkwcuZFOwCzavqmETZoCSBtXPJzE+3Yb6XWv2Da2g/r9rA5G5xg X4rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=r9nUmOjh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si7592852pgc.103.2022.01.21.17.30.57; Fri, 21 Jan 2022 17:31:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=r9nUmOjh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1380627AbiAUNQZ (ORCPT + 99 others); Fri, 21 Jan 2022 08:16:25 -0500 Received: from esa.microchip.iphmx.com ([68.232.154.123]:4288 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350614AbiAUNQY (ORCPT ); Fri, 21 Jan 2022 08:16:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1642770984; x=1674306984; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=inbCfOApjHcZj6rPnStLuoDA+QTiQF8O+NIL6iLwJf0=; b=r9nUmOjhp1/ZcXNat+J+N2oQN5ez/mURoOQgOCFZbmtuP3lZa1I57zQ6 5BuJSUt8ziZRWEaKZiscALJgizfcjyd3nU86evQ1hUZC/pTuJQYGHQ8cQ h2uXlZ8ezLqBR15LSm7951SI/OECjC8zHihElpRBoVvZcqEzx/KqSa4Ca uD8XoOcCXFgMde7JV/Cb7kJzq9Pw1CJCP4bqFmDdXjWZ4XAV7HPFugvi/ TCZZqM7xpNp4RXniPH41wMBaHkNlJXkyg/tl6k04tugLbznHFz+nvVfU8 7WkzyBE+5dX9AscO/eDaT4ooVBRpyMVuN5kh2s2INrkpuH/8MH58dkLLQ A==; IronPort-SDR: l0lvAG1NJJMfWXGsMk0PdirAfQeRzOONF4gI9+jDEw5ih2QTFOUUI2ea1vrvn08aHn3M0LSzcG lbiaBvuwuVggANeONqDSOikdhRzZfiHj3baZGod+Ocyetu9BguJWk9g3hSxXL+Z5tCKhvz9UH+ SNxrh/Z4RGmRKg6T+ggHscAeg5dFBAPogD8rPpROMDG/E2HBn6I3tEkcLdrQGJIy8LmPJsNJ2A u8wr5GM+jROxAU2+ohyCOAq1Hz9jO+iZCfD19H25cEa2KvZlCohepPNOR+lATAAnVCg3Ylk3mB hAX55+17FGyC7nlZNRDMLVsD X-IronPort-AV: E=Sophos;i="5.88,304,1635231600"; d="scan'208";a="143468689" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 21 Jan 2022 06:16:23 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Fri, 21 Jan 2022 06:16:23 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Fri, 21 Jan 2022 06:15:59 -0700 From: Eugen Hristev To: , , , , , , CC: , , , Eugen Hristev Subject: [PATCH v4 06/11] media: atmel: atmel-isc: compact the controller formats list Date: Fri, 21 Jan 2022 15:14:11 +0200 Message-ID: <20220121131416.603972-7-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220121131416.603972-1-eugen.hristev@microchip.com> References: <20220121131416.603972-1-eugen.hristev@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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