drivers: camera: Fix power on function calls
authorFrank Chen <frankc@nvidia.com>
Tue, 2 Aug 2016 22:09:01 +0000 (15:09 -0700)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 5 Aug 2016 06:23:15 +0000 (23:23 -0700)
commitd11086cfab48a41ffee94bd01aad98b0c527d09f
treea5a12b3a2b652f09d69aec1f3e9ed586f282b5c4
parentff44821355554474b4bcd43bfd9ce4a491517f95
drivers: camera: Fix power on function calls

Since sensor and forcuser has the same V4L2 group id,
when device s_power callback is called, the power_on
function of sensor and foucser will both be called,
even though only one of them needs to be powered on.

Switched to subdev s_power call to power on either
sensor or focuser, instead of both of them.

Bug 1792264

Change-Id: Iacae6ab92ec931cced28073589e82109b037a840
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/1196342
(cherry picked from commit d67aaad60ae73c78950a403c86851ac7f81aef61)
Reviewed-on: http://git-master/r/1197577
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Winnie Hsu <whsu@nvidia.com>
Reviewed-by: Ankit Gupta (SW-TEGRA) <ankitgu@nvidia.com>
Tested-by: Ankit Gupta (SW-TEGRA) <ankitgu@nvidia.com>
drivers/media/platform/tegra/camera/channel.c