sanity_check_all_drivers(): Add some code comments.

This commit is contained in:
Uwe Hermann 2016-04-17 14:50:18 +02:00
parent bc48ec3755
commit 797f1a0cf3
1 changed files with 3 additions and 0 deletions

View 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++;