ASoC: wcd9xxx: add device_reset functions for taiko and tapan

When slimbus is reset reset_device callback is called. In this event codec
driver should reset the codec so that codec can be enumulated again.

Signed-off-by: Fred Oh <fred@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
ARM: dts: enable mdm restart.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
msm: camera: Align flash sensor with CAF

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
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: Dan Trifan <jimsth@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: Dan Trifan <jimsth@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: Dan Trifan <jimsth@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: Dan Trifan <jimsth@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: Dan Trifan <jimsth@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: Dan Trifan <jimsth@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>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
hammerhead: Remove conflict with userspace bluedroid implementation

Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
leds: leds-qpnp: Correct switch frequency settings

New hardware has different settings than old hardware, which
is no longer supported.  Update settings as needed.

Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
Revert "arm/dt: msm8974-leds: Tune flash current to reduce overwhite in low light"

* This is no longer needed.
* Overwhite was result incorrect CM11 implementation of leds drivers.

Thanx to neobuddy89

This reverts commit 523c5d2cd8d9460345a584e93445ebb515078483.

Signed-off-by: Dan Trifan <jimsth@gmail.com>
leds: Use devm_kzalloc in leds-gpio.c file

devm_kzalloc() makes cleanup simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
leds: leds-gpio: use of_match_ptr()

Instead of having to define the match table to NULL if CONFIG_OF isn't
set, use the of_match_ptr() macro which will do this for us.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
leds: leds-gpio: Use platform_{get,set}_drvdata

Use the wrapper functions, so we can directly pass a struct
platfrom_device.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
leds: simple_strtoul() cleanup

led-class.c and ledtrig-timer.c still use simple_strtoul().  Change them
to use kstrtoul() instead of obsolete simple_strtoul().

Also fix the existing int ret declaration to be ssize_t to match the
return type for _store functions in ledtrig-timer.c.

[neo: Preserve previous commit as well.]

Signed-off-by: Shuah Khan <shuahkhan@gmail.com>
Cc: Joe Perches <joe@perches.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Cc: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>
leds: fixed a coding style issue.

Fixed a coding style issue relating to trailing
white space error found by checkpatch.pl tool in drivers/leds/led-class.c

Signed-off-by: Jeffrin Jose <ahiliation@yahoo.co.in>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Signed-off-by: Dan Trifan <jimsth@gmail.com>