aboutsummaryrefslogtreecommitdiffstats
path: root/tools/mtd-utils/patches/134-freebsd_loff_t.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2015-05-26 09:25:30 +0000
committerImre Kaloz <kaloz@openwrt.org>2015-05-26 09:25:30 +0000
commitdf23709f165b2e74e398080f1c0706d011263412 (patch)
tree1bbf1d4e62b578079cdbf955f01c34c337afe837 /tools/mtd-utils/patches/134-freebsd_loff_t.patch
parenta621b8c28404c402cf4b42e9b0b28a76b98fae0e (diff)
downloadupstream-df23709f165b2e74e398080f1c0706d011263412.tar.gz
upstream-df23709f165b2e74e398080f1c0706d011263412.tar.bz2
upstream-df23709f165b2e74e398080f1c0706d011263412.zip
tools/mtd-utils: upgrade to latest git
Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 45760
Diffstat (limited to 'tools/mtd-utils/patches/134-freebsd_loff_t.patch')
-rw-r--r--tools/mtd-utils/patches/134-freebsd_loff_t.patch13
1 files changed, 7 insertions, 6 deletions
diff --git a/tools/mtd-utils/patches/134-freebsd_loff_t.patch b/tools/mtd-utils/patches/134-freebsd_loff_t.patch
index 68a835292c..2d141bd7a3 100644
--- a/tools/mtd-utils/patches/134-freebsd_loff_t.patch
+++ b/tools/mtd-utils/patches/134-freebsd_loff_t.patch
@@ -1,13 +1,14 @@
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
-@@ -114,8 +114,8 @@ struct otp_info {
- #define MEMGETREGIONINFO _IOWR('M', 8, struct region_info_user)
- #define MEMSETOOBSEL _IOW('M', 9, struct nand_oobinfo)
+@@ -171,9 +171,9 @@ struct otp_info {
+ /* Get info about OOB modes (e.g., RAW, PLACE, AUTO) - legacy interface */
#define MEMGETOOBSEL _IOR('M', 10, struct nand_oobinfo)
+ /* Check if an eraseblock is bad */
-#define MEMGETBADBLOCK _IOW('M', 11, __kernel_loff_t)
--#define MEMSETBADBLOCK _IOW('M', 12, __kernel_loff_t)
+#define MEMGETBADBLOCK _IOW('M', 11, loff_t)
+ /* Mark an eraseblock as bad */
+-#define MEMSETBADBLOCK _IOW('M', 12, __kernel_loff_t)
+#define MEMSETBADBLOCK _IOW('M', 12, loff_t)
+ /* Set OTP (One-Time Programmable) mode (factory vs. user) */
#define OTPSELECT _IOR('M', 13, int)
- #define OTPGETREGIONCOUNT _IOW('M', 14, int)
- #define OTPGETREGIONINFO _IOW('M', 15, struct otp_info)
+ /* Get number of OTP (One-Time Programmable) regions */