summaryrefslogtreecommitdiff
path: root/include/linux/mtd/blktrans.h
diff options
context:
space:
mode:
authorMaxim Levitsky <maximlevitsky@gmail.com>2010-02-22 21:39:33 +0300
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-02-26 20:37:40 +0300
commit026ec57886b67c092bf7baecd029a7c1c4998c28 (patch)
tree661a61956e03482a9efc1fa26ef41d2a53d755fa /include/linux/mtd/blktrans.h
parent75c0b84d41c6f08c0cb083464907005683ef2920 (diff)
downloadlinux-026ec57886b67c092bf7baecd029a7c1c4998c28.tar.xz
mtd: blktrans: allow FTL drivers to export sysfs attributes
This patch adds an ability to export sysfs attributes below the block disk device. This can be used to pass the udev an information about the FTL and could include the vendor, serial, version, etc... Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd/blktrans.h')
-rw-r--r--include/linux/mtd/blktrans.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/blktrans.h b/include/linux/mtd/blktrans.h
index d89b8fbba4c9..b481ccd7ff3c 100644
--- a/include/linux/mtd/blktrans.h
+++ b/include/linux/mtd/blktrans.h
@@ -10,6 +10,7 @@
#include <linux/mutex.h>
#include <linux/kref.h>
+#include <linux/sysfs.h>
struct hd_geometry;
struct mtd_info;
@@ -28,6 +29,7 @@ struct mtd_blktrans_dev {
int open;
struct kref ref;
struct gendisk *disk;
+ struct attribute_group *disk_attributes;
struct task_struct *thread;
struct request_queue *rq;
spinlock_t queue_lock;