[lkml]   [2012]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: drivers/regulator/core.c: Fixes mapping inside regulator_mode_to_status() and makes it returning -EINVAL on invalid input.
On Mon, Jan 09, 2012 at 12:12:20PM +0000, Krystian Garbaciak wrote:
> Minor fix that makes the function working correctly with
> Also, on invalid input (bad mode), it is better to return -EINVAL,
> instead of meaningless 0 value (which actually is interpreted as
> ---

As I previously said you need to follow the patch submission process in
SubmittingPatches. Here you need to:

- Sign off your patch. Without this your patch cannot be applied.
- Send the patches to the maintainers (not just one of them) and the

You should also make an effort to use subject lines for your patch that
match up with what the rest of the subsystem is doing.

> default:
> - return 0;
> + return -EINVAL;

This behaviour is deliberate.

 \ /
  Last update: 2012-01-09 17:17    [W:0.047 / U:0.236 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site