greybus: loopback: add commentary to sysfs variables
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 21 Jul 2015 22:50:09 +0000 (23:50 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 22 Jul 2015 17:46:53 +0000 (10:46 -0700)
Add some missing comments.
Add a TODO to look at doing iteration_count with KOBJ_CHANGE event instead
of having user-space poll the value reported in iteration_count to
determine when a test set is complete.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Reviewed-by: Patrick Titiano <ptitiano@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c

index 6597394..cc19f1b 100644 (file)
@@ -137,8 +137,11 @@ gb_loopback_stats_attrs(latency);
 gb_loopback_stats_attrs(frequency);
 /* Quantity of data sent and received on this cport */
 gb_loopback_stats_attrs(throughput);
+/* Number of errors encountered during loop */
 gb_loopback_ro_attr(error, d);
+/* The current index of the for (i = 0; i < iteration_max; i++) loop */
 gb_loopback_ro_attr(iteration_count, u);
+/* TODO iteration_count might be better with the KOBJ_CHANGE event */
 
 /*
  * Type of loopback message to send based on protocol type definitions