diff --git a/libplatsupport/src/plat/apq8064/mux.c b/libplatsupport/src/plat/apq8064/mux.c index 32c3ebcff..ad209e6bb 100644 --- a/libplatsupport/src/plat/apq8064/mux.c +++ b/libplatsupport/src/plat/apq8064/mux.c @@ -16,7 +16,7 @@ static struct apq8064_mux { volatile struct apq8064_mux_regs* mux; } _mux; -static inline struct apq8064_mux* get_mux_priv(mux_sys_t* mux) { +static inline struct apq8064_mux* get_mux_priv(const mux_sys_t* mux) { return (struct apq8064_mux*)mux->priv; } @@ -28,7 +28,7 @@ static inline void set_mux_priv(mux_sys_t* mux, struct apq8064_mux* apq8064_mux) } static int -apq8064_mux_feature_enable(mux_sys_t* mux, mux_feature_t mux_feature, UNUSED enum mux_gpio_dir mgd) +apq8064_mux_feature_enable(const mux_sys_t* mux, mux_feature_t mux_feature, UNUSED enum mux_gpio_dir mgd) { struct apq8064_mux* m; if (mux == NULL || mux->priv == NULL) { diff --git a/libplatsupport/src/plat/omap3/mux.c b/libplatsupport/src/plat/omap3/mux.c index 1d458e183..defec538d 100644 --- a/libplatsupport/src/plat/omap3/mux.c +++ b/libplatsupport/src/plat/omap3/mux.c @@ -16,7 +16,7 @@ static struct omap3_mux { volatile struct omap3_mux_regs* mux; } _mux; -static inline struct omap3_mux* get_mux_priv(mux_sys_t* mux) { +static inline struct omap3_mux* get_mux_priv(const mux_sys_t* mux) { return (struct omap3_mux*)mux->priv; } @@ -28,7 +28,7 @@ static inline void set_mux_priv(mux_sys_t* mux, struct omap3_mux* omap3_mux) } static int -omap3_mux_feature_enable(mux_sys_t* mux, mux_feature_t mux_feature, UNUSED enum mux_gpio_dir mgd) +omap3_mux_feature_enable(const mux_sys_t* mux, mux_feature_t mux_feature, UNUSED enum mux_gpio_dir mgd) { struct omap3_mux* m; if (mux == NULL || mux->priv == NULL) {