* [PATCH] Staging: comedi: fix coding style issues in poc.c
@ 2014-02-24 9:48 David Roddick
2014-02-24 10:21 ` Dan Carpenter
0 siblings, 1 reply; 2+ messages in thread
From: David Roddick @ 2014-02-24 9:48 UTC (permalink / raw)
To: gregkh; +Cc: abbotti, hsweeten, devel, linux-kernel, David Roddick
Removed unnecessary spaces after function pointer names and corrected multi-line wrap alignment
Signed-off-by: David Roddick <dgroddick@gmail.com>
---
drivers/staging/comedi/drivers/poc.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/comedi/drivers/poc.c b/drivers/staging/comedi/drivers/poc.c
index 2ae4ee1..514ccd8 100644
--- a/drivers/staging/comedi/drivers/poc.c
+++ b/drivers/staging/comedi/drivers/poc.c
@@ -36,16 +36,16 @@ Configuration options:
struct boarddef_struct {
const char *name;
unsigned int iosize;
- int (*setup) (struct comedi_device *);
+ int (*setup)(struct comedi_device *);
int type;
int n_chan;
int n_bits;
- int (*winsn) (struct comedi_device *, struct comedi_subdevice *,
- struct comedi_insn *, unsigned int *);
- int (*rinsn) (struct comedi_device *, struct comedi_subdevice *,
- struct comedi_insn *, unsigned int *);
- int (*insnbits) (struct comedi_device *, struct comedi_subdevice *,
- struct comedi_insn *, unsigned int *);
+ int (*winsn)(struct comedi_device *, struct comedi_subdevice *,
+ struct comedi_insn *, unsigned int *);
+ int (*rinsn)(struct comedi_device *, struct comedi_subdevice *,
+ struct comedi_insn *, unsigned int *);
+ int (*insnbits)(struct comedi_device *, struct comedi_subdevice *,
+ struct comedi_insn *, unsigned int *);
const struct comedi_lrange *range;
};
--
1.8.5.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Staging: comedi: fix coding style issues in poc.c
2014-02-24 9:48 [PATCH] Staging: comedi: fix coding style issues in poc.c David Roddick
@ 2014-02-24 10:21 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2014-02-24 10:21 UTC (permalink / raw)
To: David Roddick; +Cc: gregkh, devel, abbotti, linux-kernel
You have not understood what Joe said.
On Mon, Feb 24, 2014 at 08:48:47PM +1100, David Roddick wrote:
> Removed unnecessary spaces after function pointer names and corrected multi-line wrap alignment
>
This should be line wrapped at 72 characters (same rule as email). In
other words it should take two lines like this:
Removed unnecessary spaces after function pointer names and corrected
multi-line wrap alignment.
> Signed-off-by: David Roddick <dgroddick@gmail.com>
> ---
> drivers/staging/comedi/drivers/poc.c | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/poc.c b/drivers/staging/comedi/drivers/poc.c
> index 2ae4ee1..514ccd8 100644
> --- a/drivers/staging/comedi/drivers/poc.c
> +++ b/drivers/staging/comedi/drivers/poc.c
> @@ -36,16 +36,16 @@ Configuration options:
> struct boarddef_struct {
> const char *name;
> unsigned int iosize;
> - int (*setup) (struct comedi_device *);
> + int (*setup)(struct comedi_device *);
> int type;
> int n_chan;
> int n_bits;
> - int (*winsn) (struct comedi_device *, struct comedi_subdevice *,
> - struct comedi_insn *, unsigned int *);
> - int (*rinsn) (struct comedi_device *, struct comedi_subdevice *,
> - struct comedi_insn *, unsigned int *);
> - int (*insnbits) (struct comedi_device *, struct comedi_subdevice *,
> - struct comedi_insn *, unsigned int *);
> + int (*winsn)(struct comedi_device *, struct comedi_subdevice *,
> + struct comedi_insn *, unsigned int *);
This is wrong. It should be exactly like Joe said:
int (*winsn)(struct comedi_device *, struct comedi_subdevice *,
struct comedi_insn *, unsigned int *);
[tab][tab][space][space][space][space][space]struct comedi_insn *,
Ideally it would have a variable name here, but since that wasn't there
in the original, we would accept the patch without it. All the data
types are pretty clear what they are already, the only thing which is
not clear is what the last parameter does.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-24 10:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-24 9:48 [PATCH] Staging: comedi: fix coding style issues in poc.c David Roddick
2014-02-24 10:21 ` Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).