Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/flash Whitespace.



details:   https://anonhg.NetBSD.org/src/rev/975b5bf579b9
branches:  trunk
changeset: 763670:975b5bf579b9
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Wed Mar 30 14:34:26 2011 +0000

description:
Whitespace.

diffstat:

 sys/dev/flash/flash.c |   5 +++--
 sys/dev/flash/flash.h |  14 +++++++-------
 2 files changed, 10 insertions(+), 9 deletions(-)

diffs (70 lines):

diff -r b1784c7d0008 -r 975b5bf579b9 sys/dev/flash/flash.c
--- a/sys/dev/flash/flash.c     Wed Mar 30 11:43:15 2011 +0000
+++ b/sys/dev/flash/flash.c     Wed Mar 30 14:34:26 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: flash.c,v 1.1 2011/02/26 18:07:30 ahoka Exp $  */
+/*     $NetBSD: flash.c,v 1.2 2011/03/30 14:34:26 uebayasi Exp $       */
 
 /*-
  * Copyright (c) 2011 Department of Software Engineering,
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: flash.c,v 1.1 2011/02/26 18:07:30 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: flash.c,v 1.2 2011/03/30 14:34:26 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -487,6 +487,7 @@
 
        return err;
 }
+
 int
 flashsize(dev_t dev)
 {
diff -r b1784c7d0008 -r 975b5bf579b9 sys/dev/flash/flash.h
--- a/sys/dev/flash/flash.h     Wed Mar 30 11:43:15 2011 +0000
+++ b/sys/dev/flash/flash.h     Wed Mar 30 14:34:26 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: flash.h,v 1.1 2011/02/26 18:07:30 ahoka Exp $  */
+/*     $NetBSD: flash.h,v 1.2 2011/03/30 14:34:26 uebayasi Exp $       */
 
 /*-
  * Copyright (c) 2011 Department of Software Engineering,
@@ -75,7 +75,7 @@
 struct flash_erase_instruction {
        flash_addr_t ei_addr;
        flash_addr_t ei_len;
-       void (*ei_callback) (struct flash_erase_instruction *);
+       void (*ei_callback)(struct flash_erase_instruction *);
        u_long ei_priv;
        u_char ei_state;
 };
@@ -106,12 +106,12 @@
  * @block_isbad: checks if a block is bad on flash
  */
 struct flash_interface {
-       int (*erase) (device_t, struct flash_erase_instruction *);
-       int (*read) (device_t, off_t, size_t, size_t *, uint8_t *);
-       int (*write) (device_t, off_t, size_t, size_t *, const uint8_t *);
+       int (*erase)(device_t, struct flash_erase_instruction *);
+       int (*read)(device_t, off_t, size_t, size_t *, uint8_t *);
+       int (*write)(device_t, off_t, size_t, size_t *, const uint8_t *);
        int (*block_markbad)(device_t, uint64_t);
        int (*block_isbad)(device_t, uint64_t);
-       int (*sync) (device_t);
+       int (*sync)(device_t);
 
        int (*submit)(device_t, struct buf *);
 
@@ -159,7 +159,7 @@
 {
        size_t i;
        for (i = offset; i < size; i++) {
-               if (((const uint8_t *) buf)[i] != patt)
+               if (((const uint8_t *)buf)[i] != patt)
                        return 0;
        }
        return 1;



Home | Main Index | Thread Index | Old Index