]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
drivers:camera: Provide common setup/tear-down
authorJosh Kergan <jkergan@nvidia.com>
Tue, 24 Oct 2017 23:12:54 +0000 (16:12 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Thu, 18 Jan 2018 08:17:47 +0000 (00:17 -0800)
commit3a12a9bd380d18e8d56043efcd5dc17538a65a6e
tree4edc63e87ffa4ee6b62d1058fa624d04eaf1c5bd
parentd189c75768022eda7b8449953db89b4561f8baf9
drivers:camera: Provide common setup/tear-down

Currently most cameras do the same steps during camera setup and
then these should be unset when the driver is unloaded. This change
moves the common setup and tear down into camera common. This helps
make the camera drivers cleaner and make extending functionality
for all sensors easier. It also takes care of sensor properties
stored in the DT so that they are parsed during the sensor
initialization rather than during channel setup.

 * Create common setup/tear down function for sensors
 * Parse DT for sensor properties during sensor initialization
   rather than channel setup.

JIRA:
Jira CHWI-1369

NvBugs:
Bug 200368584

Change-Id: I85fc8e9272e0289c0d2de29b8809480a56d2d515
Signed-off-by: Josh Kergan <jkergan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1585023
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1619030
drivers/media/platform/tegra/camera/camera_common.c
include/media/camera_common.h