]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
tuners: treat firmware data as const
authorDavid Woodhouse <dwmw2@infradead.org>
Fri, 23 May 2008 23:13:34 +0000 (00:13 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 10 Jul 2008 13:26:36 +0000 (14:26 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/media/common/tuners/tuner-xc2028.c
drivers/media/common/tuners/xc5000.c

index 0cbde17bfbb7a7471616112dda6dd5507f21e169..30eb07b7f9efb13b2c0a071c7b1be84c3f450d0c 100644 (file)
@@ -254,7 +254,7 @@ static int load_all_firmwares(struct dvb_frontend *fe)
 {
        struct xc2028_data    *priv = fe->tuner_priv;
        const struct firmware *fw   = NULL;
-       unsigned char         *p, *endp;
+       const unsigned char   *p, *endp;
        int                   rc = 0;
        int                   n, n_array;
        char                  name[33];
index 7cf4f5bdb2ecef54de97f6af81407bb098964932..4878d6477a8c58ad731d0a2498a50e47b9b0ab8b 100644 (file)
@@ -278,7 +278,7 @@ static int xc_read_reg(struct xc5000_priv *priv, u16 regAddr, u16 *i2cData)
        return result;
 }
 
-static int xc_load_i2c_sequence(struct dvb_frontend *fe, u8 i2c_sequence[])
+static int xc_load_i2c_sequence(struct dvb_frontend *fe, const u8 *i2c_sequence)
 {
        struct xc5000_priv *priv = fe->tuner_priv;