From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53BD131E838 for ; Wed, 10 Jun 2026 16:59:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781110750; cv=none; b=S3GQ6GJTPSmEWKUWFdvjTK+noBJhoV95kbNR87xnfiNb/C2MEh+OWNlt1qQWDdKbDZ1zNcMyBOL76jh/EvEpiSZ0eCfPH2vQPt28WDtu/ywv89mkQSkDGB1X5ZYrEcv8uPmX2EcmWly2gH2vRT66bN1tMtGtmNc6p8kIiagG1SU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781110750; c=relaxed/simple; bh=bVyyrVts4pyEF2ndHUxmpv1aAAxrSJxcFaTJx8fYUog=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rChwbA9uFSjfndc+TJWK50eIGv4xx3t10vVAW9XFuz1yvf1cBgPRUjxzfawZPoEXDgASm/TPM5O4YcTX59JtnElEioqKdTWUbXM8r5C2KDOXryq6MWrUj6VVyPYBcjWkeOdL9/izfNqTuJ5FQv8zpbV4EJOMUNQmEnAZFq0GAwI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.b=YZKaXClf; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (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.b="YZKaXClf" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-490cf3000f0so43812945e9.1 for ; Wed, 10 Jun 2026 09:59:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1781110748; x=1781715548; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=bVyyrVts4pyEF2ndHUxmpv1aAAxrSJxcFaTJx8fYUog=; b=YZKaXClfQihD8Z1mRckE+BYiSitXIc0NCA/zNuMdCwQc9DSRvSfrMLV3/Zo4tXExls RA6pwHd09BOBjrcHqB9cz66rtcKnpVTBU/9G3Ht3IU57ymsbsLKvPSlmYEZN5Q6P90+y qtvO5Q8ib99yj/YB6Sa9/vavmtU98Nbl27TgZmAVizToD+Vl4vIgsVg+A6lo39UP5fG3 HbltKK8geYf8tGv+2ogAiNukXyAX2BwOOqRtGk/foH6pQRcSvNfPdGNBUivm03rvZ5Hj 6A9YahbMO5GSAK2vEY4j+4R2s2XRYSuG0D0i1ymZoLIFKEY3cE3ZKrzrEqHl6oUe8tz2 xouA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781110748; x=1781715548; h=in-reply-to:content-disposition: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; bh=bVyyrVts4pyEF2ndHUxmpv1aAAxrSJxcFaTJx8fYUog=; b=Xz5b0jEib9lE3oCDn7NyvhKY4kVsja59HNI/rsbunfNa9sa3ybOh8+h2lLbGcU5Wy+ HQwDwwyt/bC5QGNXc+9HqV+1bDQaizJ7SRM9twbAmKNIjPZmJOn+f5wOjA3nVpj5uDqU 5qi0bKPgArLbkJHmkw99RlrL/Va9Ac6mbiP72tF9XeYJ4X+fycfRuylBeRkBRseQz5gW h1OWi25OJ8MAEB9yu4SQla2iGIFuBkQOCiR1eGGMbFDXZJzQP9NhArQypBPSanKbOXDc X7cNlOJIoMSX/13yvRcNg2sgcCEWa1GBj4k3lu0W/NkeF8uzyhOOjTQeOMLlMwMEAKTK CULQ== X-Forwarded-Encrypted: i=1; AFNElJ9hJ/AHzjCA/udVb6Jvn/MyCimWosHJ/td7ntjMrkg+RYDFPlDdKuCifAIK+Eb34djPnEpxqzJGnmgMb+A=@vger.kernel.org X-Gm-Message-State: AOJu0YwS1aUbGtuam+JVlpRR4q/NrzSnKiZqu4q0mwVRZ7uqAW7AYZbd 5TIizjGkrG2up5gd+sL3WTOX6nSZzpIkIQjTpwNa/WL0+stt+x7VGTGxJ6g5kpw9Jag= X-Gm-Gg: Acq92OEctvCTP350rzHUs4fblPnfudoocX7WN5l+pfFIiqgvsi9sSAGlCoZpsvoasAI WoVF7exPDKl7yZGXhlAtSV3yV0J7VgDJClkhjIHAxG0zuVSSEzBBXDixXimuHyyY88ObsJywlBf aV5xaoPyFkkTfveMSIwqrUqwPhP/3oJZvGxXsFpro/gK5qfCgcJDX2/lNXIEQXKzN6DKUf0SE+I 5udmj1J2TcWKd3Vci+CZh+32lUAFKDjy9aUioSNnwf4sn6Rgf8C9COzvSuDujmQIBV39kn4uyUk XpoWk8qCDIC4k5Aigi7YwwomDuZhGg1DxQivcXsMChB1QqEIGD322/0LlY91zol2QQ1JhTihNxq zCeTmoeQIWGuRelbkD4p+l+RWnc0nNgDiK0DXoY9PXWSe+Xtcx+L1dZlwogohGFMGCdGy7+5XOh PDgfahx4egoUKKlag2c4UDxYeM8DepI6igbtplwd4qcI+OTxBfQLgTLxw0HM4qLAIXa6i3lhBd3 uqzEdRu2waVNwhODnVoKZvMbA== X-Received: by 2002:a05:600c:674f:b0:490:6e11:c303 with SMTP id 5b1f17b1804b1-490c25ed266mr430620245e9.13.1781110747684; Wed, 10 Jun 2026 09:59:07 -0700 (PDT) Received: from localhost (p200300f65f47db046aec8c3a4b621e71.dip0.t-ipconnect.de. [2003:f6:5f47:db04:6aec:8c3a:4b62:1e71]) by smtp.gmail.com with UTF8SMTPSA id ffacd0b85a97d-4601f344762sm78016031f8f.23.2026.06.10.09.59.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2026 09:59:06 -0700 (PDT) Date: Wed, 10 Jun 2026 18:59:04 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig_=28The_Capable_Hub=29?= To: Sven Peter , Janne Grunau , Neal Gompa , Marcel Holtmann , Luiz Augusto von Dentz Cc: Markus Schneider-Pargmann , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Bluetooth: hci_bcm4377: Use named initializers for pci_device_id array Message-ID: References: <20260504160940.2168650-2-u.kleine-koenig@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3msjhzytjrmzyqmh" Content-Disposition: inline In-Reply-To: <20260504160940.2168650-2-u.kleine-koenig@baylibre.com> --3msjhzytjrmzyqmh Content-Type: text/plain; protected-headers=v1; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH] Bluetooth: hci_bcm4377: Use named initializers for pci_device_id array MIME-Version: 1.0 On Mon, May 04, 2026 at 06:09:40PM +0200, Uwe Kleine-K=F6nig (The Capable H= ub) wrote: > Initializing a struct using list initializers is hard to read, compared > to that using named initializers is more ideomatic. Convert the macro > used to assign values in the driver's pci_device_id array accordingly. >=20 > This change doesn't introduce any changes to the compiled array on an > x86 and an arm64 build. >=20 > Signed-off-by: Uwe Kleine-K=F6nig (The Capable Hub) > --- > Hello, >=20 > this is a preparing change for making struct pci_device_id::driver_data an > anonymous union (similar to > https://lore.kernel.org/all/cover.1776579304.git.u.kleine-koenig@baylibre= =2Ecom/). > This requires named initializers for .driver_data. But even without that > this is a nice cleanup making the macro better readable. >=20 > Gcc is happy with simplifying the assignment further using > PCI_VDEVICE(BROADCOM, BCM ## id ## _DEVICE_ID), but this is a bit fishy > because PCI_VDEVICE also assigns .class and .class_mask (using list > initializers), so I didn't convert that. In the meantime I learned that doing that would break W=3D1 builds, so it was a good choice to not go that path. > Once all pci_device_id use > named initializers, the two zeros can be dropped from PCI_VDEVICE and > this entry simplified accordingly. Is this patch still on someone's radar? Ideally for application in time for 7.2-rc1? Best regards Uwe --3msjhzytjrmzyqmh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmopl9QACgkQj4D7WH0S /k4iqggAj3aeMF621GTGpJEHIqnNARfBAqngiHflYRiIhmKykwRxpBFaMIbsMmcs qaS9NHLpxehcieZKUsjtuHpxJ6kc8//qqgRhfwcBdzpgoWz+eFyjxaIXavQ1z87b k8YJJ6J5VNFnXKiZT4pBl1W7c3eWF+kCoq8UYyNHvI/cE1CCAd7qR5gprTFiZHkS xH+/9H//w9KQEGL8tDXY2q2s0QSwThwPnABCbIl2gzwsnU/MhM73oQW+DhH1WaRy rfclH5p/FfkqtITu8CqaDd2hAxtn3KVvBCbQRNHYk6nGHQnxWMnl9fOCSVMu+3HT mPViuT/eGfETuUtngl9g2o6whmonPw== =hiX3 -----END PGP SIGNATURE----- --3msjhzytjrmzyqmh--