max2837_set_frequency() bug fix

This commit is contained in:
Michael Ossmann
2012-06-10 19:11:23 -06:00
parent 34df33d5a8
commit 1806658d6c

View File

@ -202,9 +202,9 @@ void max2837_set_frequency(uint32_t freq)
* faster to explicitly commit the registers explicitly so the * faster to explicitly commit the registers explicitly so the
* dirty bits aren't scanned twice. */ * dirty bits aren't scanned twice. */
set_MAX2837_SYN_INT(div_int); set_MAX2837_SYN_INT(div_int);
set_MAX2837_SYN_FRAC_HI((div_frac >> 10) & 0x3f); set_MAX2837_SYN_FRAC_HI((div_frac >> 10) & 0x3ff);
max2837_regs_commit(); max2837_regs_commit();
set_MAX2837_SYN_FRAC_LO(div_frac & 0x3f); set_MAX2837_SYN_FRAC_LO(div_frac & 0x3ff);
max2837_regs_commit(); max2837_regs_commit();
} }