aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pcie-qcom-common.c
diff options
context:
space:
mode:
authorAditya Garg <[email protected]>2025-05-19 12:16:17 +0000
committerJiri Kosina <[email protected]>2025-06-10 19:22:29 +0000
commitb45944946a19636f7bbded0763b536ce007c3c9b (patch)
tree2bbe70193737602af2d6505bd4847672a5486b6b /drivers/pci/controller/dwc/pcie-qcom-common.c
parentHID: apple: move backlight report structs to other backlight structs (diff)
downloadkernel-b45944946a19636f7bbded0763b536ce007c3c9b.tar.gz
kernel-b45944946a19636f7bbded0763b536ce007c3c9b.zip
HID: apple: use switch case to set fn translation table
There has been a continuous increase in the number of devices requiring hid-apple driver during the last few years. Moreover, unlike previous releases, the PIDs of the newer devices released cannot be combined in a specific range, thus filling up the if else if statements with individual device IDs. For such large table, its now more suitable to use switch case instead of if else if for improved readability. Signed-off-by: Aditya Garg <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions