gmc-mh-1x-2x: Make two functions static.

This commit is contained in:
Uwe Hermann 2016-04-17 14:24:05 +02:00
parent 3c996d8e23
commit bc48ec3755
2 changed files with 2 additions and 4 deletions

View File

@ -873,7 +873,7 @@ static void process_msg_inf_13(struct sr_dev_inst *sdi)
* @param buf Pointer to array of 14 data bytes.
* @param[in] raw Write only data bytes, no interpretation.
*/
void dump_msg14(guchar *buf, gboolean raw)
static void dump_msg14(guchar *buf, gboolean raw)
{
if (!buf)
return;
@ -1261,7 +1261,7 @@ SR_PRIV int gmc_mh_2x_receive_data(int fd, int revents, void *cb_data)
* @param[in] params Further parameters (9 bytes)
* @param[out] buf Buffer to create msg in (42 bytes).
*/
void create_cmd_14(guchar addr, guchar func, guchar *params, guchar *buf)
static void create_cmd_14(guchar addr, guchar func, guchar *params, guchar *buf)
{
uint8_t dta[GMC_REPLY_SIZE]; /* Unencoded message */
int cnt;

View File

@ -123,8 +123,6 @@ struct dev_context {
/* Forward declarations */
SR_PRIV int config_set(uint32_t key, GVariant *data, const struct sr_dev_inst *sdi,
const struct sr_channel_group *cg);
SR_PRIV void create_cmd_14(guchar addr, guchar func, guchar *params, guchar *buf);
SR_PRIV void dump_msg14(guchar *buf, gboolean raw);
SR_PRIV int gmc_decode_model_bd(uint8_t mcode);
SR_PRIV int gmc_decode_model_sm(uint8_t mcode);
SR_PRIV int gmc_mh_1x_2x_receive_data(int fd, int revents, void *cb_data);