diff options
author | Carl Richard Theodor Schneider <dev.github@crtified.me> | 2024-03-13 22:24:05 +0100 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2024-03-21 17:10:14 -0400 |
commit | d9043345b615a4b64333a006d9f1fd40f386a5e4 (patch) | |
tree | 19527606d1657f9ef7401b84dc509b2d9b14aa8e /src/linux/i2c.c | |
parent | 40728e923132b267dde00db187e3d110db4e1075 (diff) | |
download | kutter-d9043345b615a4b64333a006d9f1fd40f386a5e4.tar.gz kutter-d9043345b615a4b64333a006d9f1fd40f386a5e4.tar.xz kutter-d9043345b615a4b64333a006d9f1fd40f386a5e4.zip |
linux: Allow for more i2c buses
Similar to commit df79893, this allows klipper to use up to
/dev/i2c-14. Similar to before, this limit is arbitrary.
This is required for some other SoCs, which have even
more i2c buses available, e.g. the rk3399:
$ ls -1 /dev/i2c-*
/dev/i2c-0
/dev/i2c-3
/dev/i2c-7
Signed-off-by: Carl Richard Theodor Schneider <dev.github@crtified.me>
Diffstat (limited to 'src/linux/i2c.c')
-rw-r--r-- | src/linux/i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linux/i2c.c b/src/linux/i2c.c index 2994403f..b328dc56 100644 --- a/src/linux/i2c.c +++ b/src/linux/i2c.c @@ -14,7 +14,7 @@ #include "internal.h" // report_errno #include "sched.h" // sched_shutdown -DECL_ENUMERATION_RANGE("i2c_bus", "i2c.0", 0, 7); +DECL_ENUMERATION_RANGE("i2c_bus", "i2c.0", 0, 15); struct i2c_s { uint32_t bus; |