Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH RESEND] Bluetooth: hci_bcm4377: Use named initializers for pci_device_id array
@ 2026-07-18 17:25 Uwe Kleine-König (The Capable Hub)
  2026-07-18 18:03 ` [RESEND] " bluez.test.bot
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Kleine-König (The Capable Hub) @ 2026-07-18 17:25 UTC (permalink / raw)
  To: Sven Peter, Janne Grunau, Marcel Holtmann, Luiz Augusto von Dentz
  Cc: Neal Gompa, asahi, linux-arm-kernel, linux-bluetooth,
	linux-kernel

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.

This change doesn't introduce any changes to the compiled array on an
x86 and an arm64 build.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
---
Hello,

it seems in the bluetooth patchwork patches are archived automatically
after a month. And that even if there is recent activity. I consider
that very annoying for contributors.

So to get back on the list of considered patches, here comes a resend.
The original submission can be found at
https://lore.kernel.org/linux-bluetooth/20260504160940.2168650-2-u.kleine-koenig@baylibre.com
or 
https://patchwork.kernel.org/project/bluetooth/patch/20260504160940.2168650-2-u.kleine-koenig@baylibre.com/
.

Best regards
Uwe

 drivers/bluetooth/hci_bcm4377.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/bluetooth/hci_bcm4377.c b/drivers/bluetooth/hci_bcm4377.c
index 925d0a635945..89c317561bfb 100644
--- a/drivers/bluetooth/hci_bcm4377.c
+++ b/drivers/bluetooth/hci_bcm4377.c
@@ -2525,11 +2525,12 @@ static const struct bcm4377_hw bcm4377_hw_variants[] = {
 	},
 };
 
-#define BCM4377_DEVID_ENTRY(id)                                             \
-	{                                                                   \
-		PCI_VENDOR_ID_BROADCOM, BCM##id##_DEVICE_ID, PCI_ANY_ID,    \
-			PCI_ANY_ID, PCI_CLASS_NETWORK_OTHER << 8, 0xffff00, \
-			BCM##id                                             \
+#define BCM4377_DEVID_ENTRY(id)                                                 \
+	{                                                                       \
+		PCI_DEVICE(PCI_VENDOR_ID_BROADCOM, BCM ## id ## _DEVICE_ID),    \
+		.class = PCI_CLASS_NETWORK_OTHER << 8,                          \
+		.class_mask = 0xffff00,                                         \
+		.driver_data = BCM ## id,                                       \
 	}
 
 static const struct pci_device_id bcm4377_devid_table[] = {

base-commit: 0718283ab28bc3907e10b61a6b4be6fefa1cbb2f
-- 
2.55.0.11.g153666a7d9bb


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* RE: [RESEND] Bluetooth: hci_bcm4377: Use named initializers for pci_device_id array
  2026-07-18 17:25 [PATCH RESEND] Bluetooth: hci_bcm4377: Use named initializers for pci_device_id array Uwe Kleine-König (The Capable Hub)
@ 2026-07-18 18:03 ` bluez.test.bot
  2026-07-18 21:52   ` Uwe Kleine-König
  0 siblings, 1 reply; 3+ messages in thread
From: bluez.test.bot @ 2026-07-18 18:03 UTC (permalink / raw)
  To: linux-bluetooth, u.kleine-koenig

[-- Attachment #1: Type: text/plain, Size: 1383 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1130117

---Test result---

Test Summary:
CheckPatch                    PASS      0.56 seconds
VerifyFixes                   PASS      0.09 seconds
VerifySignedoff               PASS      0.09 seconds
GitLint                       FAIL      0.25 seconds
SubjectPrefix                 PASS      0.09 seconds
BuildKernel                   PASS      24.19 seconds
CheckAllWarning               PASS      27.46 seconds
CheckSparse                   PASS      33.51 seconds
BuildKernel32                 PASS      24.60 seconds
CheckKernelLLVM               SKIP      0.00 seconds
TestRunnerSetup               PASS      442.54 seconds
IncrementalBuild              PASS      23.86 seconds

Details
##############################
Test: GitLint - FAIL
Desc: Run gitlint
Output:
[RESEND] Bluetooth: hci_bcm4377: Use named initializers for pci_device_id array

20: B2 Line has trailing whitespace: "or "
##############################
Test: CheckKernelLLVM - SKIP
Desc: Build kernel with LLVM + context analysis
Output:
Clang not found


https://github.com/bluez/bluetooth-next/pull/455

---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [RESEND] Bluetooth: hci_bcm4377: Use named initializers for pci_device_id array
  2026-07-18 18:03 ` [RESEND] " bluez.test.bot
@ 2026-07-18 21:52   ` Uwe Kleine-König
  0 siblings, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2026-07-18 21:52 UTC (permalink / raw)
  To: linux-bluetooth

[-- Attachment #1: Type: text/plain, Size: 1597 bytes --]

Hello,

On Sat, Jul 18, 2026 at 11:03:12AM -0700, bluez.test.bot@gmail.com wrote:
> This is automated email and please do not reply to this email!

I disregard that because IMHO the judgement made here is misleading.

> Thank you for submitting the patches to the linux bluetooth mailing list.
> This is a CI test results with your patch series:
> PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1130117
> 
> ---Test result---
> 
> Test Summary:
> CheckPatch                    PASS      0.56 seconds
> VerifyFixes                   PASS      0.09 seconds
> VerifySignedoff               PASS      0.09 seconds
> GitLint                       FAIL      0.25 seconds
> SubjectPrefix                 PASS      0.09 seconds
> BuildKernel                   PASS      24.19 seconds
> CheckAllWarning               PASS      27.46 seconds
> CheckSparse                   PASS      33.51 seconds
> BuildKernel32                 PASS      24.60 seconds
> CheckKernelLLVM               SKIP      0.00 seconds
> TestRunnerSetup               PASS      442.54 seconds
> IncrementalBuild              PASS      23.86 seconds
> 
> Details
> ##############################
> Test: GitLint - FAIL
> Desc: Run gitlint
> Output:
> [RESEND] Bluetooth: hci_bcm4377: Use named initializers for pci_device_id array
> 
> 20: B2 Line has trailing whitespace: "or "

Indeed, however this is in the "cover" text that doesn't make it into
git. So I won't resend to fix that and hope you won't discard the patch
just because you see that FAIL.

Best regards
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-07-18 21:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-18 17:25 [PATCH RESEND] Bluetooth: hci_bcm4377: Use named initializers for pci_device_id array Uwe Kleine-König (The Capable Hub)
2026-07-18 18:03 ` [RESEND] " bluez.test.bot
2026-07-18 21:52   ` Uwe Kleine-König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox