X-Powers AXP20X and AXP22X ADC driver

modulename: axp20x_adc.ko

configname: CONFIG_AXP20X_ADC

Linux Kernel Configuration
└─>Device Drivers
└─>Industrial I/O support
└─>Analog to digital converters
└─>X-Powers AXP20X and AXP22X ADC driver
In linux kernel since version 4.2 (release Date: 2015-08-30)  
Say yes here to have support for X-Powers power management IC (PMIC)
AXP20X and AXP22X ADC devices.

To compile this driver as a module, choose M here: the module will be
called axp20x_adc.

source code: