regulator: fan53555: use set_ramp_delay to set the ramp up slew rate
authorHeiko Stuebner <heiko@sntech.de>
Tue, 16 Sep 2014 15:54:01 +0000 (17:54 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 16 Sep 2014 16:56:11 +0000 (09:56 -0700)
commitdd7e71fbeefe9179b94eed81f8b33da06b9bf062
treebe6854477bedd2e0388ac12647b93b50aacb0b6c
parent3415d60113f64176114f1bddc09f76c222d85fae
regulator: fan53555: use set_ramp_delay to set the ramp up slew rate

The regulator constraints already provide a field for the ramp_delay, so
there is no need to set this manually. Therefore implement the set_ramp_delay
callback and convert the pdata value to the constraint value if necessary.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/fan53555.c