hwmon: INA219:  Remove compile warnings

Change-Id: Ibdafc853a1e52ad9573152d3feb8f6afae901c42
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246069
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
time: alarmtimer: Fix compile warning

	%ll is not legal format for printk - use %lld

Change-Id: Ie59783dfbd6558e2fe833c76b2ba96cd52bbac76
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246096
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
net: mhi  mhi_dgram  Fix warning messages

	printk arguments not in correct order
	___func__ is the char *

Change-Id: I7c39e64dcb20026ac015942380dbd523f198cd5e
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246607
Reviewed-by: WK Tsai <wtsai@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Scott Peterson <speterson@nvidia.com>
cpuidle: menu: Fix compiler warning.

	get_loadavg is defined.  not used.
	google code has code commented out but
	not the call.  comment out the call.

Change-Id: Ic4e39cad50d810ebac328cae2278b3e350bf43b3
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/247181
Reviewed-by: Scott Peterson <speterson@nvidia.com>
ARM: tegra: dalmore: update T40S mem table for rev 4.2

Bug 1265159

Change-Id: Ie9b6744ca75ec5ef278fa78e473198ee9088784e
Signed-off-by: Ray Poudrier <rapoudrier@nvidia.com>
Reviewed-on: http://git-master/r/240715
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
input: Fix compiler warning message

enabled sysfs attribute function needs const char *
not char * as argument.

Change-Id: I74204d64072b42af5c1ecfb3ac7a864780a7307c
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245349
Reviewed-by: Shridhar Rasal <srasal@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
input: misc:  Fix unused compiler warning

use direct functions rather than read / write wrappers
removes compiler warning about unused code.

Change-Id: I95682dcd24ed2e27eed6022352d6829cd29e2317
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245374
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
ARM: tegra: dvfs: Prevent CL-DVFS map allocation overflow

Instead of generating BUG() when number of CL-DVFS output map entries
exceeds look up table size, store maximum voltage mapping, and abort
allocation when last available slot is reached.

Change-Id: Ibff18a82e4efa3729f3e0641473acb826429a8e5
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/248945
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
ARM: tegra: tegratab: Doesn't enable LDO4 when boot-up

Doesn't enable LDO4 when boot-up.

Bug 1315583

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/243900
(cherry picked from commit 60f2f530b32306fa60c52352e37d10fbfbd772ac)

Change-Id: I93c871387b8f04d746effc8fa436eb7f883f7903
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/249054
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
ARM: tegra11: update sysedp tables assuming max VDD_CORE

This patch updates pluto and macallan sysedp corecap tables assuming
that VDD_CORE voltage is always at maximum level.

Bug 1316937

Change-Id: Ia250dd0d48b0efe0273c1eac286e24de76bbb4a7
Signed-off-by: Timo Alho <talho@nvidia.com>
Reviewed-on: http://git-master/r/243854
Reviewed-by: Harshada Kale <hkale@nvidia.com>
Tested-by: Harshada Kale <hkale@nvidia.com>
arm: tegra: macallan: Set VALRT.MIN to 3.5 of max17048.

Use voltage low alert when vcell is under 3.5V.

bug 1289570

Change-Id: I572311aa36baf2008623a73aa4b2e8e373214552
Signed-off-by: Hayden Du <haydend@nvidia.com>
Reviewed-on: http://git-master/r/236618
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
ARM: tegra: Increase PMU max voltage for vdd_cpu to 1350

Bug 1310622

Change-Id: I2d47023f46a0d6fb56731274b6312d89b51f1635
Signed-off-by: Chaitanya Bandi <bandik@nvidia.com>
Reviewed-on: http://git-master/r/244224
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>
HID: hid-sony: Fix compiler warning

Declarations come before code in c.

Change-Id: If640e07616a8b422a0362192ba7fd97194662db8
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/245586
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
mfd: remove compiler warning possible uninitialzed vars

warning is bogus but initializing variable has probably
no performance impact.

Change-Id: I27dcff816caef0f98e6f627dcbeb4789b59a0e39
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246193
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
   misc: Removed warnings from MAX1749 driver

Change-Id: I416a44a7188d36f2b014b0905d77dd89d5489a44
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246211
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Robert Collins <rcollins@nvidia.com>
Reviewed-by: Eric Miao <emiao@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
ARM: tegra: tegratab: Change GMI_CS4_N pinmux setting

Changed GMI_CS4_N pinmux setting for MAX11936 touch power sequence.

Bug 1304090

Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/243899
(cherry picked from commit 127b8836f2ebf591d9a585d58b2a6c82887dedc8)

Change-Id: I1d409b2bae54d3eedbb37db81b62626bfb94640d
Signed-off-by: Jinyoung Park <jinyoungp@nvidia.com>
Reviewed-on: http://git-master/r/249051
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yong Goo Yi <yyi@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
staging: iio: light: if no chip or shutdown return false

isl29028_write_data()
isl29028_read_als_ir()
isl29028_read_proxim()

return a bool..

if chip and shutdown return false

Change-Id: Icc7ce8de9332c4c7cc6f97232443a2f0b4816197
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/249234
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
power: sbs-battery: Shift work out of get_property function

The board is made to stay awake as long as the power_supply_changed
work thread is in execution. Hence, doing too much work in this thread
often hampers the board from entering LP0 state. Hence, shifting all
work to calculate battery parameters out of this thread and keeping
this thread minimal as to only assign the calculated values. The
calculations needed to obtain the values are not done in the
get_property function anymore.

Bug 1223793

Change-Id: I2595919c9dfd10b0f71136a25f1096a92bba5b3d
Signed-off-by: Darbha Sriharsha <dsriharsha@nvidia.com>
Reviewed-on: http://git-master/r/249641
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
arm: Fix compiler warning.

use type the kernel.h expects.

Change-Id: Idd3e9d7813151c9e2b2d2c5db7988b4e1715597b
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246091
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
misc: ti-st:  Fix compiler warnings

Change-Id: I7a97cad4d27ae9fceb5902bc18004eeb00102a84
Signed-off-by: Philip Rakity <prakity@nvidia.com>
Reviewed-on: http://git-master/r/246582
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>