arch: arm: style fixes in documentation of MPU region types
Some minor style fixes and rewording of the documentation
for ARM MPU region types.
Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
diff --git a/include/arch/arm/cortex_m/mpu/arm_core_mpu_dev.h b/include/arch/arm/cortex_m/mpu/arm_core_mpu_dev.h
index e7489f4..3d021a0 100644
--- a/include/arch/arm/cortex_m/mpu/arm_core_mpu_dev.h
+++ b/include/arch/arm/cortex_m/mpu/arm_core_mpu_dev.h
@@ -14,20 +14,22 @@
/*
* The defines below represent the region types. The MPU driver is responsible
- * to allocate the region accordingly to the type and set the correct
+ * for allocating the region according to the type and for setting the correct
* attributes.
*
* Each MPU is different and has a different set of attributes, hence instead
- * of having the attributes at this level the arm_mpu_core defines the intent
+ * of having the attributes at this level, the arm_mpu_core defines the intent
* types.
+ *
* An intent type (i.e. THREAD_STACK_GUARD) can correspond to a different set
- * of operations and attributes for each MPU and it is responsibility of the
- * MPU driver to select the correct ones.
+ * of operations and attributes for each MPU and it is the responsibility of
+ * the MPU driver to select the correct ones.
*
* The intent based configuration can't fail hence at this level no error
* is returned by the configuration functions.
* If one of the operations corresponding to an intent fails the error has to
- * be managed inside the MPU driver and not escalated.
+ * be managed inside the MPU driver and to not be escalated.
+ *
*/
/* Thread Stack Region Intent Type */
enum {
diff --git a/include/kernel.h b/include/kernel.h
index ee6ef04..62d9c7f 100644
--- a/include/kernel.h
+++ b/include/kernel.h
@@ -4802,7 +4802,7 @@
#endif /* CONFIG_USERSPACE */
};
-/* memory domian
+/* memory domain
* Note: Always declare this structure with __kernel prefix
*/
struct k_mem_domain {