From: Gerhard Sittig Date: Mon, 17 Jun 2019 20:40:26 +0000 (+0200) Subject: dmm/eev121gw: visibility nits (single display parse routine) X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=8556703a6cf6708872ee1b1fe3c573d1f57e6fb5;hp=08ecb98e847f929bb0f412f79073f2262045a65b;p=libsigrok.git dmm/eev121gw: visibility nits (single display parse routine) The EEVBlog 121GW meter support always registers the three-displays parse routine with the serial-dmm device driver. The single-display routine need not be public. Adjust the visibility. Reduce indentation for a continued line in a nearby declaration while we are here. --- diff --git a/src/dmm/eev121gw.c b/src/dmm/eev121gw.c index 7361928a..f1a0070a 100644 --- a/src/dmm/eev121gw.c +++ b/src/dmm/eev121gw.c @@ -691,7 +691,7 @@ SR_PRIV gboolean sr_eev121gw_packet_valid(const uint8_t *buf) * @return SR_OK upon success, SR_ERR upon failure. Upon errors, the * 'analog' variable contents are undefined and should not be used. */ -SR_PRIV int sr_eev121gw_parse(const uint8_t *buf, float *floatval, +static int sr_eev121gw_parse(const uint8_t *buf, float *floatval, struct sr_datafeed_analog *analog, void *info) { struct eev121gw_info *info_local; diff --git a/src/libsigrok-internal.h b/src/libsigrok-internal.h index a1e2f2e4..20674cdf 100644 --- a/src/libsigrok-internal.h +++ b/src/libsigrok-internal.h @@ -1732,10 +1732,8 @@ struct eev121gw_info { extern SR_PRIV const char *eev121gw_channel_formats[]; SR_PRIV gboolean sr_eev121gw_packet_valid(const uint8_t *buf); -SR_PRIV int sr_eev121gw_parse(const uint8_t *buf, float *floatval, - struct sr_datafeed_analog *analog, void *info); SR_PRIV int sr_eev121gw_3displays_parse(const uint8_t *buf, float *floatval, - struct sr_datafeed_analog *analog, void *info); + struct sr_datafeed_analog *analog, void *info); /*--- scale/kern.c ----------------------------------------------------------*/