hw/drivers/lis2dh12: Add lis2dh12_get_op_mode to header file
Add lis2dh12_get_op_mode prototype to header file
@@ -543,6 +543,17 @@ lis2dh12_hpf_cfg(struct sensor_itf *itf, uint8_t reg);
int
lis2dh12_set_op_mode(struct sensor_itf *itf, uint8_t mode);
+/**
+ * Get operating mode
+ *
+ * @param the sensor interface
+ * @param ptr to mode
+ *
+ * @return 0 on success, non-zero on failure
+ */
+int
+lis2dh12_get_op_mode(struct sensor_itf *itf, uint8_t *mode);
+
/**
* Clear click interrupt
*
