[PATCH] [MTD] UBI: rename major_to_info()
Alexander Schmidt
alexs at linux.vnet.ibm.com
Wed Mar 21 12:18:50 EDT 2007
The patch renames major_to_info() to major_to_device() to match the new
struct ubi_device.
Signed-off-by: Alexander Schmidt <alexs at linux.vnet.ibm.com>
---
drivers/mtd/ubi/cdev.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
--- dedekind-ubi-2.6.orig/drivers/mtd/ubi/cdev.c
+++ dedekind-ubi-2.6/drivers/mtd/ubi/cdev.c
@@ -50,12 +50,12 @@
#endif
/**
- * major_to_info - get UBI device object by character device major number.
+ * major_to_device - get UBI device object by character device major number.
* @major: major number
*
- * This function returns a pointer to the UBI description object.
+ * This function returns a pointer to the UBI device object.
*/
-static struct ubi_device *major_to_info(int major)
+static struct ubi_device *major_to_device(int major)
{
int i;
@@ -124,7 +124,7 @@ static void revoke_exclusive(struct ubi_
static int vol_cdev_open(struct inode *inode, struct file *file)
{
struct ubi_volume_desc *desc;
- const struct ubi_device *ubi = major_to_info(imajor(inode));
+ const struct ubi_device *ubi = major_to_device(imajor(inode));
int vol_id = iminor(inode) - 1;
int mode;
@@ -660,7 +660,7 @@ static int ubi_cdev_ioctl(struct inode *
return -EPERM;
}
- ubi = major_to_info(imajor(inode));
+ ubi = major_to_device(imajor(inode));
if (IS_ERR(ubi))
return PTR_ERR(ubi);
More information about the linux-mtd
mailing list