Commit 5ff17d5d authored by Jeff Ohlstein's avatar Jeff Ohlstein
Browse files

input: cyttsp-i2c: Don't set mode on unsettable regulators



Currently during boot, and every suspend and resume, we call
regulator_set_optimum_mode on every touchscreen regulator. However,
some regulators don't support this function, and this will cause
set_optimum_mode to print an error when this occurs. Correct this by
checking if it is valid to call set_optimum_mode on a given regulator
before doing so.

Change-Id: I71f0f14b16d9f333bd409d9d5150f11a7ccd8fdf
Signed-off-by: default avatarJeff Ohlstein <johlstei@codeaurora.org>
parent 2cbe5baa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment