msm:camera: Add support for LED flash as i2c node

Add LED flash driver for adp1660 as i2c node.
Create v4l2 node and add control logic for i2c
LED Flash driver.

Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm:camera: Limit prints in default cases

Change pr_err to pr_err_ratelimited in default
case prints of userspace ioctl. pr_err would
keep printing when passing invalid parameters
in ioctl which would cause watchdog reset.

Signed-off-by: Yiduo Wang <yiduow@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: camera: remove time out functionality for LED flash

Remove time out functionality for LED flash to support
torch mode on 8x10.

Signed-off-by: Chandan Gera <cgera@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: ledflash: Add Debugfs node for I2c based led flash

Add debugfs node for ledflash to power on/off led.

Signed-off-by: Lokesh Kumar Aakulu <lkumar@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: camera2: cpp: Release vb2 buffer in cpp driver on error

When duplicate output is enabled, there is potential issue if
error is encountered in second output buffer. Under error condition
related to second output buffer is hit, the first output buffer is
not released properly.

Signed-off-by: Rajakumar Govindaram <rajakuma@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
msm: cpp: Fix potential dereference of NULL pointer

Pointers should be checked for NULL before they are
dereferenced. If it is not done segmentation fault
can appear.

Signed-off-by: Iliya Varadzhakov <ivarad@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
kernel-msm: camera: KW Changes in camera_v2

Make sure isp functions to return appropiate values from all control paths.

Signed-off-by: RamaKrishna Nallamothu <rnallamo@codeaurora.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>