From dae2f33e5e66b35dff0cfd74d8d8c3c3699a005a Mon Sep 17 00:00:00 2001 From: Tom Burdick Date: Mon, 24 Jul 2023 10:27:56 -0500 Subject: [PATCH] rtio: Remove references to simple executor The simple executor was removed with the usage of the spsc queue but some stray references remained. Remove those. Signed-off-by: Tom Burdick --- doc/services/rtio/index.rst | 3 +-- drivers/i2c/i2c_sam_twihs_rtio.c | 3 --- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/doc/services/rtio/index.rst b/doc/services/rtio/index.rst index 9ed9774cd39..b82972d7f68 100644 --- a/doc/services/rtio/index.rst +++ b/doc/services/rtio/index.rst @@ -155,8 +155,7 @@ is 4 byte aligned. #define MEM_BLK_SIZE 16 #define MEM_BLK_ALIGN 4 - RTIO_EXECUTOR_SIMPLE_DEFINE(simple_exec); - RTIO_DEFINE_WITH_MEMPOOL(rtio_context, (struct rtio_executor *)&simple_exec, + RTIO_DEFINE_WITH_MEMPOOL(rtio_context, SQ_SIZE, CQ_SIZE, MEM_BLK_COUNT, MEM_BLK_SIZE, MEM_BLK_ALIGN); When a read is needed, the caller simply needs to replace the call diff --git a/drivers/i2c/i2c_sam_twihs_rtio.c b/drivers/i2c/i2c_sam_twihs_rtio.c index 59b408bd266..1111a03c4e1 100644 --- a/drivers/i2c/i2c_sam_twihs_rtio.c +++ b/drivers/i2c/i2c_sam_twihs_rtio.c @@ -26,7 +26,6 @@ #include #include #include -#include #define LOG_LEVEL CONFIG_I2C_LOG_LEVEL #include @@ -422,9 +421,7 @@ static const struct i2c_driver_api i2c_sam_twihs_driver_api = { DEVICE_DT_INST_GET(n), 0); \ } \ \ - RTIO_EXECUTOR_SIMPLE_DEFINE(_i2c##n##_sam_rtio_exec); \ RTIO_DEFINE(_i2c##n##_sam_rtio, \ - (struct rtio_executor *)&_i2c##n##_sam_rtio_exec, \ CONFIG_I2C_SAM_TWIHS_SQ_SIZE, \ CONFIG_I2C_SAM_TWIHS_CQ_SIZE); \ \