V4L/DVB (12756): af9015: fix typo in register compare
authorAntti Palosaari <crope@iki.fi>
Sun, 13 Sep 2009 00:25:59 +0000 (21:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 19 Sep 2009 02:47:54 +0000 (23:47 -0300)
And mask should be 0xff00 instead of 0xae00.

Thanks to Jochen Friedrich <jochen@scram.de> for pointing this.

Cc: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-usb/af9015.c

index ebb9981eb89e2a157a7422b59a63510698b43664..cf042b309b461f5200d187bd60fbe24af707d990 100644 (file)
@@ -97,7 +97,7 @@ static int af9015_rw_udev(struct usb_device *udev, struct req_t *req)
                break;
        case WRITE_MEMORY:
                if (((req->addr & 0xff00) == 0xff00) ||
-                   ((req->addr & 0xae00) == 0xae00))
+                   ((req->addr & 0xff00) == 0xae00))
                        buf[0] = WRITE_VIRTUAL_MEMORY;
        case WRITE_VIRTUAL_MEMORY:
        case COPY_FIRMWARE: