summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/alps_bsrv2.c
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-03-22 11:43:15 +0000
committerHolger Waechtler <devnull@localhost>2003-03-22 11:43:15 +0000
commit63cb0c2e9b4d11a118ca8225f872f743302981e7 (patch)
tree2aca33f4f26a85b5209e87c83f857ee6e671de57 /linux/drivers/media/dvb/frontends/alps_bsrv2.c
parent45a8287d7d7b76915cbdd65021a0988ab49561ec (diff)
downloadmediapointer-dvb-s2-63cb0c2e9b4d11a118ca8225f872f743302981e7.tar.gz
mediapointer-dvb-s2-63cb0c2e9b4d11a118ca8225f872f743302981e7.tar.bz2
more portability, now frontend modules build out of the box
Diffstat (limited to 'linux/drivers/media/dvb/frontends/alps_bsrv2.c')
-rw-r--r--linux/drivers/media/dvb/frontends/alps_bsrv2.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/linux/drivers/media/dvb/frontends/alps_bsrv2.c b/linux/drivers/media/dvb/frontends/alps_bsrv2.c
index b48be9345..e983647dc 100644
--- a/linux/drivers/media/dvb/frontends/alps_bsrv2.c
+++ b/linux/drivers/media/dvb/frontends/alps_bsrv2.c
@@ -20,8 +20,12 @@
*/
+#include <asm/errno.h>
+#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
+#include <linux/string.h>
+#include <linux/slab.h>
#include "dvb_frontend.h"
@@ -211,7 +215,7 @@ int ves1893_set_symbolrate (struct dvb_i2c_bus *i2c, u32 srate)
u32 BDRI;
u32 tmp;
- dprintk("%s: srate == %d\n", __FUNCTION__, srate);
+ dprintk("%s: srate == %ud\n", __FUNCTION__, (unsigned int) srate);
if (srate > 90100000UL/2)
srate = 90100000UL/2;
@@ -257,9 +261,9 @@ int ves1893_set_symbolrate (struct dvb_i2c_bus *i2c, u32 srate)
BDRI = ( ((FIN << 8) / ((srate << (FNR >> 1)) >> 2)) + 1) >> 1;
dprintk("FNR= %d\n", FNR);
- dprintk("ratio= %08x\n", ratio);
- dprintk("BDR= %08x\n", BDR);
- dprintk("BDRI= %02x\n", BDRI);
+ dprintk("ratio= %08x\n", (unsigned int) ratio);
+ dprintk("BDR= %08x\n", (unsigned int) BDR);
+ dprintk("BDRI= %02x\n", (unsigned int) BDRI);
if (BDRI > 0xff)
BDRI = 0xff;