aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2021-12-21 08:20:26 +0100
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-01-04 20:00:45 +0900
commit6c952a0dc9c3ced98c4c8aa7cd11c25c59157f1f (patch)
tree3f63a8e56e69d074efea95aefaa9e7a224f8c86c /include/linux/libata.h
parentata: libata: whitespace cleanup (diff)
downloadlinux-dev-6c952a0dc9c3ced98c4c8aa7cd11c25c59157f1f.tar.xz
linux-dev-6c952a0dc9c3ced98c4c8aa7cd11c25c59157f1f.zip
ata: libata: Add ata_port_classify() helper
Add an ata_port_classify() helper to print out the results from the device classification and remove the debugging statements from ata_dev_classify(). Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 2a8404b26083..235fdbeb19ea 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -1160,6 +1160,8 @@ extern enum ata_completion_errors ata_noop_qc_prep(struct ata_queued_cmd *qc);
extern void ata_sg_init(struct ata_queued_cmd *qc, struct scatterlist *sg,
unsigned int n_elem);
extern unsigned int ata_dev_classify(const struct ata_taskfile *tf);
+extern unsigned int ata_port_classify(struct ata_port *ap,
+ const struct ata_taskfile *tf);
extern void ata_dev_disable(struct ata_device *adev);
extern void ata_id_string(const u16 *id, unsigned char *s,
unsigned int ofs, unsigned int len);