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

[media] adv7175: support s_power

This patch adds s_power support to adv7175 driver. Power-down is done
by power-down all four DACs.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Christian Gmeiner and committed by
Mauro Carvalho Chehab
b7eccc46 cb26a24e

+11
+11
drivers/media/video/adv7175.c
··· 303 303 return v4l2_chip_ident_i2c_client(client, chip, V4L2_IDENT_ADV7175, 0); 304 304 } 305 305 306 + static int adv7175_s_power(struct v4l2_subdev *sd, int on) 307 + { 308 + if (on) 309 + adv7175_write(sd, 0x01, 0x00); 310 + else 311 + adv7175_write(sd, 0x01, 0x78); 312 + 313 + return 0; 314 + } 315 + 306 316 /* ----------------------------------------------------------------------- */ 307 317 308 318 static const struct v4l2_subdev_core_ops adv7175_core_ops = { 309 319 .g_chip_ident = adv7175_g_chip_ident, 310 320 .init = adv7175_init, 321 + .s_power = adv7175_s_power, 311 322 }; 312 323 313 324 static const struct v4l2_subdev_video_ops adv7175_video_ops = {