diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-11 21:06:26 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-19 18:48:36 +0200 |
commit | 2093884040d799898c9931d5c4032b64a145c6c2 (patch) | |
tree | 15d111e0edd8a7eba162589718790d9fb44d7267 /include/ata_drive.h | |
parent | 48939b0b70292527b9260c7bf6e68fe5272dce96 (diff) | |
download | barebox-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.h | 3 |
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); |