i2c spi buses: enforce drivers to set default SPI/I2C bus frequency

Not a lot of drivers use the global default, which is somewhat arbitrary.
This commit is contained in:
Beat Küng
2020-03-17 23:31:17 -04:00
committed by Daniel Agar
parent 8ebde51648
commit d6bb5b3b9e
13 changed files with 60 additions and 2 deletions
+1
View File
@@ -430,6 +430,7 @@ extern "C" __EXPORT int irlock_main(int argc, char *argv[])
using ThisDriver = IRLOCK;
BusCLIArguments cli{true, false};
cli.i2c_address = IRLOCK_I2C_ADDRESS;
cli.default_i2c_frequency = 400000;
const char *verb = cli.parseDefaultArguments(argc, argv);