Skip to content

[Backport v4.0-branch] drivers: sensor: lis2de12: fix read accel via spi #172083

[Backport v4.0-branch] drivers: sensor: lis2de12: fix read accel via spi

[Backport v4.0-branch] drivers: sensor: lis2de12: fix read accel via spi #172083

Triggered via pull request January 24, 2025 14:43
Status Success
Total duration 2m 34s
Artifacts 1

compliance.yml

on: pull_request
Run compliance checks on patch series (PR)
2m 25s
Run compliance checks on patch series (PR)
Fit to window
Zoom out
Zoom in

Annotations

1 error, 1 warning, and 1 notice
Run compliance checks on patch series (PR)
Process completed with exit code 1.
Run compliance checks on patch series (PR): 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 LIS2DE12_CONFIG_SPI(inst) \ - { \ - STMEMSC_CTX_SPI_INCR(&lis2de12_config_##inst.stmemsc_cfg), \ - .stmemsc_cfg = { \ - .spi = SPI_DT_SPEC_INST_GET(inst, LIS2DE12_SPI_OP, 0), \ - }, \ - LIS2DE12_CONFIG_COMMON(inst) \ - } +#define LIS2DE12_CONFIG_SPI(inst) \ + {STMEMSC_CTX_SPI_INCR(&lis2de12_config_##inst.stmemsc_cfg), \ + .stmemsc_cfg = \ + { \ + .spi = SPI_DT_SPEC_INST_GET(inst, LIS2DE12_SPI_OP, 0), \ + }, \ + LIS2DE12_CONFIG_COMMON(inst)} File:drivers/sensor/st/lis2de12/lis2de12.c Line:444
You may want to run clang-format on this change: drivers/sensor/st/lis2de12/lis2de12.c#L444
drivers/sensor/st/lis2de12/lis2de12.c:444 -#define LIS2DE12_CONFIG_SPI(inst) \ - { \ - STMEMSC_CTX_SPI_INCR(&lis2de12_config_##inst.stmemsc_cfg), \ - .stmemsc_cfg = { \ - .spi = SPI_DT_SPEC_INST_GET(inst, LIS2DE12_SPI_OP, 0), \ - }, \ - LIS2DE12_CONFIG_COMMON(inst) \ - } +#define LIS2DE12_CONFIG_SPI(inst) \ + {STMEMSC_CTX_SPI_INCR(&lis2de12_config_##inst.stmemsc_cfg), \ + .stmemsc_cfg = \ + { \ + .spi = SPI_DT_SPEC_INST_GET(inst, LIS2DE12_SPI_OP, 0), \ + }, \ + LIS2DE12_CONFIG_COMMON(inst)}

Artifacts

Produced during runtime
Name Size
compliance.xml
807 Bytes