Introduce clang-format

An automated and opinionated style for code. We can decide to change the
style and have the source updated by the clang-format tool by running:

    make format

I've based the style on the Google style with exceptions to better
match
the current source style.

Change-Id: I43f85c7d4ce02ca999805558b25fcab2e43859c6
diff --git a/inc/spinlock.h b/inc/spinlock.h
index 7761980..dca3efb 100644
--- a/inc/spinlock.h
+++ b/inc/spinlock.h
@@ -7,7 +7,10 @@
 	atomic_flag v;
 };
 
-#define SPINLOCK_INIT {.v = ATOMIC_FLAG_INIT}
+#define SPINLOCK_INIT                 \
+	{                             \
+		.v = ATOMIC_FLAG_INIT \
+	}
 
 static inline void sl_init(struct spinlock *l)
 {
@@ -16,7 +19,8 @@
 
 static inline void sl_lock(struct spinlock *l)
 {
-	while (atomic_flag_test_and_set_explicit(&l->v, memory_order_acquire));
+	while (atomic_flag_test_and_set_explicit(&l->v, memory_order_acquire))
+		;
 }
 
 static inline void sl_unlock(struct spinlock *l)
@@ -24,4 +28,4 @@
 	atomic_flag_clear_explicit(&l->v, memory_order_release);
 }
 
-#endif  /* _SPINLOCK_H */
+#endif /* _SPINLOCK_H */