Skip to content

Commit

Permalink
staging/mt29f_spinand: coding style fixes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Simon Boulay authored and Greg Kroah-Hartman committed Jun 1, 2014
1 parent f4d9051 commit aeb4915
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/staging/mt29f_spinand/mt29f_spinand.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,13 +699,15 @@ static void spinand_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len)
{

struct spinand_state *state = mtd_to_state(mtd);

memcpy(state->buf + state->buf_ptr, buf, len);
state->buf_ptr += len;
}

static void spinand_read_buf(struct mtd_info *mtd, uint8_t *buf, int len)
{
struct spinand_state *state = mtd_to_state(mtd);

memcpy(buf, state->buf + state->buf_ptr, len);
state->buf_ptr += len;
}
Expand Down

0 comments on commit aeb4915

Please sign in to comment.