Ignore:
Timestamp:
2011-07-06T14:55:21+02:00 (5 years ago)
Author:
kaloz
Message:

[generic]: fixup mtd refresh and co.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/patches-3.0/400-rootfs_split.patch

    r27191 r27491  
    258258--- a/drivers/mtd/mtdchar.c 
    259259+++ b/drivers/mtd/mtdchar.c 
    260 @@ -834,6 +834,11 @@ static int mtd_ioctl(struct file *file, 
    261                 file->f_pos = 0; 
     260@@ -948,6 +948,12 @@ static int mtd_ioctl(struct file *file, 
    262261                break; 
    263262        } 
     263  
    264264+       case MTDREFRESH: 
    265265+       { 
     
    267267+               break; 
    268268+       } 
    269   
    270         case OTPGETREGIONCOUNT: 
    271         case OTPGETREGIONINFO: 
     269+ 
     270        default: 
     271                ret = -ENOTTY; 
     272        } 
    272273--- a/include/linux/mtd/mtd.h 
    273274+++ b/include/linux/mtd/mtd.h 
     
    315316  
    316317 #define MTDPART_OFS_NXTBLK     (-2) 
     318--- a/include/mtd/mtd-abi.h 
     319+++ b/include/mtd/mtd-abi.h 
     320@@ -127,6 +127,7 @@ struct otp_info { 
     321 #define MEMWRITEOOB64          _IOWR('M', 21, struct mtd_oob_buf64) 
     322 #define MEMREADOOB64           _IOWR('M', 22, struct mtd_oob_buf64) 
     323 #define MEMISLOCKED            _IOR('M', 23, struct erase_info_user) 
     324+#define MTDREFRESH             _IO('M', 24) 
     325  
     326 /* 
     327  * Obsolete legacy interface. Keep it in order not to break userspace 
Note: See TracChangeset for help on using the changeset viewer.