From: Chen Gong <g.chen@freescale.com>
To: linux-mtd@lists.infradead.org
Cc: Chen Gong <g.chen@freescale.com>
Subject: [PATCH 2/3] [MTD] m25p80.c code cleanup
Date: Mon, 11 Aug 2008 16:59:14 +0800 [thread overview]
Message-ID: <1218445155-6238-3-git-send-email-g.chen@freescale.com> (raw)
In-Reply-To: <1218445155-6238-2-git-send-email-g.chen@freescale.com>
code cleanup for m25p80.c
Signed-off-by: Chen Gong <g.chen@freescale.com>
---
drivers/mtd/devices/m25p80.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 8fbd1b5..b2b58c1 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -134,7 +134,7 @@ static inline int write_enable(struct m25p *flash)
{
u8 code = OPCODE_WREN;
- return spi_write_then_read(flash->spi, &code, 1, NULL, 0);
+ return spi_write(flash->spi, &code, 1);
}
--
1.5.4
next prev parent reply other threads:[~2008-08-11 9:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-11 8:59 [PATCH 0/3] RESEND m25p80.c enhance patches Chen Gong
2008-08-11 8:59 ` [PATCH 1/3] [MTD] m25p80.c erase enhance Chen Gong
2008-08-11 8:59 ` Chen Gong [this message]
2008-08-11 8:59 ` [PATCH 3/3] [MTD] m25p80.c extended jedec support Chen Gong
-- strict thread matches above, loose matches on Subject: below --
2008-06-20 11:04 [PATCH 1/3] [MTD] m25p80.c add a erase_block command to enhance erase operation Chen Gong
2008-06-20 11:04 ` [PATCH 2/3] [MTD] m25p80.c code cleanup Chen Gong
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=1218445155-6238-3-git-send-email-g.chen@freescale.com \
--to=g.chen@freescale.com \
--cc=linux-mtd@lists.infradead.org \
/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