Messages in this thread | | | Date | Thu, 9 Aug 2012 17:49:49 +0530 | From | Laxman Dewangan <> | Subject | Re: [PATCH V2 3/3] regulator: add MAX8907 driver |
| |
On Thursday 09 August 2012 02:48 AM, Stephen Warren wrote: > From: Gyungoh Yoo<jack.yoo@maxim-ic.com> > > The MAX8907 is an I2C-based power-management IC containing voltage > regulators, a reset controller, a real-time clock, and a touch-screen
> + for (i = 0; i< MAX8907_NUM_REGULATORS; i++) { > + config.dev = pdev->dev.parent; > + if (pdata) > + idata = pdata->init_data[i]; > + else > + idata = max8907_matches[i].init_data;
Can we check whether idata is valid or not? There may be possibility that some of regulator node is not populated and that case, the idata will be NULL and hence regulator registration can be bypass for that regulator.
| |