summaryrefslogtreecommitdiffstats
path: root/include/hab.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-01-25 19:20:14 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-02 15:41:04 +0100
commit2ff23512d999a13afaa6f96b199b375a76cd1941 (patch)
tree6da5f22231b91f368bf535fe7931a7254e4f58f7 /include/hab.h
parent341d550c504924d704a87389d04178e0c03af77d (diff)
downloadbarebox-2ff23512d999a13afaa6f96b199b375a76cd1941.tar.gz
barebox-2ff23512d999a13afaa6f96b199b375a76cd1941.tar.xz
imx: hab: rename driver dir to hab/
There's not only HABv4 but also HABv3. No need to put the corresponding code in separate directories, so rename the habv4 directory to hab. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/hab.h')
-rw-r--r--include/hab.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/hab.h b/include/hab.h
new file mode 100644
index 0000000000..f9bf74f3b9
--- /dev/null
+++ b/include/hab.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2014, 2015 Marc Kleine-Budde <mkl@pengutronix.de>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __HABV4_H
+#define __HABV4_H
+
+#ifdef CONFIG_HABV4
+int habv4_get_status(void);
+#else
+static inline int habv4_get_status(void)
+{
+ return -EPERM;
+}
+#endif
+
+#endif /* __HABV4_H */