Эх сурвалжийг харах

gp8psk: treat firmware data as const

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
David Woodhouse 17 жил өмнө
parent
commit
3a9282cacd

+ 2 - 1
drivers/media/dvb/dvb-usb/gp8psk.c

@@ -86,7 +86,8 @@ static int gp8psk_load_bcm4500fw(struct dvb_usb_device *d)
 {
 {
 	int ret;
 	int ret;
 	const struct firmware *fw = NULL;
 	const struct firmware *fw = NULL;
-	u8 *ptr, *buf;
+	const u8 *ptr;
+	u8 *buf;
 	if ((ret = request_firmware(&fw, bcm4500_firmware,
 	if ((ret = request_firmware(&fw, bcm4500_firmware,
 					&d->udev->dev)) != 0) {
 					&d->udev->dev)) != 0) {
 		err("did not find the bcm4500 firmware file. (%s) "
 		err("did not find the bcm4500 firmware file. (%s) "