drivers: i2c: Introduce I2C timeout for SAM0 #152440
Annotations
4 errors, 1 warning, and 1 notice
Run Compliance Tests:
drivers/i2c/i2c_sam0.c#L43
drivers/i2c/i2c_sam0.c:43 "foo * bar" should be "foo *bar"
|
Run Compliance Tests
Process completed with exit code 2.
|
check-warns:
Checkpatch.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#coding-style for more details.
POINTER_LOCATION: "foo * bar" should be "foo *bar"
File:drivers/i2c/i2c_sam0.c
Line:43
|
check-warns
Process completed with exit code 1.
|
check-warns:
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
-#define SAM_PORT_DEV_OR_NONE(nodelabel) \
+#define SAM_PORT_DEV_OR_NONE(nodelabel) \
IF_ENABLED(DT_NODE_EXISTS(DT_NODELABEL(nodelabel)), \
(DEVICE_DT_GET(DT_NODELABEL(nodelabel)),))
/** SAM0 port devices */
-static const struct device * sam_port_devs[] = {
- SAM_PORT_DEV_OR_NONE(porta)
- SAM_PORT_DEV_OR_NONE(portb)
- SAM_PORT_DEV_OR_NONE(portc)
- SAM_PORT_DEV_OR_NONE(portd)
- SAM_PORT_DEV_OR_NONE(porte)
- SAM_PORT_DEV_OR_NONE(portf)
-};
+static const struct device *sam_port_devs[] = {SAM_PORT_DEV_OR_NONE(porta) SAM_PORT_DEV_OR_NONE(
+ portb) SAM_PORT_DEV_OR_NONE(portc) SAM_PORT_DEV_OR_NONE(portd) SAM_PORT_DEV_OR_NONE(porte)
+ SAM_PORT_DEV_OR_NONE(portf)};
File:drivers/i2c/i2c_sam0.c
Line:51
|
Run Compliance Tests:
drivers/i2c/i2c_sam0.c#L51
drivers/i2c/i2c_sam0.c:51
-#define SAM_PORT_DEV_OR_NONE(nodelabel) \
+#define SAM_PORT_DEV_OR_NONE(nodelabel) \
IF_ENABLED(DT_NODE_EXISTS(DT_NODELABEL(nodelabel)), \
(DEVICE_DT_GET(DT_NODELABEL(nodelabel)),))
/** SAM0 port devices */
-static const struct device * sam_port_devs[] = {
- SAM_PORT_DEV_OR_NONE(porta)
- SAM_PORT_DEV_OR_NONE(portb)
- SAM_PORT_DEV_OR_NONE(portc)
- SAM_PORT_DEV_OR_NONE(portd)
- SAM_PORT_DEV_OR_NONE(porte)
- SAM_PORT_DEV_OR_NONE(portf)
-};
+static const struct device *sam_port_devs[] = {SAM_PORT_DEV_OR_NONE(porta) SAM_PORT_DEV_OR_NONE(
+ portb) SAM_PORT_DEV_OR_NONE(portc) SAM_PORT_DEV_OR_NONE(portd) SAM_PORT_DEV_OR_NONE(porte)
+ SAM_PORT_DEV_OR_NONE(portf)};
|
Loading