Skip to content

Commit 6614a3a

Browse files
anthony289478henrikbrixandersen
authored andcommitted
sensors: Add missing const to sensor_read_async_mempool
Add missing const on `struct rtio_iodev *iodev` The blocking version, sensor_read(), as well as rtio_sqe_prep_read_with_pool() which accepts struct rtio_iodev are both marked as const. This function should also be marked const. Signed-off-by: Anthony Williams <[email protected]>
1 parent 4cac864 commit 6614a3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/drivers/sensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ static inline int sensor_read(struct rtio_iodev *iodev, struct rtio *ctx, uint8_
11271127
* @return 0 on success
11281128
* @return < 0 on error
11291129
*/
1130-
static inline int sensor_read_async_mempool(struct rtio_iodev *iodev, struct rtio *ctx,
1130+
static inline int sensor_read_async_mempool(const struct rtio_iodev *iodev, struct rtio *ctx,
11311131
void *userdata)
11321132
{
11331133
if (IS_ENABLED(CONFIG_USERSPACE)) {

0 commit comments

Comments
 (0)