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