Patchwork [21/68] ide: add hwif->private_data field

login
register
mail settings
Submitter Bartlomiej Zolnierkiewicz
Date Jan. 29, 2010, 4:05 p.m.
Message ID <20100129160525.21495.12888.sendpatchset@localhost>
Download mbox | patch
Permalink /patch/43991/
State RFC
Delegated to: David Miller
Headers show

Comments

Bartlomiej Zolnierkiewicz - Jan. 29, 2010, 4:05 p.m.
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: [PATCH] ide: add hwif->private_data field

Add private_data field to ide_hwif_t matching private_data field used
in struct ata_port.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
 include/linux/ide.h |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

Index: b/include/linux/ide.h
===================================================================
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -747,7 +747,11 @@  typedef struct hwif_s {
 
 	struct completion gendev_rel_comp; /* To deal with device release() */
 
-	void		*hwif_data;	/* extra hwif data */
+	/* extra port data */
+	union {
+		void	*hwif_data;
+		void	*private_data;
+	};
 
 #ifdef CONFIG_BLK_DEV_IDEACPI
 	struct ide_acpi_hwif_link *acpidata;