Module Name:    src
Committed By:   uebayasi
Date:           Wed Mar 30 14:34:26 UTC 2011

Modified Files:
        src/sys/dev/flash: flash.c flash.h

Log Message:
Whitespace.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/dev/flash/flash.c src/sys/dev/flash/flash.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/flash/flash.c
diff -u src/sys/dev/flash/flash.c:1.1 src/sys/dev/flash/flash.c:1.2
--- src/sys/dev/flash/flash.c:1.1	Sat Feb 26 18:07:30 2011
+++ src/sys/dev/flash/flash.c	Wed Mar 30 14:34:26 2011
@@ -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)
 {
Index: src/sys/dev/flash/flash.h
diff -u src/sys/dev/flash/flash.h:1.1 src/sys/dev/flash/flash.h:1.2
--- src/sys/dev/flash/flash.h:1.1	Sat Feb 26 18:07:30 2011
+++ src/sys/dev/flash/flash.h	Wed Mar 30 14:34:26 2011
@@ -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;

Reply via email to