2014-06-02 17:04:42

by Federico Di Pierro

[permalink] [raw]
Subject: [PATCH] fix some coding style problem in drivers/staging/iio/frequency/ad9832.c

Hi!
This is my latest task of the eudyptula challenge.
Just a very small patch! It fixes 3 little coding style problems.
I'm using linux-next.


Attachments:
patch (1.05 kB)

2014-06-02 17:14:20

by Joe Perches

[permalink] [raw]
Subject: Re: [PATCH] fix some coding style problem in drivers/staging/iio/frequency/ad9832.c

On Mon, 2014-06-02 at 19:05 +0200, Federico Di Pierro wrote:
> Hi!

Hello Federico.

> This is my latest task of the eudyptula challenge.

Your patch subject should be something like:

[PATCH] staging: iio: kernel style neatening

> Just a very small patch! It fixes 3 little coding style problems.
> I'm using linux-next.

linux/drivers/staging/iio/frequency/ad9832.c
[]
@@ -73,7 +73,7 @@ static int ad9832_write_phase(struct ad9
}

static ssize_t ad9832_write(struct device *dev,
- struct device_attribute *attr,
+ struct device_attribute *attr,
const char *buf,
size_t len)


checkpatch is a brainless little tool.

Please make sure your own brain is engaged when
acting on or verifying any warnings it emits.

Please expand the indented line range to include
all the arguments of the function.


2014-06-02 17:21:59

by Jianyu Zhan

[permalink] [raw]
Subject: Re: [PATCH] fix some coding style problem in drivers/staging/iio/frequency/ad9832.c

On Tue, Jun 3, 2014 at 1:05 AM, Federico Di Pierro <[email protected]> wrote:
> Hi!
> This is my latest task of the eudyptula challenge.
> Just a very small patch! It fixes 3 little coding style problems.
> I'm using linux-next.

Hi, Federico,

It's awesome you taking part in eudyptula challenge program. That is a
good start
to kernel hacking.

But also please honour the community rule - the inline patch is preferred than
in attachment form . Please have a look at Documentation/SubmittingPatches file
in kernel source directory first before submitting patches.

Thanks,
Jianyu Zhan

2014-06-02 17:42:55

by Jonathan Cameron

[permalink] [raw]
Subject: Re: [PATCH] fix some coding style problem in drivers/staging/iio/frequency/ad9832.c

On 02/06/14 18:05, Federico Di Pierro wrote:
> Hi!
> This is my latest task of the eudyptula challenge.
> Just a very small patch! It fixes 3 little coding style problems.
> I'm using linux-next.
Fair enough, but you need to spend a little time working
on the 'how' of your patch submission.
See Documentation/SubmittingPatches and repost the patch according
to those guidelines.

Also at a quick glance, unless I am very bored I'm unlikely to take
such a minor white space and bracket adjustment patch. If it were
part of a bigger series doing something more interesting I'd be
more interested.

If you want to approach this driver, then feel free but there are
many more major issues within it to be looked at such as ABI
compliance. See Documentation/ABI/testing/sysfs-bus-iio and friends
and compare the driver with them. Off the top of my head I can't
remember how bad this driver is but I doubt everything is well
documented.

Don't feel disheartened, as I would be happy to see more substantial
cleanup patches from you as part of the challenge or otherwise.

Good luck,

Jonathan

2014-06-02 19:11:25

by Dan Carpenter

[permalink] [raw]
Subject: Re: [PATCH] fix some coding style problem in drivers/staging/iio/frequency/ad9832.c

On Mon, Jun 02, 2014 at 07:05:01PM +0200, Federico Di Pierro wrote:
> - else {
> + } else {
> ret = -EINVAL;
> break;
> }
>
>
> Signed-off-by: Federico Di Pierro <[email protected]>

This goes after the changelog and before the diff.

regards,
dan carpenter