[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAAe_U6Kwetj8KKaio6wEQp_Tmy6EZWftkxYfcqmmgq5xygNATA@mail.gmail.com>
Date: Thu, 26 Jul 2012 16:53:50 +0530
From: "ABRAHAM, KISHON VIJAY" <kishon@...com>
To: Mark Brown <broonie@...nsource.wolfsonmicro.com>
Cc: lrg@...com, balbi@...com, linux-kernel@...r.kernel.org
Subject: Re: [RFC PATCH] drivers: regulator: add error checks for exported APIs
On Thu, Jul 26, 2012 at 4:52 PM, Mark Brown
<broonie@...nsource.wolfsonmicro.com> wrote:
> On Thu, Jul 26, 2012 at 04:49:21PM +0530, ABRAHAM, KISHON VIJAY wrote:
>> On Thu, Jul 26, 2012 at 4:40 PM, Mark Brown
>
>> > Also NULL is a valid regulator (though we don't use it right now).
>
>> I see a lot of dereferencing *regulator*. How is it supposed to work
>> when *regulator* is NULL?
>
> Like I say we don't use this now but the spec in the API is that
> anything except an error pointer is valid.
Ok.
Thanks
Kishon
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists