Skip to content

Commit e8e088d

Browse files
Artem BityutskiyArtem Bityutskiy
authored andcommitted
UBI: cleanup comments around volume properties
Cleanup and improve commentaries around the "set volume properties" ioctl, make a simple indentation fix as well. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
1 parent 6748482 commit e8e088d

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

‎include/mtd/ubi-user.h‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,14 @@ enum {
224224
};
225225

226226
/*
227-
* UBI set property ioctl constants
227+
* UBI set volume property ioctl constants.
228228
*
229-
* @UBI_VOL_PROP_DIRECT_WRITE: allow / disallow user to directly write and
230-
* erase individual eraseblocks on dynamic volumes
229+
* @UBI_VOL_PROP_DIRECT_WRITE: allow (any non-zero value) or disallow (value 0)
230+
* user to directly write and erase individual
231+
* eraseblocks on dynamic volumes
231232
*/
232233
enum {
233-
UBI_VOL_PROP_DIRECT_WRITE = 1,
234+
UBI_VOL_PROP_DIRECT_WRITE = 1,
234235
};
235236

236237
/**
@@ -398,7 +399,7 @@ struct ubi_map_req {
398399

399400

400401
/**
401-
* struct ubi_set_vol_prop_req - a data structure used to set an ubi volume
402+
* struct ubi_set_vol_prop_req - a data structure used to set an UBI volume
402403
* property.
403404
* @property: property to set (%UBI_VOL_PROP_DIRECT_WRITE)
404405
* @padding: reserved for future, not used, has to be zeroed

0 commit comments

Comments
 (0)