diff options
author | 2022-03-18 13:09:22 +0900 | |
---|---|---|
committer | 2022-05-09 20:42:36 +0900 | |
commit | 168af4afd1fce013f677b224180a19e33bd7d40f (patch) | |
tree | 38c28c32d3526c89c4005ca6a5db69b96dff2fbc /include/linux/cc_platform.h | |
parent | ata: libata-core: cleanup ata_device_blacklist (diff) | |
download | wireguard-linux-168af4afd1fce013f677b224180a19e33bd7d40f.tar.xz wireguard-linux-168af4afd1fce013f677b224180a19e33bd7d40f.zip |
ata: libata-core: Refactor force_tbl definition
Introduce the macro definitions force_cbl(), force_spd_limit(),
force_xfer(), force_lflag(), force_horkage_on() and
force_horkage_onoff() to define with a more compact syntax the struct
ata_force_param entries in the force_tbl array defined in the function
ata_parse_force_one().
To reduce the indentation of the array declaration, force_tbl definition
is also moved out of the ata_parse_force_one() function. The entries are
also reordered to group them by type of the quirck that is applied.
Finally, fix a comment in ata_parse_force_param() incorrectly
referencing force_tbl instead of ata_force_tbl.
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Diffstat (limited to 'include/linux/cc_platform.h')
0 files changed, 0 insertions, 0 deletions