forked from Imagelibrary/rtems
bsps/arm: Fix discarded qualifiers warning
Move volatile qualifier to the register block structure. Close #5320.
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user