This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS7952: cat ads7952's value return last channl's value

Part Number: ADS7952
Other Parts Discussed in Thread: ADS7950

Tool/software:

when  I  use   ads7952,  in a  shell , I  write  like  this:

cat in_voltage1_raw
cat in_voltage2_raw
cat in_voltage3_raw
cat in_voltage4_raw

some times ,   I  find  when  I  cat  the   in_voltage3_raw,  it  return the last   in_voltage2_raw's  value

so  code  come into  

if (chan->address != TI_ADS7950_EXTRACT(ret, 12, 4))
return -EIO;

the  TI_ADS7950_EXTRACT(ret, 12, 4)     return  then last  in_voltage2_raw's  value, not the  current's  cat in_voltage3_raw's value;

the kernel  version  is  6.1.80