Staging: comedi: drivers: fixed errors warning coding style issue
PATCH 1/1 Staging: comedi: drivers: fixed errors warning coding style issue
Fixed a coding style issue.
--- drivers/staging/comedi/drivers.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-)
drivers/staging/comedi/drivers.c +15 -3
@@ -133,7 +133,7 @@ EXPORT_SYMBOL_GPL(comedi_alloc_subdevices);* On success, @s->readback points to the first element of the array, which * is zero-filled. The low-level driver is responsible for updating its * contents. @s->insn_read will be set to comedi_readback_insn_read() -* unless it is already non-NULL. +* Unless it is already non-NULL. * * Returns 0 on success, -EINVAL if the subdevice has no channels, or * -ENOMEM on allocation failure.
@@ -282,8 +282,20 @@ EXPORT_SYMBOL_GPL(comedi_readback_insn_read);* continue waiting or some other value to stop waiting (generally 0 if the * condition occurred, or some error value). * -* Returns -ETIMEDOUT if timed out, otherwise the return value from the -* callback function. +* Redback_insn_read() - A generic (*insn_read) for subdevice readback. +* @dev: COMEDI device. +* @s: COMEDI subdevice. +* @insn: COMEDI instruction. +* @data: Pointer to return the readback data. +* Handles the %INSN_READ instruction for subdevices that use the readback +* array allocated by comedi_alloc_subdev_readback(). It may be used +* directly as the subdevice's handler (@s->insn_read) or called via a +* wrapper. +* @insn->n is normally 1, which will read a single value. If higher, the +* same element of the readback array will be read multiple times. +* Returns @insn->n on success, +* or -EINVAL if @s->readback is NULL.turns -ETIMEDOUT if timed out, +* otherwise the return value from the callback function. */ int comedi_timeout(struct comedi_device *dev, struct comedi_subdevice *s,
Signature · 1 line
2.17.1
Quoted 1 line · sunnypranay
Fixed a coding style issue.
What issue?
Quoted 2 lines
Signed-off-by sunnypranay <[email protected]>
We need a "real" name here, one that you use for documents.
Quoted 27 lines
--- drivers/staging/comedi/drivers.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-)drivers/staging/comedi/drivers.c +5
-3@@ -133,7 +133,7 @@ EXPORT_SYMBOL_GPL(comedi_alloc_subdevices);* On success, @s->readback points to the first element of the array, which * is zero-filled. The low-level driver is responsible for updating its * contents. @s->insn_read will be set to comedi_readback_insn_read() -* unless it is already non-NULL. +* Unless it is already non-NULL. * * Returns 0 on success, -EINVAL if the subdevice has no channels, or * -ENOMEM on allocation failure. @@ -282,8 +282,20 @@ EXPORT_SYMBOL_GPL(comedi_readback_insn_read);* continue waiting or some other value to stop waiting (generally 0 if the * condition occurred, or some error value). * -* Returns -ETIMEDOUT if timed out, otherwise the return value from the -* callback function. +* Redback_insn_read() - A generic (*insn_read) for subdevice readback. +* @dev: COMEDI device. +* @s: COMEDI subdevice. +* @insn: COMEDI instruction.
drivers/staging/comedi/drivers.c EXPORT_SYMBOL_GPL(comedi_readback_insn_read); · line 298
Quoted 10 lines
drivers/staging/comedi/drivers.c +10
-0+* @data: Pointer to return the readback data. +* Handles the %INSN_READ instruction for subdevices that use the readback +* array allocated by comedi_alloc_subdev_readback(). It may be used +* directly as the subdevice's handler (@s->insn_read) or called via a +* wrapper. +* @insn->n is normally 1, which will read a single value. If higher, the +* same element of the readback array will be read multiple times. +* Returns @insn->n on success, +* or -EINVAL if @s->readback is NULL.turns -ETIMEDOUT if timed out, +* otherwise the return value from the callback function.
Where did all of that come from?
thanks,
greg k-h
Quoted 7 lines · Sunny Pranay
Quoted 1 line
Before the patch were created there were few warnings indicating the
statements were bigger than 80 characters and some of them were not properly commented like having extra space. So I created a patch for that reducing comments to below 80 characters and maintained proper spacing. That was I meant by fixed coding style issue.
Quoted 1 line
My original name is M Pranay
Ok, then please fix this by properly saying all of this in the changelog text when you resubmit the patch.
thanks,
greg k-h
Quoted 1 line · sunnypranay
Fixed a coding style issue.
What issue is that?
Quoted 2 lines
Signed-off-by sunnypranay <[email protected]>
This doesn't seem like a Formal Name that you would use to sign legal documents.
Quoted 9 lines
--- drivers/staging/comedi/drivers.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-)drivers/staging/comedi/drivers.c +0
-0
drivers/staging/comedi/drivers.c EXPORT_SYMBOL_GPL(comedi_alloc_subdevices); · line 136
Quoted 5 lines
drivers/staging/comedi/drivers.c +1
-1@@ -133,7 +133,7 @@ EXPORT_SYMBOL_GPL(comedi_alloc_subdevices);* On success, @s->readback points to the first element of the array, which * is zero-filled. The low-level driver is responsible for updating its * contents. @s->insn_read will be set to comedi_readback_insn_read() -* unless it is already non-NULL. +* Unless it is already non-NULL.
The original capitalization was correct. It should be lower case.
drivers/staging/comedi/drivers.c EXPORT_SYMBOL_GPL(comedi_readback_insn_read); · line 285
Quoted 10 lines
drivers/staging/comedi/drivers.c +1
-2* * Returns 0 on success, -EINVAL if the subdevice has no channels, or * -ENOMEM on allocation failure. @@ -282,8 +282,20 @@ EXPORT_SYMBOL_GPL(comedi_readback_insn_read);* continue waiting or some other value to stop waiting (generally 0 if the * condition occurred, or some error value). * -* Returns -ETIMEDOUT if timed out, otherwise the return value from the -* callback function. +* Redback_insn_read() - A generic (*insn_read) for subdevice readback.
^^^^^^^^^^^^^^^^^
What is this???
regards,
dan carpenter