# Re: \[PATCH V2 3/3\] soc: fsl: add RCPM driver

- From: Pavel Machek \<hidden\>
- Date: 2019-05-19 21:38:48 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2019/05/5600742
- Thread: https://ratatoskr.run/linuxppc-dev/2019/05/5599613/t.md

```text
Hi!


> +
> +struct rcpm {
> +	unsigned int wakeup_cells;
> +	void __iomem *ippdexpcr_base;
> +	bool	little_endian;
> +};

Inconsistent whitespace


> +static int rcpm_pm_prepare(struct device *dev)
> +{
> +	struct device_node *np = dev->of_node;
> +	struct wakeup_source *ws;
> +	struct rcpm *rcpm;
> +	u32 value[RCPM_WAKEUP_CELL_MAX_SIZE + 1], tmp;
> +	int i, ret;
> +
> +	rcpm = dev_get_drvdata(dev);
> +	if (!rcpm)
> +		return -EINVAL;
> +
> +	/* Begin with first registered wakeup source */
> +	ws = wakeup_source_get_next(NULL);
> +	while (ws) {

while (ws = wakeup_source_get_next(NULL)) ?


> +static int rcpm_probe(struct platform_device *pdev)
> +{
> +	struct device	*dev = &pdev->dev;
> +	struct resource *r;
> +	struct rcpm		*rcpm;
> +	int ret;

Whitespace.

								Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
```

## Attachments

- [signature.asc](https://ratatoskr.run/linuxppc-dev/2019/05/5600742/attachment/0) (application/pgp-signature, 181 bytes)
