X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fgeneric-2.6%2Ffiles%2Ffs%2Fyaffs2%2Fyaffs_getblockinfo.h;fp=target%2Flinux%2Fgeneric-2.6%2Ffiles%2Ffs%2Fyaffs2%2Fyaffs_getblockinfo.h;h=0000000000000000000000000000000000000000;hb=306910e5d18ea19b4c10df06defaa494733def60;hp=b9742ac0ab3c00b5e333e4ac6ec67b3950ad4ad5;hpb=c9d9f8045c5aebdfeb96d7f9833927751d854bc1;p=openwrt%2Fopenwrt.git diff --git a/target/linux/generic-2.6/files/fs/yaffs2/yaffs_getblockinfo.h b/target/linux/generic-2.6/files/fs/yaffs2/yaffs_getblockinfo.h deleted file mode 100644 index b9742ac0ab..0000000000 --- a/target/linux/generic-2.6/files/fs/yaffs2/yaffs_getblockinfo.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * YAFFS: Yet another Flash File System . A NAND-flash specific file system. - * - * Copyright (C) 2002-2007 Aleph One Ltd. - * for Toby Churchill Ltd and Brightstar Engineering - * - * Created by Charles Manning - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License version 2.1 as - * published by the Free Software Foundation. - * - * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL. - */ - -#ifndef __YAFFS_GETBLOCKINFO_H__ -#define __YAFFS_GETBLOCKINFO_H__ - -#include "yaffs_guts.h" - -/* Function to manipulate block info */ -static Y_INLINE yaffs_BlockInfo *yaffs_GetBlockInfo(yaffs_Device * dev, int blk) -{ - if (blk < dev->internalStartBlock || blk > dev->internalEndBlock) { - T(YAFFS_TRACE_ERROR, - (TSTR - ("**>> yaffs: getBlockInfo block %d is not valid" TENDSTR), - blk)); - YBUG(); - } - return &dev->blockInfo[blk - dev->internalStartBlock]; -} - -#endif