瀏覽代碼

tuners: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
David Woodhouse 17 年之前
父節點
當前提交
c63e87e90a
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      drivers/media/common/tuners/tuner-xc2028.c
  2. 1 1
      drivers/media/common/tuners/xc5000.c

+ 1 - 1
drivers/media/common/tuners/tuner-xc2028.c

@@ -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];

+ 1 - 1
drivers/media/common/tuners/xc5000.c

@@ -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;