UBI: rename major_to_info()
Subsystems (2)
PATCH 1/1 UBI: rename major_to_info()
The patch renames major_to_info() to major_to_device() to match the new struct ubi_device.
Signed-off-by Alexander Schmidt <[email protected]>
--- drivers/mtd/ubi/cdev.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
drivers/mtd/ubi/cdev.c +5 -5
@@ -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);
Quoted 7 lines · Alexander Schmidt
The patch renames
major_to_info()tomajor_to_device()to match the new structubi_device.Signed-off-by Alexander Schmidt <[email protected]>--- drivers/mtd/ubi/cdev.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-)
Committed, thanks.
Signature · 2 lines
Best regards, Artem Bityutskiy (Битюцкий Артём)