#define deb_i2c(args...)    dprintk(dvb_usb_cxusb_debug, 0x02, args)
 
 static int cxusb_ctrl_msg(struct dvb_usb_device *d,
-                         u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen)
+                         u8 cmd, const u8 *wbuf, int wlen, u8 *rbuf, int rlen)
 {
        struct cxusb_state *st = d->priv;
        int ret;
                /* FIXME: We don't know why, but we need to configure the
                 * lgdt3303 with the register settings below on resume */
                int i;
-               u8 buf, bufs[] = {
+               u8 buf;
+               static const u8 bufs[] = {
                        0x0e, 0x2, 0x00, 0x7f,
                        0x0e, 0x2, 0x02, 0xfe,
                        0x0e, 0x2, 0x02, 0x01,