Define wm8731 context, add log.
[bertos.git] / bertos / drv / wm8731.h
index 54e5ca9cf74704c9e249e442ab443a9da37af3ca..78269dcf1f19049b40f31a00e3fc7418a74b2d2a 100644 (file)
 #ifndef DRV_WM8731_H
 #define DRV_WM8731_H
 
-void wm8731_init(void);
+#include <drv/i2c.h>
+
+typedef struct Wm8731
+{
+       I2c *i2c;
+} Wm8731;
+
+void wm8731_init(Wm8731 *ctx, I2c *i2c);
 
 #endif /* DRV_WM8731_H */