pci: swap_case: Allow compilation on 32-bit machines
authorSimon Glass <sjg@chromium.org>
Sun, 18 Jul 2021 20:14:23 +0000 (14:14 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 28 Jul 2021 23:30:22 +0000 (19:30 -0400)
commit05a7cabf5b86fb283c887309746d98e416edcc64
treea4e411a7fb46e8bb571006e8d50bac6912acea5b
parentbbcacdf4cd23f2e5deb9ef916096c956c955243d
pci: swap_case: Allow compilation on 32-bit machines

At present this driver assumes that ulong is 64-bits long. On 32-bit
machines it is not. Use the 64-bit code only on 64-bit machines.

This makes things work correctly on 32-bit machines.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/misc/swap_case.c