From: <zhangxuezhi3@gmail.com>
To: Ian Abbott <abbotti@mev.co.uk>
Cc: hsweeten@visionengravers.com, gregkh@linuxfoundation.org,
zhangxuezhi1@coolpad.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] comedi: sysfs: convert sysfs snprintf to sysfs_emit
Date: Wed, 31 Aug 2022 20:49:06 +0800 [thread overview]
Message-ID: <20220831204906.730b0363@carlis-virtual-machine> (raw)
In-Reply-To: <0a0e568e-e3fc-56da-8370-e4796b480fe3@mev.co.uk>
On Wed, 31 Aug 2022 13:33:18 +0100
Ian Abbott <abbotti@mev.co.uk> wrote:
> On 31/08/2022 13:14, Xuezhi Zhang wrote:
> > From: zhangxuezhi1 <zhangxuezhi1@coolpad.com>
> >
> > Fix up all sysfs show entries to use sysfs_emit
> >
> > Signed-off-by: zhangxuezhi1 <zhangxuezhi1@coolpad.com>
>
> The patch looks fine apart from the Signed-off-by line. Please use a
> proper name for the Signed-off-by line. Generally, a romanized
> version of the forename(s) (given name(s)) followed by the surname
> (family name) is preferred, for example: Xuezhi Zhang.
>
> Could you please post a "PATCH v2" with a proper Signed-off-by line?
> Thanks.
Hi,
OK, I see.
Thanks.
> > ---
> > drivers/comedi/comedi_fops.c | 8 ++++----
> > 1 file changed, 4 insertions(+), 4 deletions(-)
> >
> > diff --git a/drivers/comedi/comedi_fops.c
> > b/drivers/comedi/comedi_fops.c index 55a0cae04b8d..e2114bcf815a
> > 100644 --- a/drivers/comedi/comedi_fops.c
> > +++ b/drivers/comedi/comedi_fops.c
> > @@ -396,7 +396,7 @@ static ssize_t max_read_buffer_kb_show(struct
> > device *csdev, mutex_unlock(&dev->mutex);
> >
> > comedi_dev_put(dev);
> > - return snprintf(buf, PAGE_SIZE, "%u\n", size);
> > + return sysfs_emit(buf, "%u\n", size);
> > }
> >
> > static ssize_t max_read_buffer_kb_store(struct device *csdev,
> > @@ -452,7 +452,7 @@ static ssize_t read_buffer_kb_show(struct
> > device *csdev, mutex_unlock(&dev->mutex);
> >
> > comedi_dev_put(dev);
> > - return snprintf(buf, PAGE_SIZE, "%u\n", size);
> > + return sysfs_emit(buf, "%u\n", size);
> > }
> >
> > static ssize_t read_buffer_kb_store(struct device *csdev,
> > @@ -509,7 +509,7 @@ static ssize_t max_write_buffer_kb_show(struct
> > device *csdev, mutex_unlock(&dev->mutex);
> >
> > comedi_dev_put(dev);
> > - return snprintf(buf, PAGE_SIZE, "%u\n", size);
> > + return sysfs_emit(buf, "%u\n", size);
> > }
> >
> > static ssize_t max_write_buffer_kb_store(struct device *csdev,
> > @@ -565,7 +565,7 @@ static ssize_t write_buffer_kb_show(struct
> > device *csdev, mutex_unlock(&dev->mutex);
> >
> > comedi_dev_put(dev);
> > - return snprintf(buf, PAGE_SIZE, "%u\n", size);
> > + return sysfs_emit(buf, "%u\n", size);
> > }
> >
> > static ssize_t write_buffer_kb_store(struct device *csdev,
>
prev parent reply other threads:[~2022-08-31 12:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-31 12:14 Xuezhi Zhang
2022-08-31 12:33 ` Ian Abbott
2022-08-31 12:49 ` zhangxuezhi3 [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220831204906.730b0363@carlis-virtual-machine \
--to=zhangxuezhi3@gmail.com \
--cc=abbotti@mev.co.uk \
--cc=gregkh@linuxfoundation.org \
--cc=hsweeten@visionengravers.com \
--cc=linux-kernel@vger.kernel.org \
--cc=zhangxuezhi1@coolpad.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®