aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2022-03-18 13:09:22 +0900
committerDamien Le Moal <[email protected]>2022-05-09 20:42:36 +0900
commit168af4afd1fce013f677b224180a19e33bd7d40f (patch)
tree38c28c32d3526c89c4005ca6a5db69b96dff2fbc /scripts/gdb/linux/utils.py
parentef1429c0da2656e97b77066a5032ec238b4ead03 (diff)
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 <[email protected]> Reviewed-by: Sergey Shtylyov <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions