提交 de2bec5e 编写于 作者: M Michael Büsch 提交者: Mauro Carvalho Chehab

[media] af9035: Use usleep_range() in fc0011 support code

Use usleep_range() instead of msleep() to improve power saving opportunities.
Signed-off-by: NMichael Buesch <m@bues.ch>
Signed-off-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 c421d5c9
......@@ -590,7 +590,7 @@ static int af9035_fc0011_tuner_callback(struct dvb_usb_device *d,
err = af9035_wr_reg_mask(d, 0xd8d1, 1, 1);
if (err)
return err;
msleep(10);
usleep_range(10000, 50000);
break;
case FC0011_FE_CALLBACK_RESET:
err = af9035_wr_reg(d, 0xd8e9, 1);
......@@ -602,11 +602,11 @@ static int af9035_fc0011_tuner_callback(struct dvb_usb_device *d,
err = af9035_wr_reg(d, 0xd8e7, 1);
if (err)
return err;
msleep(10);
usleep_range(10000, 20000);
err = af9035_wr_reg(d, 0xd8e7, 0);
if (err)
return err;
msleep(10);
usleep_range(10000, 20000);
break;
default:
return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册