Commit ebaaf1af authored by Artem Bityutskiy's avatar Artem Bityutskiy

UBI: fix kernel-doc errors and warnings

No functional changes, just tweak comments to make kernel-doc
work fine and stop complaining.
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 9c9ec147
...@@ -159,8 +159,7 @@ void ubi_put_device(struct ubi_device *ubi) ...@@ -159,8 +159,7 @@ void ubi_put_device(struct ubi_device *ubi)
} }
/** /**
* ubi_get_by_major - get UBI device description object by character device * ubi_get_by_major - get UBI device by character device major number.
* major number.
* @major: major number * @major: major number
* *
* This function is similar to 'ubi_get_device()', but it searches the device * This function is similar to 'ubi_get_device()', but it searches the device
...@@ -727,7 +726,7 @@ static int autoresize(struct ubi_device *ubi, int vol_id) ...@@ -727,7 +726,7 @@ static int autoresize(struct ubi_device *ubi, int vol_id)
/** /**
* ubi_attach_mtd_dev - attach an MTD device. * ubi_attach_mtd_dev - attach an MTD device.
* @mtd_dev: MTD device description object * @mtd: MTD device description object
* @ubi_num: number to assign to the new UBI device * @ubi_num: number to assign to the new UBI device
* @vid_hdr_offset: VID header offset * @vid_hdr_offset: VID header offset
* *
...@@ -1095,8 +1094,7 @@ static void __exit ubi_exit(void) ...@@ -1095,8 +1094,7 @@ static void __exit ubi_exit(void)
module_exit(ubi_exit); module_exit(ubi_exit);
/** /**
* bytes_str_to_int - convert a string representing number of bytes to an * bytes_str_to_int - convert a number of bytes string into an integer.
* integer.
* @str: the string to convert * @str: the string to convert
* *
* This function returns positive resulting integer in case of success and a * This function returns positive resulting integer in case of success and a
......
...@@ -1101,8 +1101,7 @@ static int paranoid_check_ec_hdr(const struct ubi_device *ubi, int pnum, ...@@ -1101,8 +1101,7 @@ static int paranoid_check_ec_hdr(const struct ubi_device *ubi, int pnum,
} }
/** /**
* paranoid_check_peb_ec_hdr - check that the erase counter header of a * paranoid_check_peb_ec_hdr - check erase counter header.
* physical eraseblock is in-place and is all right.
* @ubi: UBI device description object * @ubi: UBI device description object
* @pnum: the physical eraseblock number to check * @pnum: the physical eraseblock number to check
* *
...@@ -1180,8 +1179,7 @@ static int paranoid_check_vid_hdr(const struct ubi_device *ubi, int pnum, ...@@ -1180,8 +1179,7 @@ static int paranoid_check_vid_hdr(const struct ubi_device *ubi, int pnum,
} }
/** /**
* paranoid_check_peb_vid_hdr - check that the volume identifier header of a * paranoid_check_peb_vid_hdr - check volume identifier header.
* physical eraseblock is in-place and is all right.
* @ubi: UBI device description object * @ubi: UBI device description object
* @pnum: the physical eraseblock number to check * @pnum: the physical eraseblock number to check
* *
......
...@@ -93,8 +93,7 @@ static int add_to_list(struct ubi_scan_info *si, int pnum, int ec, ...@@ -93,8 +93,7 @@ static int add_to_list(struct ubi_scan_info *si, int pnum, int ec,
} }
/** /**
* validate_vid_hdr - check that volume identifier header is correct and * validate_vid_hdr - check volume identifier header.
* consistent.
* @vid_hdr: the volume identifier header to check * @vid_hdr: the volume identifier header to check
* @sv: information about the volume this logical eraseblock belongs to * @sv: information about the volume this logical eraseblock belongs to
* @pnum: physical eraseblock number the VID header came from * @pnum: physical eraseblock number the VID header came from
...@@ -380,8 +379,7 @@ static int compare_lebs(struct ubi_device *ubi, const struct ubi_scan_leb *seb, ...@@ -380,8 +379,7 @@ static int compare_lebs(struct ubi_device *ubi, const struct ubi_scan_leb *seb,
} }
/** /**
* ubi_scan_add_used - add information about a physical eraseblock to the * ubi_scan_add_used - add physical eraseblock to the scanning information.
* scanning information.
* @ubi: UBI device description object * @ubi: UBI device description object
* @si: scanning information * @si: scanning information
* @pnum: the physical eraseblock number * @pnum: the physical eraseblock number
...@@ -555,8 +553,7 @@ int ubi_scan_add_used(struct ubi_device *ubi, struct ubi_scan_info *si, ...@@ -555,8 +553,7 @@ int ubi_scan_add_used(struct ubi_device *ubi, struct ubi_scan_info *si,
} }
/** /**
* ubi_scan_find_sv - find information about a particular volume in the * ubi_scan_find_sv - find volume in the scanning information.
* scanning information.
* @si: scanning information * @si: scanning information
* @vol_id: the requested volume ID * @vol_id: the requested volume ID
* *
...@@ -585,8 +582,7 @@ struct ubi_scan_volume *ubi_scan_find_sv(const struct ubi_scan_info *si, ...@@ -585,8 +582,7 @@ struct ubi_scan_volume *ubi_scan_find_sv(const struct ubi_scan_info *si,
} }
/** /**
* ubi_scan_find_seb - find information about a particular logical * ubi_scan_find_seb - find LEB in the volume scanning information.
* eraseblock in the volume scanning information.
* @sv: a pointer to the volume scanning information * @sv: a pointer to the volume scanning information
* @lnum: the requested logical eraseblock * @lnum: the requested logical eraseblock
* *
...@@ -744,8 +740,7 @@ struct ubi_scan_leb *ubi_scan_get_free_peb(struct ubi_device *ubi, ...@@ -744,8 +740,7 @@ struct ubi_scan_leb *ubi_scan_get_free_peb(struct ubi_device *ubi,
} }
/** /**
* process_eb - read UBI headers, check them and add corresponding data * process_eb - read, check UBI headers, and add them to scanning information.
* to the scanning information.
* @ubi: UBI device description object * @ubi: UBI device description object
* @si: scanning information * @si: scanning information
* @pnum: the physical eraseblock number * @pnum: the physical eraseblock number
...@@ -1083,8 +1078,7 @@ void ubi_scan_destroy_si(struct ubi_scan_info *si) ...@@ -1083,8 +1078,7 @@ void ubi_scan_destroy_si(struct ubi_scan_info *si)
#ifdef CONFIG_MTD_UBI_DEBUG_PARANOID #ifdef CONFIG_MTD_UBI_DEBUG_PARANOID
/** /**
* paranoid_check_si - check if the scanning information is correct and * paranoid_check_si - check the scanning information.
* consistent.
* @ubi: UBI device description object * @ubi: UBI device description object
* @si: scanning information * @si: scanning information
* *
......
...@@ -313,6 +313,7 @@ struct ubi_wl_entry; ...@@ -313,6 +313,7 @@ struct ubi_wl_entry;
* @move_to, @move_to_put @erase_pending, @wl_scheduled, and @works * @move_to, @move_to_put @erase_pending, @wl_scheduled, and @works
* fields * fields
* @move_mutex: serializes eraseblock moves * @move_mutex: serializes eraseblock moves
* @work_sem: sycnhronizes the WL worker with use tasks
* @wl_scheduled: non-zero if the wear-leveling was scheduled * @wl_scheduled: non-zero if the wear-leveling was scheduled
* @lookuptbl: a table to quickly find a &struct ubi_wl_entry object for any * @lookuptbl: a table to quickly find a &struct ubi_wl_entry object for any
* physical eraseblock * physical eraseblock
......
...@@ -268,6 +268,7 @@ static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum, ...@@ -268,6 +268,7 @@ static int write_leb(struct ubi_device *ubi, struct ubi_volume *vol, int lnum,
/** /**
* ubi_more_update_data - write more update data. * ubi_more_update_data - write more update data.
* @ubi: UBI device description object
* @vol: volume description object * @vol: volume description object
* @buf: write data (user-space memory buffer) * @buf: write data (user-space memory buffer)
* @count: how much bytes to write * @count: how much bytes to write
...@@ -385,6 +386,7 @@ int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol, ...@@ -385,6 +386,7 @@ int ubi_more_update_data(struct ubi_device *ubi, struct ubi_volume *vol,
/** /**
* ubi_more_leb_change_data - accept more data for atomic LEB change. * ubi_more_leb_change_data - accept more data for atomic LEB change.
* @ubi: UBI device description object
* @vol: volume description object * @vol: volume description object
* @buf: write data (user-space memory buffer) * @buf: write data (user-space memory buffer)
* @count: how much bytes to write * @count: how much bytes to write
......
...@@ -608,7 +608,7 @@ int ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs) ...@@ -608,7 +608,7 @@ int ubi_resize_volume(struct ubi_volume_desc *desc, int reserved_pebs)
/** /**
* ubi_rename_volumes - re-name UBI volumes. * ubi_rename_volumes - re-name UBI volumes.
* @ubi: UBI device description object * @ubi: UBI device description object
* @renam_list: list of &struct ubi_rename_entry objects * @rename_list: list of &struct ubi_rename_entry objects
* *
* This function re-names or removes volumes specified in the re-name list. * This function re-names or removes volumes specified in the re-name list.
* Returns zero in case of success and a negative error code in case of * Returns zero in case of success and a negative error code in case of
......
...@@ -117,7 +117,7 @@ int ubi_change_vtbl_record(struct ubi_device *ubi, int idx, ...@@ -117,7 +117,7 @@ int ubi_change_vtbl_record(struct ubi_device *ubi, int idx,
/** /**
* ubi_vtbl_rename_volumes - rename UBI volumes in the volume table. * ubi_vtbl_rename_volumes - rename UBI volumes in the volume table.
* @ubi: UBI device description object * @ubi: UBI device description object
* @renam_list: list of &struct ubi_rename_entry objects * @rename_list: list of &struct ubi_rename_entry objects
* *
* This function re-names multiple volumes specified in @req in the volume * This function re-names multiple volumes specified in @req in the volume
* table. Returns zero in case of success and a negative error code in case of * table. Returns zero in case of success and a negative error code in case of
...@@ -166,8 +166,7 @@ int ubi_vtbl_rename_volumes(struct ubi_device *ubi, ...@@ -166,8 +166,7 @@ int ubi_vtbl_rename_volumes(struct ubi_device *ubi,
} }
/** /**
* vtbl_check - check if volume table is not corrupted and contains sensible * vtbl_check - check if volume table is not corrupted and sensible.
* data.
* @ubi: UBI device description object * @ubi: UBI device description object
* @vtbl: volume table * @vtbl: volume table
* *
...@@ -780,8 +779,7 @@ static int check_scanning_info(const struct ubi_device *ubi, ...@@ -780,8 +779,7 @@ static int check_scanning_info(const struct ubi_device *ubi,
} }
/** /**
* ubi_read_volume_table - read volume table. * ubi_read_volume_table - read the volume table.
* information.
* @ubi: UBI device description object * @ubi: UBI device description object
* @si: scanning information * @si: scanning information
* *
......
...@@ -632,8 +632,7 @@ static int sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e, ...@@ -632,8 +632,7 @@ static int sync_erase(struct ubi_device *ubi, struct ubi_wl_entry *e,
} }
/** /**
* check_protection_over - check if it is time to stop protecting some * check_protection_over - check if it is time to stop protecting some PEBs.
* physical eraseblocks.
* @ubi: UBI device description object * @ubi: UBI device description object
* *
* This function is called after each erase operation, when the absolute erase * This function is called after each erase operation, when the absolute erase
...@@ -1601,8 +1600,7 @@ void ubi_wl_close(struct ubi_device *ubi) ...@@ -1601,8 +1600,7 @@ void ubi_wl_close(struct ubi_device *ubi)
#ifdef CONFIG_MTD_UBI_DEBUG_PARANOID #ifdef CONFIG_MTD_UBI_DEBUG_PARANOID
/** /**
* paranoid_check_ec - make sure that the erase counter of a physical eraseblock * paranoid_check_ec - make sure that the erase counter of a PEB is correct.
* is correct.
* @ubi: UBI device description object * @ubi: UBI device description object
* @pnum: the physical eraseblock number to check * @pnum: the physical eraseblock number to check
* @ec: the erase counter to check * @ec: the erase counter to check
...@@ -1643,13 +1641,12 @@ static int paranoid_check_ec(struct ubi_device *ubi, int pnum, int ec) ...@@ -1643,13 +1641,12 @@ static int paranoid_check_ec(struct ubi_device *ubi, int pnum, int ec)
} }
/** /**
* paranoid_check_in_wl_tree - make sure that a wear-leveling entry is present * paranoid_check_in_wl_tree - check that wear-leveling entry is in WL RB-tree.
* in a WL RB-tree.
* @e: the wear-leveling entry to check * @e: the wear-leveling entry to check
* @root: the root of the tree * @root: the root of the tree
* *
* This function returns zero if @e is in the @root RB-tree and %1 if it * This function returns zero if @e is in the @root RB-tree and %1 if it is
* is not. * not.
*/ */
static int paranoid_check_in_wl_tree(struct ubi_wl_entry *e, static int paranoid_check_in_wl_tree(struct ubi_wl_entry *e,
struct rb_root *root) struct rb_root *root)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment