]> sigrok.org Git - libsigrok.git/commitdiff
sanity_check_all_drivers(): Add some code comments.
authorUwe Hermann <redacted>
Sun, 17 Apr 2016 12:50:18 +0000 (14:50 +0200)
committerUwe Hermann <redacted>
Sun, 17 Apr 2016 12:50:18 +0000 (14:50 +0200)
src/backend.c

index aa51a92d480636d932687cb474f9bffbe9d654d8..e829912e914d071dcebf3aa148b01f0bc6c52f1b 100644 (file)
@@ -257,11 +257,14 @@ static int sanity_check_all_drivers(const struct sr_context *ctx)
                        sr_err("No dev_list in driver %d ('%s').", i, d);
                        errors++;
                }
+               /* Note: dev_clear() is optional. */
                /* Note: config_get() is optional. */
                if (!drivers[i]->config_set) {
                        sr_err("No config_set in driver %d ('%s').", i, d);
                        errors++;
                }
+               /* Note: config_channel_set() is optional. */
+               /* Note: config_commit() is optional. */
                if (!drivers[i]->config_list) {
                        sr_err("No config_list in driver %d ('%s').", i, d);
                        errors++;