From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.50 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795526153; b=kwiXmr5N9zYsIu0p6bxrn2VJG+7iQX8Qc80PbSlnr3OfTIthYWNQI/0SIEjFauaFLOdP pio8kVbKmYT0R0CUjSE4/CadiZZD89GAffIWg/7hmbYOm9Qo2W/HOMuhnsNLlAuLbqzJA oUafh6fIWzVlcjZeXG1gU964ZhLcCw3lYUlDWJ1Ky53Grvps7WsY13JoyFH1ALKd+E0Kl xn37FtWfhcoT0ulbeAZjPs49pDMzDrOA6g37WONiYHR3I1joyw0UoqColWoEbEQ2jXI66 4G91lplf18otC2O94YHDaZnnA/JMVeIpE+1dYavFF+T8ZtlXPZgXHz8QIkFY8MdpRwQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795526153; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=tuT74cz72c8LGaZEf/EXNbRDOp5lSq9neVcNGUi1Xnk=; b=29khmOxIPVdEb30Q1ZMLNEZUL8SPOStHqUBjMtVGBQJNbQatUVQd0WRyIUYJRk0IWtSs 6UvLUp+r82q74dDafS0aBc2zFGToyVZzIs9VSTsVryuyFgFT42MOPSXLlw9zxJkyQ+Rpx ZxkFttzu2kzxAd2h2/ad7CyobXS6sbADcRdeSpnmaen1KdjNWh45xR+WmhnF/K32Kqo46 julGEqLa/rFFnCO+wRhx2gP/d6hvVqrM6nic/0Lerlc2p/QC0kaQXLM1ug81tu21gygCn BVHkT952a78AWBtBrnur/2qb6EngvabgoriN3GCwv4FkulyHx3TvKCFg92O8ltc5ozg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=BTqIpOd6; arc=none smtp.remote-ip=209.85.128.50 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7599606A326 for ; Tue, 24 Nov 2026 13:15:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B7599606A326 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=BTqIpOd6 Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4a207b02a2cso31994855e9.1 for ; Tue, 24 Nov 2026 05:15:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1795526151; x=1796130951; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=tuT74cz72c8LGaZEf/EXNbRDOp5lSq9neVcNGUi1Xnk=; b=BTqIpOd68pWLD8LXUCoXpoi8tAzUUHdzQ6p6HHGgKtUp+FvnFlJeMGSW0XRLwsf0Fz OIVl33otepuQlzg28evxJncHfTam2yM6YZROtH0g6GCtb31Gpc9Z/NmZeUpeuMAZB+dZ 6rApZ2nTPaBXez6jMsQ2LG9OPsYyRlisvaCdDYLJCl4rBp3iMsZsQzH8rufJF6mFqwt1 LPjrWRigDHVlOK/12/Up94tsCBIXqbf24jGghoYEvjEx8aCTK9Ix7WZNtTZ/ubpJzLUx PZho9OeZ6wzfJiG9qmpqapzpW914BhoadgV2uhGMP08ovGtNtZmbX59yxHu7kGf631iY 3W3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795526151; x=1796130951; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=tuT74cz72c8LGaZEf/EXNbRDOp5lSq9neVcNGUi1Xnk=; b=WcewiToYI71rSnbRmnM0DEve71kox144oNfSyb0ZCK6WsNkXA7mOEk1+v8lG2KfaAc VjtSnLpnPhpuvl9jkjnwN5ajAk6MvKbq3ZNJOEsbKg7gfaCZ/JCKBWg4YZJdJDJmtoDP a6njM4F/wQi9WjzOYP35tDxU5NohF8k7KrmNXPnOoB5w8xNAcJE+6JqBOYTDThSzeEec Kc9s6XuFGUdduyIn9J8lVgnbADUNk8kHKxATkiyuN9tGG4nEmoTauPJVxaURQP8U0UKg nwyGfedNx5hiRVLFypcu8qSDT1uX6XwBKnUtH+LL+o9dOQTkKDxUmXbJePXhmtyTi3qb gVQw== X-Forwarded-Encrypted: i=1; AL+hErGarSH7OE5D9PldmsJB1zEdCqMSz+qHOiHmfnuMNXECHo5mAqy+blm3JAJHcI27VHP4X3qS3G5yQ43W@vger.kernel.org X-Gm-Message-State: APuU4Z9t8ILAqFRxs5lrJl1EfzzqXGu3HGfMvFKaKkIR2nceVD3/DKdl fw4dhA66+pXvnUE4iUhFcXXzSxxU7kw5QsNL11GA5FJtP5XO0u4lfH7cRAxY7c22iUU= X-Gm-Gg: AZFdTZcRKMXEB8EwBKRVfUmkCZG4h2kx6JiVSqTL+MCy0hGounNGHMCov8CsobMzpEf acwxZ3GwjZjB4Mqqq89qHepJNRPaJ+7hUltwxCnqpeThJ+cya+Tz+gTde4yQN06PloxPAQlNTgL GlBBO1SYHoPQK/T2quWtLZ/OJfUnuXSd9XLvUrweYjzdkEZDlopz5aDIhyK2I6wbV3uYKpQjleZ qNcPasGVgl66oNX5p7DzPLDCryGqbHKBtrTmJG9QXAIQN+6cneTNPL8fMHG97RPZv/MH4QdKtZU H9U2Bg9ON3vIxSlQPnpLxF5cIAO15kE4qHws5DIJFyxfJPlOw8kIueT80utAuyDFbs78jr5VtJg rbTNcdKByT6VJV4+7NB4x8+/oKFbMHKFuh8kZXRWuDfUYsmTv01JBOyPRkBNpTxWvHlytgxHunk 4Ry4IXjHKe8mClqEbFPyIEdT1wNy/qmJP8n/CVfrp8eANzRochkqBC8serqKCoBkiVqor/cwoaa V9rZ0dUv1aB7ie/DLHhAcs76Ffc27wCRGMKCBMHGOZXCE2NqD3jap27s4LHWBCsxmv9ylYKA98r NkhxiwAmxinlvdfLplu8XniABP/MaNzkqEgA/sAoWvl2KZFgcuBapZipdAJn1BxAqmf35rQrJIk up0bRlDuj6Imb3pPxncr9pfTi2MK8IUFjPkE0JYs= X-Received: by 2002:a05:600c:4f0d:b0:4bb:5c97:f4b1 with SMTP id 5b1f17b1804b1-4bb8881941bmr337984875e9.24.1795526151031; Tue, 24 Nov 2026 05:15:51 -0800 (PST) Received: from localhost (p200300f65f19a9047f1ca7b446868308.dip0.t-ipconnect.de. [2003:f6:5f19:a904:7f1c:a7b4:4686:8308]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-4bb884b39b6sm396762345e9.12.2026.11.24.05.15.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2026 05:15:50 -0800 (PST) Date: Tue, 24 Nov 2026 14:15:48 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Charvi Mehta Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Vincenzo Frascino , Rathinavel Sankaralingam , Shobhit Pandey Subject: Re: [RFC PATCH 02/28] media: mali-vpu: add Mali VPU platform driver Message-ID: References: <20261119153758.1426673-1-charvi.mehta@arm.com> <20261119153758.1426673-3-charvi.mehta@arm.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kbfofxqjlphqnytx" Content-Disposition: inline In-Reply-To: --kbfofxqjlphqnytx Content-Type: text/plain; protected-headers=v1; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [RFC PATCH 02/28] media: mali-vpu: add Mali VPU platform driver MIME-Version: 1.0 On Tue, Nov 24, 2026 at 10:17:51AM +0000, Charvi Mehta wrote: >=20 > On 11/20/26 11:48, Uwe Kleine-K=C3=B6nig wrote: > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > > +#include > > Please don't include . > >=20 > > > +#include > > > +#include > > > +#include > > already provides of_device_id, so > > can just be dropped. > Thanks, I=E2=80=99ll drop the redundant include. >=20 >=20 > > > [...] > > > +static const struct of_device_id mali_vpu_dt_match[] =3D { > > > + { > > > + .compatible =3D "arm,mali-v76", > > > + .data =3D &mali_vpu_v76_variant, > > > + }, > > > + {}, > > s/{},/{ }/ > I=E2=80=99ll add the space, keeping the trailing comma for consistency wi= th the > other initializers in the driver. Which driver? With your full series applied this is the only list terminator below drivers/media/platform/arm. Note this is different from static struct platform_driver mali_vpu_driver =3D { .probe =3D mali_vpu_probe, .remove =3D mali_vpu_remove, .driver =3D { .name =3D MALI_VPU_DRV_NAME, .of_match_table =3D mali_vpu_dt_match, }, }; where the trailing , is right. My request to drop it only applies to arrays where the empty initializer signals the array's end. I don't find that documented in the coding style description, but with next-20261123 checked out: $ git ls-files drivers | xargs -n 1 perl -g -n -e 'print "$1\n" if m/devic= e_id\s*[a-zA-Z_0-9]*\[\]\s*=3D\s*{(?:\s*{[^}]*},\s*({\s*(?:\s\/\*[^*]*\*\/)= ?},?))/' | sort | uniq -c 1 } 1 { 6 { } 1957 { } 405 { }, 490 {} 576 {}, 1 { /* end */}, 2 { /* sentinel */} 1 { /* sentinel */}, So arrays of type \*device_id[] typically end with the terminator having no trailing comma. (But honestly I'm surprised about nearly 1000 trailing commas, I would have expected that to be much less common, and drivers/media/platform even has more terminators with a trailing comma than without. I'm embarrassed.) Best regards Uwe --kbfofxqjlphqnytx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmsFjgEACgkQj4D7WH0S /k6mJwf9Ecz2SoCd8AmGmyq3W20lpLfNrHtMVzKLZ73vPVXUSeTOE9anlo/n5gwT dkGiZeqHTi1VF+KBdtQnFvvcYsPujwiRAP5NPZfFoTlK6ozq7QAKFGuP68S3ABgX oYIAu4FksdXvbvN62qVP5eb54vzthaRYiZ4oY31gHG00KwCLt+ul//+RB1Lj4rwY I5fWK6hOQlER4U34qBHtTXc95xIicyybp8EQFn8C6oTwU53NJ2kf6cMxUR7ylqK7 VlrK2w6e9ol+WQrQiRHNVflApysdbORy94EnF9msQh8X2ECL4VQHSeEl2+u+eyey zlAZgbX/HBZqGSqmU+XsLIuD23GGXw== =vPI4 -----END PGP SIGNATURE----- --kbfofxqjlphqnytx--