]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ata: libata-transport: use static struct ata_transport_internal to simplify match...
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 2 Apr 2026 13:30:48 +0000 (15:30 +0200)
committerNiklas Cassel <cassel@kernel.org>
Thu, 2 Apr 2026 19:01:02 +0000 (21:01 +0200)
commit365da8c68739a28b44e414696a5ff0ee4c58e7d3
tree5334563d44d8274a40240756bdbb5eedffaf98bc
parentf2122465398a875ef5a31bde85602e6dfac17a83
ata: libata-transport: use static struct ata_transport_internal to simplify match functions

Both matching functions can make use of static struct
ata_transport_internal. This eliminates the dependency on static
variable ata_scsi_transport_template, and it allows to remove helper
to_ata_internal(). Small drawback is that a forward declaration of
both functions is needed.

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Niklas Cassel <cassel@kernel.org>
drivers/ata/libata-transport.c