Re: [PATCH] mt9p031: Use bulk regulator API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jun 8, 2013 at 10:20 AM, Fabio Estevam <festevam@xxxxxxxxx> wrote:
> On Sat, Jun 8, 2013 at 4:55 AM, Laurent Pinchart
> <laurent.pinchart@xxxxxxxxxxxxxxxx> wrote:
>
>> -       if (IS_ERR(mt9p031->vaa) || IS_ERR(mt9p031->vdd) ||
>> -           IS_ERR(mt9p031->vdd_io)) {
>> +       ret = devm_regulator_bulk_get(&client->dev, 3, mt9p031->regulators);

and you could use ARRAY_SIZE(mt9p031->regulators) instead of the hardcoded '3'.
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux