]> sigrok.org Git - libsigrok.git/blobdiff - hardware/nexus-osciprime/api.c
Shorten probe_names[] arrays everywhere.
[libsigrok.git] / hardware / nexus-osciprime / api.c
index 100fb3ba158176c15df991ddf9942127660d832e..8624b841b987a32baf87e2f229658970b23315bd 100644 (file)
@@ -92,8 +92,7 @@ static const struct sr_rational timebases[] = {
 };
 
 static const char *probe_names[] = {
-       "CHA",
-       "CHB",
+       "CHA", "CHB",
        NULL,
 };
 
@@ -241,14 +240,18 @@ static GSList *hw_dev_list(void)
 
 static int hw_dev_open(struct sr_dev_inst *sdi)
 {
+
        /* TODO */
+       (void)sdi;
 
        return SR_OK;
 }
 
 static int hw_dev_close(struct sr_dev_inst *sdi)
 {
+
        /* TODO */
+       (void)sdi;
 
        return SR_OK;
 }
@@ -265,8 +268,12 @@ static int hw_cleanup(void)
 static int hw_info_get(int info_id, const void **data,
                       const struct sr_dev_inst *sdi)
 {
-       switch (info_id) {
+
        /* TODO */
+       (void)data;
+       (void)sdi;
+
+       switch (info_id) {
        default:
                sr_err("Unknown info_id: %d.", info_id);
                return SR_ERR_ARG;
@@ -280,6 +287,9 @@ static int hw_dev_config_set(const struct sr_dev_inst *sdi, int hwcap,
 {
        int ret;
 
+       /* TODO */
+       (void)value;
+
        if (sdi->status != SR_ST_ACTIVE) {
                sr_err("Device inactive, can't set config options.");
                return SR_ERR;
@@ -287,7 +297,7 @@ static int hw_dev_config_set(const struct sr_dev_inst *sdi, int hwcap,
 
        ret = SR_OK;
        switch (hwcap) {
-       /* TODO */
+
        default:
                sr_err("Unknown hardware capability: %d.", hwcap);
                ret = SR_ERR_ARG;
@@ -300,6 +310,8 @@ static int hw_dev_acquisition_start(const struct sr_dev_inst *sdi,
                                    void *cb_data)
 {
        /* TODO */
+       (void)sdi;
+       (void)cb_data;
 
        return SR_OK;
 }