regulator: tps62361: make all register as non-volatile

All register fo TPS62361 is non-volatile and so implementing
this api for regmap actual caching.

bug 993297

Change-Id: I7695ed54bdb0fd9dec13e735264c12b60e18777a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119592
regulator: tps65090: Use IS_ERR to check return value of regulator_register

regulator_register never returns NULL.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked by: Venu Byravarasu <vbyravarasu@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(Cherry-picked from mainline
	0ca2d6e65268477a53f959320a43d13b0c4d6b70)

Conflicts:

	drivers/regulator/tps65090-regulator.c

Change-Id: Id79e2beb2a3e278ace32054c19c463783f334a16
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120372
regulator: tps65090: rename regulator enums

Renaming regulator enums from TPS65090_ID_* to
TPS65090_REGULATOR_* for better readability.

Change-Id: I402de2069045b97000686e8010897c4a0821a48d
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120835
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
regulator: tps65090: separate regulator info with device info

Currently the regulator info is stored in the data structure of
device. This avoid to have multiple instance of this driver
as it can corrupt the other instance driver.
Separating driver specific data with device information.

Change-Id: I359f05e07c2d2f4ade216e84a1a37c6dd8d5cb34
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120836
regulator: tps65090: convert regualtor_init_data as pointer

In regulator platform data for tps65090, convert the regulator
init data to a pointer type to have easy support in DT.

Change-Id: I00a88e9f12ce5c55880e5c5084357d495bc99b56
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120837
regulator: tps65090: fix multiple regulator registration issue

The regulator of tps65090 is registered as mfd sub device
and hence all regulator should be register in one call
of tps65090 regulator probe.
Fixing this by providing the list of regulator platform data
and registering the regulators in single probe call.

Change-Id: I06600d0bf4dfd62238bed77713ee8abf2afe2371
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120838
regulator tps65090: fix compilation warning

Fix compilation warning of -Wmaybe-uninitialized

Change-Id: Iad929f87205723cc906d2520630c2e1f20df4cf6
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120843
Reviewed-by: Automatic_Commit_Validation_User
regulator: tps65090: support for LDO1 and LDO2

The LDO1 and LDO2 are always-on regulator from device.
Add support for these rails.

Change-Id: I9636029a1ba293b4a48f596a8e6a91112f2d2299
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120889
Reviewed-by: Automatic_Commit_Validation_User
regulator: tps65090: Support for external control of DCDC

The DCDC regulators can support of control through extrenal
signal. Add support of this feature.

Change-Id: I9564d09cbab4d8903e8ea2fddc6739bbeb1573e2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120890
regulator: tps65090: support for input supply

Fill the desc.supply_name for each rail with corresponding
input pinname as per datasheet.

Change-Id: I6dda1a95255549cce1773e271d6529d0f4d10392
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/120891
Reviewed-by: Automatic_Commit_Validation_User
regulator: tps80031: rename regulator-name enums

Renaming the regulator name from TPS80031_ID_* to
TPS80031_REGULATOR_* for better readability.

Change-Id: I627b6ddb78a60e44da2a869c0d51dd84166302ed
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119972
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Revert "Revert "regulator: tps80031: rename regulator-name enums""

This reverts commit 70e40e9cf025c73fde46d1a5577547dc37182a64

Change-Id: Iaf390c0d3ea16686f619f321bceea572ee7434fc
Reviewed-on: http://git-master/r/119802
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
regulator: tps80031: support for external regulator

TPS80031 supports the three external regulator named
as REGEN1, REGEN2 and SYSEN.
Supports these regulator through regulator driver.

Change-Id: I6c22aab13499a66ab8b4c68e8a5833553222decd
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/119977
usb: otg: tegra: enable warning as error flag

-enable warnings as errors compilation flag
-handle errors of missing semicolon and mismatched argument type

bug 949219

Change-Id: I29b1c08c590c94fa1aa43a9e37abf0385e3597d5
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118235
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
video: tegra: treat compilation warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ib183b75f73df1a141f1dfdbc330369da838b24b9
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118086
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
video: tegra: treat compilation warning as error

- Adding flag to treat warning as error.
- Handled warning of unused function.

bug 949219

Change-Id: Ic6edfc28bae95b8395cbd51e80f14aa4aa663f61
Signed-off-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-on: http://git-master/r/114624
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
w1: master: tegra: treat compile warning as error

- Add compilation flag to treat warning as error

bug 949219

Change-Id: Ifc6b454e3debf44c14720d2aa908147902d57b79
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118087
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
watchdog: tegra: enable compile warning as error

- Add compilation flag to treat warning as error
- Handle error of unused variable
- Handle error of uninitialised variable

bug 949219

Change-Id: I07437be5eaa7bf7abe5494c828690b6be3b98178
Signed-off-by: schowdary <schowdary@nvidia.com>
Reviewed-on: http://git-master/r/118039
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
usb: gadget: treat warning as errors for tegra_udc.c

bug 949219

Change-Id: If76cece9a5c929216024b165f48f37c4046faffc
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118037
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
net: caif: tegra: enable warnings as errors flag

-enable warnings as errors compilation flag

bug 949219

Change-Id: Ifeaba174d59c437e0068324b73dffd287f90c957
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/118041
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Sanjay Singh Rawat <srawat@nvidia.com>
Reviewed-by: Sheshagiri Shenoy <sshenoy@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Sri Krishna Chowdary <schowdary@nvidia.com>