summaryrefslogtreecommitdiff
path: root/include/ata_drive.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-06-11 21:06:26 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-06-19 18:48:36 +0200
commit2093884040d799898c9931d5c4032b64a145c6c2 (patch)
tree15d111e0edd8a7eba162589718790d9fb44d7267 /include/ata_drive.h
parent48939b0b70292527b9260c7bf6e68fe5272dce96 (diff)
downloadbarebox-2093884040d799898c9931d5c4032b64a145c6c2.tar.gz
ata: ide: Allow to set the devicename
To get persistent devicenames under /dev/ allow to set the devicename from the driver instead of using "ata" unconditionally. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/ata_drive.h')
-rw-r--r--include/ata_drive.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ata_drive.h b/include/ata_drive.h
index 9961aeaf43..818247a181 100644
--- a/include/ata_drive.h
+++ b/include/ata_drive.h
@@ -135,6 +135,7 @@ struct ata_port {
struct ata_port_operations *ops;
struct device_d *dev;
struct device_d class_dev;
+ const char *devname;
void *drvdata;
struct block_device blk;
uint16_t *id;
@@ -142,7 +143,7 @@ struct ata_port {
int probe;
};
-int ide_port_register(struct device_d *, struct ata_ioports *);
+int ide_port_register(struct device_d *, struct ata_ioports *, const char *);
int ata_port_register(struct ata_port *port);
int ata_port_detect(struct ata_port *port);