From: Devin Heitmueller Date: Sun, 16 Nov 2008 06:39:50 +0000 (-0300) Subject: V4L/DVB (9633): Put s5h1411 into low power mode at end of attach() call X-Git-Tag: v2.6.29-rc1~556^2~394 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=726cf2000b1c0978bbddc6345ddd7f88caf8aa48;p=profile%2Fivi%2Fkernel-x86-ivi.git V4L/DVB (9633): Put s5h1411 into low power mode at end of attach() call Place the s5h1411 into low power mode until first use (to handle the case where the user plugs in the device and then doesn't use it for a while). On the Pinnacle 801e, this brings the power usage from 126ma down to 82ma. Signed-off-by: Devin Heitmueller Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/s5h1411.c b/drivers/media/dvb/frontends/s5h1411.c index 40644aa..66e2dd6 100644 --- a/drivers/media/dvb/frontends/s5h1411.c +++ b/drivers/media/dvb/frontends/s5h1411.c @@ -874,6 +874,9 @@ struct dvb_frontend *s5h1411_attach(const struct s5h1411_config *config, /* Note: Leaving the I2C gate open here. */ s5h1411_writereg(state, S5H1411_I2C_TOP_ADDR, 0xf5, 1); + /* Put the device into low-power mode until first use */ + s5h1411_set_powerstate(&state->frontend, 1); + return &state->frontend; error: