diff options
author | Geert Uytterhoeven <[email protected]> | 2024-08-22 16:45:54 +0200 |
---|---|---|
committer | Andi Shyti <[email protected]> | 2024-09-10 00:36:43 +0200 |
commit | 71dacb2565ed9d2839adb8e2a80ef30185c29035 (patch) | |
tree | 309fac96e22e8ce8b31c576f56391ee8a5380d1d /scripts/generate_rust_analyzer.py | |
parent | bc07fb417007b323d34651be20b9135480a947dc (diff) |
i2c: riic: Simplify unsupported bus speed handling
Simplify checking for unsupported bus speeds and reporting errors by
factoring out the calculation of the maximum bus speed, and by using the
dev_err_probe() helper.
While at it, use "%u" for u32, and improve the error message.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Claudiu Beznea <[email protected]>
Tested-by: Claudiu Beznea <[email protected]>
Reviewed-by: Wolfram Sang <[email protected]>
Signed-off-by: Andi Shyti <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions