Skip to content

Commit 0dfef14

Browse files
committed
include: drivers: spi.h: Fix deprecation support for SPI_DT_IODEV_DEFINE
Commit a60f93d removed the delay parameter from various SPI macros, but aimed to retain a clean migration path by throwing a deprecation warning when the parameter is still passed. However, the commit failed to have this feature included in the SPI_DT_IODEV_DEFINE macro. This commit should fix the issue. Signed-off-by: Johan Hedberg <[email protected]>
1 parent e3f3b6d commit 0dfef14

File tree

1 file changed

+2
-2
lines changed
  • include/zephyr/drivers

1 file changed

+2
-2
lines changed

include/zephyr/drivers/spi.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,9 +1361,9 @@ extern const struct rtio_iodev_api spi_iodev_api;
13611361
* @param node_id Devicetree node identifier
13621362
* @param operation_ SPI operational mode
13631363
*/
1364-
#define SPI_DT_IODEV_DEFINE(name, node_id, operation_) \
1364+
#define SPI_DT_IODEV_DEFINE(name, node_id, operation_, ...) \
13651365
const struct spi_dt_spec _spi_dt_spec_##name = \
1366-
SPI_DT_SPEC_GET(node_id, operation_); \
1366+
SPI_DT_SPEC_GET(node_id, operation_, __VA_ARGS__); \
13671367
RTIO_IODEV_DEFINE(name, &spi_iodev_api, (void *)&_spi_dt_spec_##name)
13681368

13691369
/**

0 commit comments

Comments
 (0)