msm: vidc: Bug fix in instance clean-up

When close is called directly without proper state operations,
then driver tries to clean all V4L2 framework memory. When driver
calls queue_release, it tries to call stream_off again. This
causes driver to re-enter the state operations. This change
prevents driver to re-enter the state diagram.

Change-Id: I6df248792fca78fe743bead311fa1cec61a6bb79
Signed-off-by: Praneeth Paladugu <ppaladug@codeaurora.org>
qpnp-adc-tm: change vadc channel for external pull-up usb_id

If usb_id is pulled up externally, vadc channel should be
changed to no pull channel for accurate otg cable detection.
Make changes to consider external pull up on usb_id pin.

Change-Id: I448e213ca584713146e99fd00c081a203845741e
Author: jude84.kim <jude84.kim@lge.com>
Signed-off-by: jude84.kim <jude84.kim@lge.com>
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>
power: qpnp-adc-voltage: reset adc register to prevent lock-up.

VADC1_USR_INT_LATCHED_STS reg. is "1" which is indicating that the interrupt
has triggerd, not zero, after the specific warm reset scenarios as below
* adb reboot bootloader -> fastboot reboot

On that status, VADC irq does not occur and completion can not be changed
to complete state.  So qpnp_vadc_read func takes over 1 sec.

To solve that, write 0x0F to VADC1_USR_PERPH_RESET_CTL3 register
when v-adc driver shutdown, before starting warm reset.

Change-Id: I00b7083408e000230955c8667964fa1f201d3a12
Signed-off-by: Janghyun Baek <janghyun.baek@lge.com>
Signed-off-by: Devin Kim <dojip.kim@lge.com>