summaryrefslogtreecommitdiff
path: root/include/linux/node.h
diff options
context:
space:
mode:
authorMukesh Ojha <mukesh.ojha@oss.qualcomm.com>2026-05-27 12:54:26 +0300
committerThomas Gleixner <tglx@kernel.org>2026-06-03 19:27:06 +0300
commit8766c87e9bb499b5e2b04b9f51f9e525d41c5b46 (patch)
treed9637a077029fa89289f9ca8bdfc53d308cf0666 /include/linux/node.h
parentef631c422f2cc3f5a8c0687364bfafec4f3d531c (diff)
downloadlinux-8766c87e9bb499b5e2b04b9f51f9e525d41c5b46.tar.xz
irqchip/qcom-pdc: Use FIELD_GET() to extract bank index and bit position
The IRQ_ENABLE_BANK register is a bank of 32-bit words where each bit represents one PDC pin. The bank index and bit position within the bank are encoded in the flat pin number as bits [31:5] and [4:0] respectively. Replace the open-coded division and modulo with FIELD_GET() and GENMASK() to make the bit extraction self-documenting and consistent with the FIELD_PREP() style already used in the PDC_VERSION() macro. Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Link: https://patch.msgid.link/20260527095426.2324504-5-mukesh.ojha@oss.qualcomm.com
Diffstat (limited to 'include/linux/node.h')
0 files changed, 0 insertions, 0 deletions