PCI/VGA: Correct vga_update_device_decodes() parameter type
authorSui Jingfeng <suijingfeng@loongson.cn>
Tue, 8 Aug 2023 22:34:05 +0000 (06:34 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 23 Aug 2023 22:19:10 +0000 (17:19 -0500)
commit60b4925d1aeaf0c46e540949c50818b9be2c896a
tree55e7ec8adceca284d7205c9582bffcc14e73092e
parent04c1c3c4e62a22b424c07d8b03ca6f6aac2dfa7f
PCI/VGA: Correct vga_update_device_decodes() parameter type

Previously vga_update_device_decodes() took "int new_decodes", but the
callers pass "unsigned int new_decodes".  Correct the
vga_update_device_decodes() parameter type to "unsigned int" to match.

In vga_arbiter_notify_clients(), the return from vgadev->set_decode() is
"unsigned int" but was stored as "uint32_t new_decodes".  Correct the
new_decodes type to "unsigned int".

[bhelgaas: use correct type for ->set_decode() return, commit log]
Link: https://lore.kernel.org/r/20230808223412.1743176-5-sui.jingfeng@linux.dev
Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/vgaarb.c