]> git.ipfire.org Git - thirdparty/linux.git/commit
firewire: ohci: minor code refactoring to localize text table
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 29 Jul 2024 13:46:30 +0000 (22:46 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 29 Jul 2024 13:46:30 +0000 (22:46 +0900)
commitfaa11b99c90f6faaaa7d6581b8ffd09abf3e9ce5
tree41df99248bdd818ba9c455eaf3db6cc6cec22899
parent568a8cbb3d4da609a799920c761b2cdb7e583839
firewire: ohci: minor code refactoring to localize text table

The string table for tcode is just used by log_ar_at_event(). In the case,
it is suitable to move the table inner the function definition.

This commit is for the purpose. Additionally, the hard-coded value for
tcode is replaced with defined macros as many as possible.

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