• Damien Le Moal's avatar
    ata: libata: Use QUIRK instead of HORKAGE · 7ebd8c5a
    Damien Le Moal authored
    According to Wiktionary, the verb "hork" is computing slang defined as
    "To foul up; to be occupied with difficulty, tangle, or unpleasantness;
    to be broken" (https://en.wiktionary.org/wiki/hork#Verb). libata uses
    this with the term "horkage" to refer to broken device features. Given
    that this term is not widely used and its meaning unknown to many,
    rename it to the more commonly used term "quirk", similar to many other
    places in the kernel.
    
    The renaming done is:
    1) Rename all ATA_HORKAGE_XXX flags to ATA_QUIRK_XXX
    2) Rename struct ata_device horkage field to quirks
    3) Rename struct ata_blacklist_entry to struct ata_dev_quirks_entry. The
       array of these structures defining quirks for known devices is
       renamed __ata_dev_quirks.
    4) The functions ata_dev_blacklisted() and ata_force_horkage() are
       renamed to ata_dev_quirks() and ata_force_quirks() respectively.
    5) All the force_horkage_xxx() macros are renamed to force_quirk_xxx()
    
    And while at it, make sure that the type "unsigned int" is used
    consistantly for quirk flags variables and data structure fields.
    Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
    Reviewed-by: default avatarNiklas Cassel <cassel@kernel.org>
    Reviewed-by: default avatarIgor Pylypiv <ipylypiv@google.com>
    7ebd8c5a
libata-scsi.c 119 KB