bsps/arm: Fix discarded qualifiers warning

Move volatile qualifier to the register block structure.

Close #5320.
This commit is contained in:
Sebastian Huber
2025-08-18 03:03:16 +02:00
parent 8fd021bbb3
commit 8baae3ee09
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ enum imx_gpio_mode {
*/ */
struct imx_gpio_pin { struct imx_gpio_pin {
/** Management structure for the GPIO. Get with @ref imx_gpio_get_by_index. */ /** Management structure for the GPIO. Get with @ref imx_gpio_get_by_index. */
volatile struct imx_gpio* gpio; struct imx_gpio* gpio;
/** /**
* Select the pins you want to handle with this mask. The mask is not * Select the pins you want to handle with this mask. The mask is not
* influenced by the @a shift field. * influenced by the @a shift field.

View File

@@ -68,7 +68,7 @@ struct imx_gpio_regs {
struct imx_gpio { struct imx_gpio {
char name[sizeof(IMX_GPIO_ALIAS_NAME)]; char name[sizeof(IMX_GPIO_ALIAS_NAME)];
struct imx_gpio_regs *regs; volatile struct imx_gpio_regs *regs;
rtems_interrupt_lock lock; rtems_interrupt_lock lock;
}; };