From: Sergei Shtylyov <sshtylyov@mvista.com>
To: Michal Nazarewicz <m.nazarewicz@samsung.com>
Cc: linux-usb@vger.kernel.org, Greg KH <greg@kroah.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] USB: gadget: storage_common: comments updated
Date: Sun, 04 Jul 2010 14:26:49 +0400 [thread overview]
Message-ID: <4C3061E9.8060103@ru.mvista.com> (raw)
In-Reply-To: <35e07b59ee0738c2019d2b81958890a472941a0e.1277902597.git.m.nazarewicz@samsung.com>
Hello.
Michal Nazarewicz wrote:
> Updated comment to describe why printing macros are needed even
> thought they are copied form the composite.h. Also, made multiline
> comments follow the coding standard.
> Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
[...]
> diff --git a/drivers/usb/gadget/storage_common.c b/drivers/usb/gadget/storage_common.c
> index 04c462f..557b119 100644
> --- a/drivers/usb/gadget/storage_common.c
> +++ b/drivers/usb/gadget/storage_common.c
> @@ -84,14 +84,23 @@
> #define LWARN(lun, fmt, args...) dev_warn(&(lun)->dev, fmt, ## args)
> #define LINFO(lun, fmt, args...) dev_info(&(lun)->dev, fmt, ## args)
>
> -/* Keep those macros in sync with thos in
> - * include/linux/ubs/composite.h or else GCC will complain. If they
> +/*
> + * Keep those macros in sync with thos in
s/thos/those/ while at, please.
> + * include/linux/usb/composite.h or else GCC will complain. If they
> * are identical (the same names of arguments, white spaces in the
> * same places) GCC will allow redefinition otherwise (even if some
> - * white space is removed or added) warning will be issued. No
> - * checking if those symbols is defined is performed because warning
> - * is desired when those macros were defined by someone else to mean
> - * something else. */
> + * white space is removed or added) warning will be issued.
> + *
> + * Those macros are needed here because File Storage Gadget does not
> + * include the composite.h header. For composite gadgets those macros
> + * are redundant since composite.h is included any way.
> + *
> + * No checking if those symbols is defined is performed because
^^ are
> @@ -313,9 +322,12 @@ struct fsg_buffhd {
> enum fsg_buffer_state state;
> struct fsg_buffhd *next;
>
> - /* The NetChip 2280 is faster, and handles some protocol faults
> - * better, if we don't submit any short bulk-out read requests.
> - * So we will record the intended request length here. */
> + /*
> + * The NetChip 2280 is faster, and handles some protocol
> + * faults better, if we don't submit any short bulk-out read
> + * requests. So we will record the intended request length
> + * here.
Hm, why reformat the paragraph?
WBR, Sergei
next prev parent reply other threads:[~2010-07-04 10:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-01 9:17 Michal Nazarewicz
2010-07-04 10:26 ` Sergei Shtylyov [this message]
2010-07-05 14:38 ` [PATCHv2] " Michal Nazarewicz
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=4C3061E9.8060103@ru.mvista.com \
--to=sshtylyov@mvista.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=m.nazarewicz@samsung.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®