spelling: Replace occurrences of "iff" with "if and only if"

Spell checking tools do not recognize "iff", replace with "if and only if".
See https://en.wikipedia.org/wiki/If_and_only_if

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit is contained in:
Pieter De Gendt 2024-04-30 13:57:55 +02:00 committed by Fabio Baltieri
commit f147a5fec2
9 changed files with 15 additions and 14 deletions

View file

@ -234,7 +234,7 @@ int maxim_ds3231_stat_update(const struct device *dev,
/* /*
* Look for current users of the interrupt/square-wave signal and * Look for current users of the interrupt/square-wave signal and
* enable monitoring iff at least one consumer is active. * enable monitoring if and only if at least one consumer is active.
*/ */
static void validate_isw_monitoring(const struct device *dev) static void validate_isw_monitoring(const struct device *dev)
{ {

View file

@ -7,7 +7,7 @@ properties:
zephyr,mutable: zephyr,mutable:
type: boolean type: boolean
description: | description: |
True iff the device structure may be mutated. True if and only if the device structure may be mutated.
Inherit this binding for devices that are runtime-modifiable, in-place. Inherit this binding for devices that are runtime-modifiable, in-place.
This places the device structure into SRAM rather than Flash. This places the device structure into SRAM rather than Flash.

View file

@ -108,8 +108,8 @@ static inline int bt_addr_le_cmp(const bt_addr_le_t *a, const bt_addr_le_t *b)
/** @brief Determine equality of two Bluetooth LE device addresses. /** @brief Determine equality of two Bluetooth LE device addresses.
* *
* The Bluetooth LE addresses are equal iff both the types and the 48-bit * The Bluetooth LE addresses are equal if and only if both the types and
* addresses are numerically equal. * the 48-bit addresses are numerically equal.
* *
* @retval #true if the two addresses are equal * @retval #true if the two addresses are equal
* @retval #false otherwise * @retval #false otherwise

View file

@ -1440,9 +1440,9 @@ static bool do_page_fault(void *addr, bool pin)
* during the page-in/out operation. * during the page-in/out operation.
* *
* We do however re-enable interrupts during the page-in/page-out * We do however re-enable interrupts during the page-in/page-out
* operation iff interrupts were enabled when the exception was taken; * operation if and only if interrupts were enabled when the exception
* in this configuration page faults in an ISR are a bug; all their * was taken; in this configuration page faults in an ISR are a bug;
* code/data must be pinned. * all their code/data must be pinned.
* *
* If interrupts were disabled when the exception was taken, the * If interrupts were disabled when the exception was taken, the
* arch code is responsible for keeping them that way when entering * arch code is responsible for keeping them that way when entering

View file

@ -82,10 +82,10 @@ def scan_file(inf_name):
re.MULTILINE) re.MULTILINE)
# Checks if the file contains a definition of "void test_main(void)" # Checks if the file contains a definition of "void test_main(void)"
# Since ztest provides a plain test_main implementation it is OK to: # Since ztest provides a plain test_main implementation it is OK to:
# 1. register test suites and not call the run function iff the test # 1. register test suites and not call the run function if and only if
# doesn't have a custom test_main. # the test doesn't have a custom test_main.
# 2. register test suites and a custom test_main definition iff the test # 2. register test suites and a custom test_main definition if and only if
# also calls ztest_run_registered_test_suites. # the test also calls ztest_run_registered_test_suites.
test_main_regex = re.compile( test_main_regex = re.compile(
br"^\s*void\s+test_main\(void\)", br"^\s*void\s+test_main\(void\)",
re.MULTILINE) re.MULTILINE)

View file

@ -773,6 +773,7 @@ hypervior||hypervisor
hypter||hyper hypter||hyper
idel||idle idel||idle
identidier||identifier identidier||identifier
iff||if and only if
iligal||illegal iligal||illegal
illigal||illegal illigal||illegal
illgal||illegal illgal||illegal

View file

@ -159,7 +159,7 @@ def normalizeExpression(licsConcluded):
return licsConcluded[0] return licsConcluded[0]
# more than one, so we'll need to combine them # more than one, so we'll need to combine them
# iff an expression has spaces, it needs parens # if and only if an expression has spaces, it needs parens
revised = [] revised = []
for lic in licsConcluded: for lic in licsConcluded:
if lic in ["NONE", "NOASSERTION"]: if lic in ["NONE", "NOASSERTION"]:

View file

@ -59,7 +59,7 @@ static int ext2_open(struct fs_file_t *filp, const char *fs_path, fs_mode_t flag
/* Inodes allocated by lookup. Must be freed in manually. */ /* Inodes allocated by lookup. Must be freed in manually. */
struct ext2_inode *found_inode = args.inode; struct ext2_inode *found_inode = args.inode;
/* Not NULL iff FS_O_CREATE and found_inode == NULL */ /* Not NULL if FS_O_CREATE and found_inode == NULL */
struct ext2_inode *parent = args.parent; struct ext2_inode *parent = args.parent;
/* File has to be created */ /* File has to be created */

View file

@ -1263,7 +1263,7 @@ ZTEST(work_1cpu, test_1cpu_immed_reschedule)
zassert_equal(rc, 1); zassert_equal(rc, 1);
} }
/* Test no-yield behavior, returns true iff work queue priority is /* Test no-yield behavior, returns true if and only if work queue priority is
* higher than test thread priority * higher than test thread priority
*/ */
static bool try_queue_no_yield(struct k_work_q *wq) static bool try_queue_no_yield(struct k_work_q *wq)