]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firewire: ohci: use static function to handle endian issue on PowerPC platform
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Tue, 2 Jul 2024 22:20:31 +0000 (07:20 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 3 Jul 2024 23:12:48 +0000 (08:12 +0900)
commitc538b06de6ce2966f72a7cf3b63e46e2f604a49e
treed741802bf3dd67910a4757ff6754144fdde79343
parentf26a38e61c03fdfacb6b596e1daf665cf4526a60
firewire: ohci: use static function to handle endian issue on PowerPC platform

It is preferable to use static function instead of functional macro in
some points. It checks type of argument, but would be optimized to
embedded code instead of function calls.

This commit obsoletes the functional macro with the static function.
Additionally this commit refactors quirk detection to ease the later work.

Link: https://lore.kernel.org/r/20240702222034.1378764-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
drivers/firewire/ohci.c