Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/flash GC flash_get_part_offset.
details: https://anonhg.NetBSD.org/src/rev/12e548478a7d
branches: trunk
changeset: 789947:12e548478a7d
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Sep 13 22:18:42 2013 +0000
description:
GC flash_get_part_offset.
diffstat:
sys/dev/flash/flash.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diffs (31 lines):
diff -r 4780a199bef6 -r 12e548478a7d sys/dev/flash/flash.c
--- a/sys/dev/flash/flash.c Fri Sep 13 21:36:38 2013 +0000
+++ b/sys/dev/flash/flash.c Fri Sep 13 22:18:42 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: flash.c,v 1.9 2011/07/29 20:48:33 ahoka Exp $ */
+/* $NetBSD: flash.c,v 1.10 2013/09/13 22:18:42 joerg Exp $ */
/*-
* Copyright (c) 2011 Department of Software Engineering,
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: flash.c,v 1.9 2011/07/29 20:48:33 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: flash.c,v 1.10 2013/09/13 22:18:42 joerg Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -535,12 +535,6 @@
return sc->sc_partinfo.part_size;
}
-static inline flash_off_t
-flash_get_part_offset(struct flash_softc * const sc, size_t poffset)
-{
- return sc->sc_partinfo.part_offset + poffset;
-}
-
int
flash_erase(device_t self, struct flash_erase_instruction * const ei)
{
Home |
Main Index |
Thread Index |
Old Index