mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bean Huo <beanhuo@outlook.com>
To: Jingoo Han <jg1.han@samsung.com>,
	"dwmw2@infradead.org" <dwmw2@infradead.org>,
	"computersforpeace@gmail.com" <computersforpeace@gmail.com>
Cc: "paul.gortmaker@windriver.com" <paul.gortmaker@windriver.com>,
	"artem.bityutskiy@linux.intel.com"
	<artem.bityutskiy@linux.intel.com>,
	"b32955@freescale.com" <b32955@freescale.com>,
	"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"christian.riesch@omicron.at" <christian.riesch@omicron.at>
Subject: RE: [PATCH v5] mtd:nor:timeout:fix do_write_buffer() timeout error
Date: Wed, 16 Jul 2014 08:48:49 +0000	[thread overview]
Message-ID: <BLU185-W44C89261B8307EBFCC2EC0A6F70@phx.gbl> (raw)
In-Reply-To: <002201cfa0ca$be634b10$3b29e130$%han@samsung.com>


>> + if (cfi->cfiq->BufWriteTimeoutTyp &&
>> + cfi->cfiq->BufWriteTimeoutMax){
>> + cfi->chips[i].buffer_write_time_max =
>> + 1<<(cfi->cfiq->BufWriteTimeoutTyp +
>> + cfi->cfiq->BufWriteTimeoutMax);
>> + } else {
>> + cfi->chips[i].buffer_write_time_max = 0;
>> + }
>
> Please keep the coding style as below.
>
> if ( ) {
> ...
> } else {
> ...
> }
>

If I keep coding style as above.this will be beyond the requirements of one line length.
I also saw othter files use the same code style as mine.please see:cfi_cmdset_0001.c

if (cfi->cfiq->WordWriteTimeoutTyp &&
     cfi->cfiq->WordWriteTimeoutMax)
        cfi->chips[i].word_write_time_max =
		1<<(cfi->cfiq->WordWriteTimeoutTyp +
		      cfi->cfiq->WordWriteTimeoutMax);
else
      cfi->chips[i].word_write_time_max = 50000 * 8;

Note: beacuse I cann't send mail by git in office,I send this patch by web mail client.So,
there still a error stype in this patch(web mail client will remove some spaces),that is one space required before that '>='.I will send again this patch at home.
For your coding style advice, I will take into account,but i don't know if can put one line. 		 	   		  

  reply	other threads:[~2014-07-16  8:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-16  7:09 [PATCH v4] " Bean Huo
2014-07-16  7:19 ` [PATCH v5] " Bean Huo
2014-07-16  7:51   ` Jingoo Han
2014-07-16  8:48     ` Bean Huo [this message]
2014-07-16 10:22       ` Jingoo Han
2014-07-16 16:10         ` Bean Huo

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=BLU185-W44C89261B8307EBFCC2EC0A6F70@phx.gbl \
    --to=beanhuo@outlook.com \
    --cc=artem.bityutskiy@linux.intel.com \
    --cc=b32955@freescale.com \
    --cc=christian.riesch@omicron.at \
    --cc=computersforpeace@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=jg1.han@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=paul.gortmaker@windriver.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®