From: Uwe Hermann Date: Sun, 17 Apr 2016 12:50:18 +0000 (+0200) Subject: sanity_check_all_drivers(): Add some code comments. X-Git-Tag: libsigrok-0.5.0~519 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=797f1a0cf3757921ffad5a403a9e7d2dc2e38ee1;p=libsigrok.git sanity_check_all_drivers(): Add some code comments. --- diff --git a/src/backend.c b/src/backend.c index aa51a92d..e829912e 100644 --- a/src/backend.c +++ b/src/backend.c @@ -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++;