Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <devin.heitmueller@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Devin Heitmueller and committed by
Mauro Carvalho Chehab
726cf200 66767920

+3
+3
drivers/media/dvb/frontends/s5h1411.c
··· 874 874 /* Note: Leaving the I2C gate open here. */ 875 875 s5h1411_writereg(state, S5H1411_I2C_TOP_ADDR, 0xf5, 1); 876 876 877 + /* Put the device into low-power mode until first use */ 878 + s5h1411_set_powerstate(&state->frontend, 1); 879 + 877 880 return &state->frontend; 878 881 879 882 error: