regulator: s5m8767: Remove max_vol parameter from s5m8767_convert_voltage_to_sel
authorAxel Lin <axel.lin@ingics.com>
Sat, 29 Dec 2012 01:38:50 +0000 (09:38 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 17 Jan 2013 07:12:22 +0000 (16:12 +0900)
commit854f73ecb5c207007f9e850abd6f82ab89eaefb7
treedf6f7660c7e3a50021127fe9e7fff5549d9da86d
parent3051019409d99084f3b8f090b75d969adcc882e7
regulator: s5m8767: Remove max_vol parameter from s5m8767_convert_voltage_to_sel

It looks pointless to pass max_vol to s5m8767_convert_voltage_to_sel().
Compare selected voltage to desc->max is enough to ensure selected voltage
is in supported range.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/s5m8767.c