rt-thread/components/drivers/misc
Old-Ding b9550aad85 drivers: dac: Fix disable callback check
_dac_control() checked the enabled callback before invoking disabled for RT_DAC_CMD_DISABLE. That can reject DAC drivers that provide a disable callback without enable, and can call through a NULL disabled callback when only enable is implemented.

Check the disabled callback in the disable command path so the guard matches the operation being dispatched.

Generated-by: OpenAI Codex
Signed-off-by: Old-Ding <35417409+Old-Ding@users.noreply.github.com>
2026-07-08 13:24:42 +08:00
..
Kconfig feat[ADC]: 新增 ADC V2 驱动支持 (#11440) 2026-07-07 08:59:22 +08:00
SConscript feat[ADC]: 新增 ADC V2 驱动支持 (#11440) 2026-07-07 08:59:22 +08:00
dac.c drivers: dac: Fix disable callback check 2026-07-08 13:24:42 +08:00
pulse_encoder.c [HUST CSE] Fix many abnormal symbols in annotations and format code 2023-04-17 22:26:23 -04:00
rt_drv_pwm.c [Driver][MISC] Update ADC/PWM (#11003) 2025-12-09 09:49:02 +08:00
rt_inputcapture.c [HUST CSE] Fix many abnormal symbols in annotations and format code 2023-04-17 22:26:23 -04:00
rt_null.c [HUST CSE] Fix many abnormal symbols in annotations and format code 2023-04-17 22:26:23 -04:00
rt_random.c Fix potential return value discrepancy when writing to urandom 2024-07-18 10:05:05 +08:00
rt_zero.c [HUST CSE] Fix many abnormal symbols in annotations and format code 2023-04-17 22:26:23 -04:00