aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Boulay <simon.boulay@alkeona.net>2014-06-01 10:57:44 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-01 19:46:57 -0400
commitaeb49155dbc5a9404b1cdcd087132ef959bf666d (patch)
tree94189db7be30b120271a3942bd9d8b835d680036
parentf4d90513c83d8d8e2e33f88c1ccba1db2dc31e72 (diff)
staging/mt29f_spinand: coding style fixes
This patch fixes coding style errors reported by checkpatch.pl. It adds new lines after declarations in two places. Signed-off-by: Simon Boulay <simon.boulay@alkeona.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/mt29f_spinand/mt29f_spinand.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.c b/drivers/staging/mt29f_spinand/mt29f_spinand.c
index 5a40925680ac..3464e0c521e6 100644
--- a/drivers/staging/mt29f_spinand/mt29f_spinand.c
+++ b/drivers/staging/mt29f_spinand/mt29f_spinand.c
@@ -699,6 +699,7 @@ static void spinand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len)
699{ 699{
700 700
701 struct spinand_state *state = mtd_to_state(mtd); 701 struct spinand_state *state = mtd_to_state(mtd);
702
702 memcpy(state->buf + state->buf_ptr, buf, len); 703 memcpy(state->buf + state->buf_ptr, buf, len);
703 state->buf_ptr += len; 704 state->buf_ptr += len;
704} 705}
@@ -706,6 +707,7 @@ static void spinand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len)
706static void spinand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len) 707static void spinand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len)
707{ 708{
708 struct spinand_state *state = mtd_to_state(mtd); 709 struct spinand_state *state = mtd_to_state(mtd);
710
709 memcpy(buf, state->buf + state->buf_ptr, len); 711 memcpy(buf, state->buf + state->buf_ptr, len);
710 state->buf_ptr += len; 712 state->buf_ptr += len;
711} 713}