diff options
| author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2011-12-29 04:06:10 -0500 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 13:25:50 -0500 |
| commit | a88d2dc672192247a6f42c82d558db9bf9258bed (patch) | |
| tree | 78d54ffec00dbe93acc650ba38c2a7b0b4ed447c /include/linux/mtd | |
| parent | 5942ddbc500d1c9b75e571b656be97f65b26adfe (diff) | |
mtd: move mtd->{get,put}_device functions up
Move the 'get_device()' and 'put_device()' functions up within
'struct mtd_info' to make them be close to other functions.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
| -rw-r--r-- | include/linux/mtd/mtd.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 64aa54fba2df..8ae37e9d45de 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h | |||
| @@ -214,6 +214,12 @@ struct mtd_info { | |||
| 214 | int (*block_markbad) (struct mtd_info *mtd, loff_t ofs); | 214 | int (*block_markbad) (struct mtd_info *mtd, loff_t ofs); |
| 215 | int (*suspend) (struct mtd_info *mtd); | 215 | int (*suspend) (struct mtd_info *mtd); |
| 216 | void (*resume) (struct mtd_info *mtd); | 216 | void (*resume) (struct mtd_info *mtd); |
| 217 | /* | ||
| 218 | * If the driver is something smart, like UBI, it may need to maintain | ||
| 219 | * its own reference counting. The below functions are only for driver. | ||
| 220 | */ | ||
| 221 | int (*get_device) (struct mtd_info *mtd); | ||
| 222 | void (*put_device) (struct mtd_info *mtd); | ||
| 217 | 223 | ||
| 218 | /* Backing device capabilities for this device | 224 | /* Backing device capabilities for this device |
| 219 | * - provides mmap capabilities | 225 | * - provides mmap capabilities |
| @@ -232,13 +238,6 @@ struct mtd_info { | |||
| 232 | struct module *owner; | 238 | struct module *owner; |
| 233 | struct device dev; | 239 | struct device dev; |
| 234 | int usecount; | 240 | int usecount; |
| 235 | |||
| 236 | /* If the driver is something smart, like UBI, it may need to maintain | ||
| 237 | * its own reference counting. The below functions are only for driver. | ||
| 238 | * The driver may register its callbacks. These callbacks are not | ||
| 239 | * supposed to be called by MTD users */ | ||
| 240 | int (*get_device) (struct mtd_info *mtd); | ||
| 241 | void (*put_device) (struct mtd_info *mtd); | ||
| 242 | }; | 241 | }; |
| 243 | 242 | ||
| 244 | /* | 243 | /* |
