On Wed, Nov 19, 2014 at 04:39:54PM +0900, Gyungoh Yoo wrote:
> If of_match and regulators_node are assigned, don't I need to
> call of_regulator_match()? Does regulator_register() call it internally?
> So can I write code like below?
>
> static const struct regulator_desc sky81452_reg = {
> .name = "LOUT",
> .of_match = of_match_ptr("lout"),
> .regulators_node = of_match_ptr("regulator"),
> .ops = &sky81452_reg_ops,
> ...
> };> config.regmap = dev_get_drvdata(dev->parent); > > rdev = devm_regulator_register(dev, &sky81452_reg, &config); Yes, exactly.
signature.asc
Description: Digital signature

