diff options
author | Jacopo Mondi <jacopo+renesas@jmondi.org> | 2018-09-17 13:30:55 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-10-04 20:48:34 +0200 |
commit | 6bc3ea7a61897b5e4dbb937b75febb8d9c06b8a5 (patch) | |
tree | f9cd53f7712734d87efc0c21b0987b8ccb1920a4 /drivers/media/i2c/adv748x/adv748x-afe.c | |
parent | media: i2c: adv748x: Support probing a single output (diff) | |
download | linux-6bc3ea7a61897b5e4dbb937b75febb8d9c06b8a5.tar.xz linux-6bc3ea7a61897b5e4dbb937b75febb8d9c06b8a5.zip |
media: i2c: adv748x: Handle TX[A|B] power management
As the driver is now allowed to probe with a single output endpoint,
power management routines shall now take into account the case a CSI-2 TX
is not enabled.
Unify the adv748x_tx_power() routine to handle transparently TXA and TXB,
and enable the CSI-2 outputs conditionally.
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo+renesas@jmondi.org>
Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/adv748x/adv748x-afe.c')
-rw-r--r-- | drivers/media/i2c/adv748x/adv748x-afe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/adv748x/adv748x-afe.c b/drivers/media/i2c/adv748x/adv748x-afe.c index 6e6ea1d9f70a..71714634efb0 100644 --- a/drivers/media/i2c/adv748x/adv748x-afe.c +++ b/drivers/media/i2c/adv748x/adv748x-afe.c @@ -282,7 +282,7 @@ static int adv748x_afe_s_stream(struct v4l2_subdev *sd, int enable) goto unlock; } - ret = adv748x_txb_power(state, enable); + ret = adv748x_tx_power(&state->txb, enable); if (ret) goto unlock; |