]> sigrok.org Git - libsigrok.git/commitdiff
baylibre-acme: Move enum channel_type to protocol.c.
authorBartosz Golaszewski <redacted>
Wed, 16 Sep 2015 08:55:42 +0000 (10:55 +0200)
committerUwe Hermann <redacted>
Fri, 18 Sep 2015 17:52:38 +0000 (19:52 +0200)
This enum is private and only used within protocol.c. Don't expose it
in protocol.h.

Signed-off-by: Bartosz Golaszewski <redacted>
src/hardware/baylibre-acme/protocol.c
src/hardware/baylibre-acme/protocol.h

index d9131cb09c9f3fe097366b85f3f2b178c2ebe652..413a057684da9cd50160f1623b40b68d215eb018 100644 (file)
 #include "protocol.h"
 #include "gpio.h"
 
+enum channel_type {
+       ENRG_PWR = 1,
+       ENRG_CURR,
+       ENRG_VOL,
+       TEMP_IN,
+       TEMP_OUT,
+};
+
 struct channel_group_priv {
        int hwmon_num;
        int probe_type;
index 9410e114fa0ec5fd0f7644e00dc497fcb4d86e10..d0c9761d6d0e4ac98832b1f10b0c2c2e04d7d17c 100644 (file)
@@ -49,14 +49,6 @@ enum probe_type {
        PROBE_TEMP,
 };
 
-enum channel_type {
-       ENRG_PWR = 1,
-       ENRG_CURR,
-       ENRG_VOL,
-       TEMP_IN,
-       TEMP_OUT,
-};
-
 /** Private, per-device-instance driver context. */
 struct dev_context {
        uint64_t samplerate;