• Damien Le Moal's avatar
    ata: libata: Cleanup libata-transport · c494708d
    Damien Le Moal authored
    Move the ATA link transport device related functions after the ATA
    transport device related functions to avoid the need for forward
    declaring ata_tdev_add() and ata_tdev_delete().
    
    And while at it, do the following:
    1) Change ata_is_ata_dev() and ata_is_link() to return a boolean
    2) Fix a pointer declaration style in ata_is_ata_dev()
    3) Improve the kdoc comments for ata_tdev_free(), ata_tdev_delete(),
       ata_tdev_add(), ata_tlink_delete() and ata_tlink_add()
    
    No functional changes are introduced by this cleanup.
    Signed-off-by: default avatarDamien Le Moal <dlemoal@kernel.org>
    Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
    Reviewed-by: default avatarNiklas Cassel <cassel@kernel.org>
    c494708d
libata-transport.c 21.9 KB