You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Advise to keep struct k_poll_signal in the dev->data struct, allowing more lightweight idioms like (IF_ENABLED(CONFIG_POLL) && data->signal != NULL) instead of #ifdefs
Is your enhancement proposal related to a problem? Please describe.
Video drivers use
k_polll_signal_raise()
to communicate events, this is wrapped in#ifdef CONFIG_POLL
.zephyr/drivers/video/video_sw_generator.c
Lines 169 to 171 in c4ebf71
zephyr/drivers/video/video_sw_generator.c
Lines 221 to 223 in c4ebf71
zephyr/drivers/video/video_sw_generator.c
Lines 242 to 256 in c4ebf71
zephyr/drivers/video/video_sw_generator.c
Lines 347 to 349 in c4ebf71
Describe the solution you'd like
Like I2C and SPI, add a wrapper around the
k_poll_signal_raise()
to avoid drivers to have to add#ifdef CONFIG_POLL
every time:zephyr/include/zephyr/drivers/i2c.h
Lines 967 to 1009 in c4ebf71
zephyr/include/zephyr/drivers/spi.h
Lines 937 to 980 in c4ebf71
Describe alternatives you've considered
Advise to keep
struct k_poll_signal
in thedev->data
struct, allowing more lightweight idioms like(IF_ENABLED(CONFIG_POLL) && data->signal != NULL)
instead of#ifdefs
zephyr/drivers/video/video_sw_generator.c
Lines 36 to 38 in c4ebf71
Additional context
Example of extra work contributors would not need to do inside of #86915
The text was updated successfully, but these errors were encountered: