Skip to content
Commit c2f9e2b0 authored by Michał Barnaś's avatar Michał Barnaś Committed by Maureen Helm
Browse files

shell: fix i2c commands definitions



I2C scan and recover functions didn't have mandatory parameters
specified, which resulted in not displaying the I2C controllers in
help message. Instead, the command was executed, and argv was
dereferenced outside of the bounds, providing invalid data to
device_get_binding function.
Other functions had defined mandatory parameters without taking their
names into account, they are provided as argv[0].

Signed-off-by: default avatarMichał Barnaś <mb@semihalf.com>
parent 8a8bc392
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment