From: Antti Palosaari Date: Sat, 18 Jun 2011 00:21:32 +0000 (-0300) Subject: [media] af9015: remove old FW based IR polling code X-Git-Tag: MMI-PSA29.97-13-9~18729^2~61 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3509cbdface46cf39908124580a2a3b35f7e2783;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] af9015: remove old FW based IR polling code Remove old code which is not used anymore since IR code is read directly from memory nowadays. Signed-off-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/dvb-usb/af9015.c b/drivers/media/dvb/dvb-usb/af9015.c index 41a7c430f9c1..7ad4ed8de8b2 100644 --- a/drivers/media/dvb/dvb-usb/af9015.c +++ b/drivers/media/dvb/dvb-usb/af9015.c @@ -91,7 +91,6 @@ static int af9015_rw_udev(struct usb_device *udev, struct req_t *req) case GET_CONFIG: case READ_MEMORY: case RECONNECT_USB: - case GET_IR_CODE: write = 0; break; case READ_I2C: @@ -164,13 +163,6 @@ static int af9015_rw_udev(struct usb_device *udev, struct req_t *req) deb_xfer("<<< "); debug_dump(buf, act_len, deb_xfer); - /* remote controller query status is 1 if remote code is not received */ - if (req->cmd == GET_IR_CODE && buf[1] == 1) { - buf[1] = 0; /* clear command "error" status */ - memset(&buf[2], 0, req->data_len); - buf[3] = 1; /* no remote code received mark */ - } - /* check status */ if (buf[1]) { err("command failed:%d", buf[1]);