Commit 067dc0de authored by Federico Vaga's avatar Federico Vaga

fa-zio-drv.c: fix register enumeration

Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 91a00a59
......@@ -129,7 +129,7 @@ const struct zio_reg_desc zfad_regs[] = {
/* zio device attributes */
static DEFINE_ZATTR_STD(ZDEV, zfad_cset_std_zattr) = {
ZATTR_REG(zdev, ZATTR_NBITS, S_IRUGO, ZFA_SW_R_NOADDRES, 14),
ZATTR_REG(zdev, ZATTR_NBITS, S_IRUGO, ZFA_SW_R_NOADDRES_NBIT, 14),
/*
* Sample rate
* ADC acquire always at the maximum sample rate, to make slower
......
......@@ -147,7 +147,6 @@ enum zfadc_dregs_enum {
ZFA_CHx_STA,
ZFA_CHx_GAIN,
ZFA_CHx_OFFSET,
ZFA_SW_R_NOADDRES,
/* DMA */
ZFA_DMA_CTL_SWP,
ZFA_DMA_CTL_ABORT,
......@@ -189,7 +188,9 @@ enum zfadc_dregs_enum {
ZFA_CAR_P2L_PLL,
ZFA_CAR_SYS_PLL,
ZFA_CAR_DDR_CAL,
/* Other "address" */
ZFA_SW_R_NOADDRES_NBIT,
ZFA_SW_R_NOADDRES_TEMP,
};
/*
* ZFA_CHx_MULT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment