Re: [RESUBMIT PATCH v7 7/9] regulator: sky81452: Modify Device Tree structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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.

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux