Skip to content

Commit

Permalink
drivers: sensors: fix compile error due to conflicting types.
Browse files Browse the repository at this point in the history
Since b249535 (sensors: Add channel specifier) the signature of
sensor_reconfigure_read_iodev() changed, but sensor_handlers.c
apparently hasn't been updated.

Fix compile time error by updating sensor_reconfigure_read_iodev()
signature in sensor_handlers.c

Signed-off-by: Andrea Merello <andrea.merello@iit.it>
  • Loading branch information
andreamerello authored and nashif committed Sep 17, 2024
1 parent e646f99 commit cc61e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sensor/sensor_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static inline int z_vrfy_sensor_get_decoder(const struct device *dev,

static inline int z_vrfy_sensor_reconfigure_read_iodev(struct rtio_iodev *iodev,
const struct device *sensor,
const enum sensor_channel *channels,
const struct sensor_chan_spec *channels,
size_t num_channels)
{
K_OOPS(K_SYSCALL_OBJ(iodev, K_OBJ_RTIO_IODEV));
Expand Down

0 comments on commit cc61e96

Please sign in to comment.