SAMA5 fix compiler warning in sam_adc.c

This commit is contained in:
Tim Hardisty 2024-10-11 12:49:25 +01:00 committed by Alan C. Assis
parent 7541311ac0
commit bb7dce11a2
1 changed files with 4 additions and 0 deletions

View File

@ -1340,7 +1340,11 @@ static int sam_adc_ioctl(struct adc_dev_s *dev, int cmd, unsigned long arg)
{
#ifdef CONFIG_SAMA5_ADC_SWTRIG
struct sam_adc_s *priv = (struct sam_adc_s *)dev->ad_priv;
# ifndef CONFIG_SAMA5_ADC_REGDEBUG
UNUSED(priv);
# endif
#endif
int ret = OK;
ainfo("cmd=%d arg=%ld\n", cmd, arg);