analog: add ANIOC_COMP_ENABLE and ANIOC_COMP_DISABLE commands

Define standard IOCTL commands to enable and disable analog comparator
devices from user-space applications.

Assisted-by: Gemini:gemini-2.5-pro
Signed-off-by: Daniel P. Carvalho <danieloak@gmail.com>
This commit is contained in:
Daniel P. Carvalho 2026-09-14 21:11:44 -03:00 • committed by Xiang Xiao
parent 66703d0957
commit fc9fec46da

View file

@ -86,8 +86,17 @@
* IN: None
* OUT: struct dac_info_s * */
/* COMP */
#define ANIOC_COMP_ENABLE _ANIOC(0x000d) /* Enable comparator
* IN: None
* OUT: None */
#define ANIOC_COMP_DISABLE _ANIOC(0x000e) /* Disable comparator
* IN: None
* OUT: None */
#define AN_FIRST 0x0001 /* First common command */
#define AN_NCMDS 12 /* Number of common commands */
#define AN_NCMDS 14 /* Number of common commands */
/* User defined ioctl commands are also supported. These will be forwarded
* by the upper-half driver to the lower-half driver via the ioctl()