commit | aadffb682cc5572f48cc24883681db65530bd284 | [log] [tgz] |
---|---|---|
author | Tejun Heo <tj@kernel.org> | Thu Jul 31 17:02:41 2008 +0900 |
committer | Jeff Garzik <jgarzik@redhat.com> | Mon Sep 29 00:22:30 2008 -0400 |
tree | 24ab92ec9b0cdd9e6f4c0bf7a8a4c04635be03db | |
parent | 82ef04fb4c82542b3eda81cca461f0594ce9cd0b [diff] |
libata: reimplement link iterator Implement __ata_port_next_link() and reimplement __ata_port_for_each_link() and ata_port_for_each_link() using it. This removes relatively large inlined code and makes iteration easier to extend. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>