]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: improve mmc_of_parse_voltage() to return better status
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 29 Jan 2016 09:43:55 +0000 (09:43 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 29 Feb 2016 10:03:07 +0000 (11:03 +0100)
commit0772f4ebaa3a57fc0c254bc499739966055cfbe0
treeec2a1679f1d575ba1d6679e9622ffb4180d82aa2
parentd0207c31ee7e3a04ee0bdbe8427e1c021c7e4586
mmc: core: improve mmc_of_parse_voltage() to return better status

Improve mmc_of_parse_voltage()'s return values so that drivers can tell
whether a voltage-range specification was present, and whether it has
been successfully parsed, or there was an error while parsing.

We return a negative errno when parsing fails, zero if no voltage-range
specification is present, or one if a voltage-range specification is
successfully parsed.

No users need modifying as no users check the return value.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/core.c