Re: [PATCH] regulator: max77693: Skip register regulator if noplatform initialization data

From: Mark Brown
Date: Sat Jun 29 2013 - 08:27:37 EST


On Sat, Jun 29, 2013 at 12:04:19PM +0800, Axel Lin wrote:
> The code in max77693_pmic_dt_parse_rdata() does skip setting rdata if
> !rmatch[i].init_data. So we may have some empty entries in rdata[].
> We need to skip register regulator if no platform initialization data,
> otherwise we may resiter regulator with invalid settings ( the empty entries
> of rdata[]).

It should be legal to have no init data, this should make the regulator
available read only (allowing the current settings to be read back but
nothing else).

Attachment: signature.asc
Description: Digital signature