From ba30b1485d89af502462f21a52485b5276b8ba8b Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 18 Oct 2006 23:01:27 +0000 Subject: [PATCH] fixed max PLL divisor/multiplier --- comedi/drivers/ni_stc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comedi/drivers/ni_stc.h b/comedi/drivers/ni_stc.h index d20a744a..f04db160 100644 --- a/comedi/drivers/ni_stc.h +++ b/comedi/drivers/ni_stc.h @@ -1054,7 +1054,7 @@ enum MSeries_PLL_Control_Bits }; static inline unsigned MSeries_PLL_Divisor_Bits(unsigned divisor) { - static const unsigned max_divisor = 0x10; + static const unsigned max_divisor = 0xf; if(divisor < 1 || divisor > max_divisor) { rt_printk("%s: bug, invalid divisor=%i\n", __FUNCTION__, divisor); @@ -1064,7 +1064,7 @@ static inline unsigned MSeries_PLL_Divisor_Bits(unsigned divisor) } static inline unsigned MSeries_PLL_Multiplier_Bits(unsigned multiplier) { - static const unsigned max_multiplier = 0x100; + static const unsigned max_multiplier = 0xff; if(multiplier < 1 || multiplier > max_multiplier) { rt_printk("%s: bug, invalid multiplier=%i\n", __FUNCTION__, multiplier); -- 2.26.2