Question about the regulator driver

From: Kim, Milo
Date: Thu Apr 05 2012 - 20:36:04 EST


Hello,

I have a question about the regulator driver design.

There is a mfd device including charger and regulator functions.

For supporting DCDC(or BUCK) and LDO functions, the regulator driver is used.
(like setting voltage, current limit and so on)
On the other hand, the charger module is registered as the power supply class driver.

But charging termination voltage and charging current can be configurable in the charger operation.
In that case, is it common to add regulator_ops for the charger ?
Or is it better that charging parameters are set only in the power supply driver ?

I'd like to have your opinion.

Thanks & BR
Milo -

--
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/