Re: [PATCH 2/5] regulator: rt5033: Add RT5033 Regulator device driver

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

 




On Fri, Nov 07, 2014 at 11:52:04AM +0900, Beomho Seo wrote:

> +static int rt5033_regulator_dt_parse_data(struct device *dev)
> +{
> +	int ret;
> +	struct device_node *np;
> +
> +	np = of_get_child_by_name(dev->parent->of_node, "regulators");
> +	if  (!np) {
> +		dev_err(dev, "Failed to get child node for regulators\n");
> +		return -EINVAL;
> +	}
> +
> +	ret = of_regulator_match(dev, np, rt5033_regulator_matches,
> +					ARRAY_SIZE(rt5033_regulator_matches));
> +	if (ret < 0)
> +		return ret;

Please convert this to use regulators_node in the descriptor to match
the regulators, then you don't need any specific code.

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