summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-06-03 22:19:58 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2019-06-07 09:04:44 +0200
commited6cb64c24540475763257d651d83804506d419b (patch)
tree3edcc65db2a5733c2675166719da517247791631 /include/driver.h
parent0a46c9013b52d3e8924dae954d00c9a2a5f5993a (diff)
downloadbarebox-ed6cb64c24540475763257d651d83804506d419b.tar.gz
barebox-ed6cb64c24540475763257d651d83804506d419b.tar.xz
filetype: Allow specifying cdev's filetype explicitly
Allow specifying cdev's filetype explicitly to support the cases where the type of a cdev is known apriori, yet cannot be determined by reading the cdev's content. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h
index 3479e18194..ba1047392d 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -22,6 +22,7 @@
#include <linux/list.h>
#include <linux/ioport.h>
#include <of.h>
+#include <filetype.h>
#define FORMAT_DRIVER_NAME_ID "%s%d"
@@ -464,6 +465,7 @@ struct cdev {
struct list_head link_entry, links;
struct list_head partition_entry, partitions;
struct cdev *master;
+ enum filetype filetype;
};
int devfs_create(struct cdev *);