lkml.org 
[lkml]   [2012]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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.



\
 
 \ /
  Last update: 2012-08-09 15:23    [W:0.095 / U:1.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site