]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: Add and use devres helper for bit masks
authorPhilipp Stanner <pstanner@redhat.com>
Thu, 13 Jun 2024 11:50:14 +0000 (13:50 +0200)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Wed, 10 Jul 2024 04:19:03 +0000 (04:19 +0000)
commitdee37e90b41f7b41a63b894ded5b3840a9dddbd7
tree154cb92013259504c201695a4a22d37e136f6096
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
PCI: Add and use devres helper for bit masks

The current devres implementation uses manual shift operations to check
whether a bit in a mask is set. The code can be made more readable by
writing a small helper function for that.

Implement mask_contains_bar() and use it where applicable.

Link: https://lore.kernel.org/r/20240613115032.29098-2-pstanner@redhat.com
Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/devres.c