Extract container_of definition out of individual bindings

This will make possible reuse this portion on code in the future.

Testing: no change in functionality; compiles successfuly

Signed-off-by: Przemyslaw Czarnowski <przemyslaw.hawrylewicz.czarnowski@intel.com>
Change-Id: Ie92161c547e275d9aa00d643d8d4879d2f5dd199
diff --git a/container_of.h b/container_of.h
new file mode 100644
index 0000000..a0e181a
--- /dev/null
+++ b/container_of.h
@@ -0,0 +1,9 @@
+#ifndef _CONTAINER_OF_H
+#define _CONTAINER_OF_H
+
+#ifndef container_of
+#define container_of(ptr, type, member)                                        \
+    (type *)((char *)(ptr) - (char *)&((type *)0)->member)
+#endif
+
+#endif