Re: [PATCH 13/14] regulator: check name in initialization of max8925

From: Mark Brown
Date: Tue Apr 19 2011 - 04:09:21 EST


On Mon, Apr 18, 2011 at 07:42:09PM -0700, Haojian Zhuang wrote:
> Machine driver:
> Platform data:
> .regulator[0] = xxx
> .regulator[1] = xxx

> The index of regulator array is id of buck and ldo.
> There's issue in max8925_core.c since we can't assume regulator[0] always declared in machine driver.

What is the issue? It's trivial to skip the regulator if the data is
null.
--
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/