diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-25 19:24:38 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-25 20:35:03 +0100 |
| commit | a984eb367c032dbe2577f01238c3d1268526be70 (patch) | |
| tree | 437fef40379b2758b129ccea39df3570fa2d145e /include/arch/x86_64/mtd | |
| parent | 8834571b202cf4dc9c649cfb096c213b6ecf1566 (diff) | |
Clang-tidy fixes
Diffstat (limited to 'include/arch/x86_64/mtd')
| -rw-r--r-- | include/arch/x86_64/mtd/mtd-abi.h | 5 | ||||
| -rw-r--r-- | include/arch/x86_64/mtd/ubi-user.h | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/include/arch/x86_64/mtd/mtd-abi.h b/include/arch/x86_64/mtd/mtd-abi.h index a239dac9..1eaf60ac 100644 --- a/include/arch/x86_64/mtd/mtd-abi.h +++ b/include/arch/x86_64/mtd/mtd-abi.h @@ -163,9 +163,8 @@ struct mtd_read_req { #define MTD_CAP_NVRAM (MTD_WRITEABLE | MTD_BIT_WRITEABLE | MTD_NO_ERASE) /* Obsolete ECC byte placement modes (used with obsolete MEMGETOOBSEL) */ -#define MTD_NANDECC_OFF 0 /* Switch off ECC (Not recommended) */ -#define MTD_NANDECC_PLACE \ - 1 /* Use the given placement in the structure (YAFFS1 legacy mode) */ +#define MTD_NANDECC_OFF 0 /* Switch off ECC (Not recommended) */ +#define MTD_NANDECC_PLACE 1 /* Use the given placement in the structure (YAFFS1 legacy mode) */ #define MTD_NANDECC_AUTOPLACE 2 /* Use the default placement scheme */ #define MTD_NANDECC_PLACEONLY \ 3 /* Use the given placement in the structure (Do not store ecc result \ diff --git a/include/arch/x86_64/mtd/ubi-user.h b/include/arch/x86_64/mtd/ubi-user.h index 298fdbf8..73e76b92 100644 --- a/include/arch/x86_64/mtd/ubi-user.h +++ b/include/arch/x86_64/mtd/ubi-user.h @@ -207,8 +207,7 @@ /* Check if LEB is mapped command */ #define UBI_IOCEBISMAP _IOR(UBI_VOL_IOC_MAGIC, 5, __s32) /* Set an UBI volume property */ -#define UBI_IOCSETVOLPROP \ - _IOW(UBI_VOL_IOC_MAGIC, 6, struct ubi_set_vol_prop_req) +#define UBI_IOCSETVOLPROP _IOW(UBI_VOL_IOC_MAGIC, 6, struct ubi_set_vol_prop_req) /* Create a R/O block device on top of an UBI volume */ #define UBI_IOCVOLCRBLK _IOW(UBI_VOL_IOC_MAGIC, 7, struct ubi_blkcreate_req) /* Remove the R/O block device */ |
