Re: [PATCH 1/2] regulators: Add definition of regulator_set_voltage_time() for !CONFIG_REGULATOR

From: Viresh Kumar
Date: Tue Jun 03 2014 - 11:25:32 EST


On 3 June 2014 20:23, Mark Brown <broonie@xxxxxxxxxx> wrote:
> Well, we would need to look at what the drivers were doing and figure
> out something sensible - it really depends why they're trying to set the
> regulator and what would happen if it doesn't work.

For example, few cpufreq drivers are calling it during frequency
transition and are checking return value as well.. And fail if it failed.

One way out might be checking if pointer to regulator is valid or not
and only call it if pointer is not NULL..
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/