lkml.org 
[lkml]   [2015]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] regulator: max8660: Add error message for missing regulator data

> for (i = 0; i < pdata->num_subdevs; i++) {
> - if (!pdata->subdevs[i].platform_data)
> + if (!pdata->subdevs[i].platform_data) {
> + dev_err(dev, "No data for %d regulator\n", i);
> return -EINVAL;
> + }

I'd rather save the string and go for -ENOENT instead. But I don't mind
much...

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2015-03-24 14:01    [W:0.044 / U:2.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site