Commit 1fc6458e authored by Federico Vaga's avatar Federico Vaga

kernel: rename decimation -> undersample

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent d18cd552
......@@ -404,7 +404,7 @@ static int __fa_init(struct fa_dev *fa)
/* Enable mezzanine clock */
fa_writel(fa, fa->fa_adc_csr_base, &zfad_regs[ZFA_CTL_CLK_EN], 1);
/* Set decimation to minimum */
fa_writel(fa, fa->fa_adc_csr_base, &zfad_regs[ZFAT_SR_DECI], 1);
fa_writel(fa, fa->fa_adc_csr_base, &zfad_regs[ZFAT_SR_UNDER], 1);
/* Set test data register */
fa_writel(fa, fa->fa_adc_csr_base, &zfad_regs[ZFA_CTL_TEST_DATA_EN],
fa_enable_test_data_fpga);
......
......@@ -40,7 +40,7 @@ const struct zfa_field_desc zfad_regs[] = {
/* Sampling clock frequency */
[ZFAT_SAMPLING_HZ] = {0x20, 0xFFFFFFFF, 0},
/* Sample rate */
[ZFAT_SR_DECI] = {0x24, 0xFFFFFFFF, 0},
[ZFAT_SR_UNDER] = {0x24, 0xFFFFFFFF, 0},
/* Position address */
[ZFAT_POS] = {0x1C, 0xFFFFFFFF, 0},
/* Pre-sample */
......
......@@ -41,7 +41,7 @@ static struct zio_attribute zfad_cset_ext_zattr[] = {
* acquisition you can decimate samples. 0 is a forbidden value, 1
* for the maximum speed.
*/
ZIO_ATTR_EXT("sample-decimation", ZIO_RW_PERM, ZFAT_SR_DECI, 1),
ZIO_ATTR_EXT("undersample", ZIO_RW_PERM, ZFAT_SR_UNDER, 1),
ZIO_ATTR_EXT("ch0-offset", ZIO_RW_PERM, ZFA_CH1_OFFSET, 0),
ZIO_ATTR_EXT("ch1-offset", ZIO_RW_PERM, ZFA_CH2_OFFSET, 0),
......@@ -227,7 +227,7 @@ static int zfad_conf_set(struct device *dev, struct zio_attribute *zattr,
case ZFA_CTL_DAC_CLR_N:
zfad_reset_offset(fa);
return 0;
case ZFAT_SR_DECI:
case ZFAT_SR_UNDER:
if (usr_val == 0)
usr_val++;
break;
......
......@@ -149,7 +149,7 @@ enum zfadc_dregs_enum {
/* Remaining shots counter */
ZFAT_SHOTS_REM,
/* Sample rate */
ZFAT_SR_DECI,
ZFAT_SR_UNDER,
/* Sampling clock frequency */
ZFAT_SAMPLING_HZ,
/* Position address */
......
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