summaryrefslogtreecommitdiff
path: root/include/linux/reset.h
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2013-04-12 23:06:37 -0700
committerOlof Johansson <olof@lixom.net>2013-04-12 23:14:09 -0700
commitc4c54da24b8ae12abb2034edaf08021894caf0d0 (patch)
tree1b32092803e05b433f124785ae1eb59ca5bd4df2 /include/linux/reset.h
parent06ff14c05426ec7b7600521c4e1ae19732797e15 (diff)
parent6034bb22d8387708075c083385e5d2e1072a4f33 (diff)
Merge branch 'reset/for_v3.10' of git://git.pengutronix.de/git/pza/linux into next/drivers
From Philipp Zabel, this is a series that adds a simple API for devices to request being reset by a separate reset controller hardware, and it implements reset signal device tree bindings. * 'reset/for_v3.10' of git://git.pengutronix.de/git/pza/linux: reset: NULL deref on allocation failure reset: Add reset controller API dt: describe base reset signal binding Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/linux/reset.h')
-rw-r--r--include/linux/reset.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/reset.h b/include/linux/reset.h
new file mode 100644
index 000000000000..6082247feab1
--- /dev/null
+++ b/include/linux/reset.h
@@ -0,0 +1,17 @@
+#ifndef _LINUX_RESET_H_
+#define _LINUX_RESET_H_
+
+struct device;
+struct reset_control;
+
+int reset_control_reset(struct reset_control *rstc);
+int reset_control_assert(struct reset_control *rstc);
+int reset_control_deassert(struct reset_control *rstc);
+
+struct reset_control *reset_control_get(struct device *dev, const char *id);
+void reset_control_put(struct reset_control *rstc);
+struct reset_control *devm_reset_control_get(struct device *dev, const char *id);
+
+int device_reset(struct device *dev);
+
+#endif