You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by an...@apache.org on 2019/01/09 10:07:03 UTC

[mynewt-core] 02/08: [donotmerge] hw/sensor: abi compat mode

This is an automated email from the ASF dual-hosted git repository.

andk pushed a commit to branch bus-dev-test
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 2b09fdc93314c63098c028c34bfc3c57127e0910
Author: Andrzej Kaczmarek <an...@codecoup.pl>
AuthorDate: Tue Nov 27 15:11:46 2018 +0100

    [donotmerge] hw/sensor: abi compat mode
---
 hw/sensor/include/sensor/sensor.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hw/sensor/include/sensor/sensor.h b/hw/sensor/include/sensor/sensor.h
index 5eeb7e8..40b443e 100644
--- a/hw/sensor/include/sensor/sensor.h
+++ b/hw/sensor/include/sensor/sensor.h
@@ -510,10 +510,6 @@ struct sensor_int {
 
 struct sensor_itf {
 
-#if MYNEWT_VAL(BUS_DRIVER_PRESENT)
-    /* Device configuration is stored in bus node */
-    struct os_dev *si_dev;
-#else
     /* Sensor interface type */
     uint8_t si_type;
 
@@ -526,6 +522,10 @@ struct sensor_itf {
     /* Sensor address */
     uint16_t si_addr;
 
+#if MYNEWT_VAL(BUS_DRIVER_PRESENT)
+    /* Device configuration is stored in bus node */
+    struct os_dev *si_dev;
+#else
     /* Mutex for interface access */
     struct os_mutex *si_lock;
 #endif