i2c: use board-specific bus numbering for '-X -b <bus>' CLI

As boards don't have their external buses labeled consistently, it was not
useful to use an abstraction.
This commit is contained in:
Beat Küng
2020-09-03 13:19:54 +02:00
committed by Daniel Agar
parent fdcd9b2de1
commit 787f9c1213
8 changed files with 9 additions and 15 deletions

View File

@@ -134,7 +134,7 @@ class ModuleDocumentation(object):
self._handle_usage_param_flag(['\'S\'', "\"External SPI bus(es)\"", 'true'])
self._handle_usage_param_int(['\'b\'', '-1', '0', '16',
"\"bus (board-specific internal (default=all) or n-th external (default=1))\"", 'true'])
"\"board-specific bus (default=all) (external SPI: n-th bus (default=1))\"", 'true'])
if self._is_bool_true(args[1]):
self._handle_usage_param_int(['\'c\'', '1', '1', '10',