From: Bartosz Golaszewski Date: Wed, 16 Sep 2015 08:55:42 +0000 (+0200) Subject: baylibre-acme: Move enum channel_type to protocol.c. X-Git-Tag: libsigrok-0.4.0~281 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=133016f6ab9fe8a360d5cfc13d0b6ac68cc14bcf;p=libsigrok.git baylibre-acme: Move enum channel_type to protocol.c. This enum is private and only used within protocol.c. Don't expose it in protocol.h. Signed-off-by: Bartosz Golaszewski --- diff --git a/src/hardware/baylibre-acme/protocol.c b/src/hardware/baylibre-acme/protocol.c index d9131cb0..413a0576 100644 --- a/src/hardware/baylibre-acme/protocol.c +++ b/src/hardware/baylibre-acme/protocol.c @@ -26,6 +26,14 @@ #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; diff --git a/src/hardware/baylibre-acme/protocol.h b/src/hardware/baylibre-acme/protocol.h index 9410e114..d0c9761d 100644 --- a/src/hardware/baylibre-acme/protocol.h +++ b/src/hardware/baylibre-acme/protocol.h @@ -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;