adc: adc_mchp_xec: fix CONFIG_PM_DEVICE compilation
Replace pointer construction macro with value from config struct. Fixes what appears to be an oversight from #55522. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
11b5bdeff6
commit
5e09f5b1f1
|
@ -369,7 +369,7 @@ static void adc_xec_single_isr(const struct device *dev)
|
|||
static int adc_xec_pm_action(const struct device *dev, enum pm_device_action action)
|
||||
{
|
||||
const struct adc_xec_config *const devcfg = dev->config;
|
||||
struct adc_xec_regs *adc_regs = ADC_XEC_REG_BASE(dev);
|
||||
struct adc_xec_regs * const adc_regs = devcfg->regs;
|
||||
int ret;
|
||||
|
||||
switch (action) {
|
||||
|
|
Loading…
Reference in a new issue