mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
reset: Rename free() to rfree()
This function name conflicts with our desire to #define free() to something else on sandbox. Since it deals with resources, rename it to rfree(). Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
4f51188e47
commit
94474b25c3
19 changed files with 20 additions and 20 deletions
|
@ -52,7 +52,7 @@ static int bcm6345_reset_request(struct reset_ctl *rst)
|
||||||
}
|
}
|
||||||
|
|
||||||
struct reset_ops bcm6345_reset_reset_ops = {
|
struct reset_ops bcm6345_reset_reset_ops = {
|
||||||
.free = bcm6345_reset_free,
|
.rfree = bcm6345_reset_free,
|
||||||
.request = bcm6345_reset_request,
|
.request = bcm6345_reset_request,
|
||||||
.rst_assert = bcm6345_reset_assert,
|
.rst_assert = bcm6345_reset_assert,
|
||||||
.rst_deassert = bcm6345_reset_deassert,
|
.rst_deassert = bcm6345_reset_deassert,
|
||||||
|
|
|
@ -72,7 +72,7 @@ static int hisi_reset_of_xlate(struct reset_ctl *rst,
|
||||||
static const struct reset_ops hisi_reset_reset_ops = {
|
static const struct reset_ops hisi_reset_reset_ops = {
|
||||||
.of_xlate = hisi_reset_of_xlate,
|
.of_xlate = hisi_reset_of_xlate,
|
||||||
.request = hisi_reset_request,
|
.request = hisi_reset_request,
|
||||||
.free = hisi_reset_free,
|
.rfree = hisi_reset_free,
|
||||||
.rst_assert = hisi_reset_assert,
|
.rst_assert = hisi_reset_assert,
|
||||||
.rst_deassert = hisi_reset_deassert,
|
.rst_deassert = hisi_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -81,7 +81,7 @@ static int hsdk_reset_noop(struct reset_ctl *rst_ctl)
|
||||||
|
|
||||||
static const struct reset_ops hsdk_reset_ops = {
|
static const struct reset_ops hsdk_reset_ops = {
|
||||||
.request = hsdk_reset_noop,
|
.request = hsdk_reset_noop,
|
||||||
.free = hsdk_reset_noop,
|
.rfree = hsdk_reset_noop,
|
||||||
.rst_assert = hsdk_reset_noop,
|
.rst_assert = hsdk_reset_noop,
|
||||||
.rst_deassert = hsdk_reset_reset,
|
.rst_deassert = hsdk_reset_reset,
|
||||||
};
|
};
|
||||||
|
|
|
@ -272,7 +272,7 @@ static int imx7_reset_request(struct reset_ctl *rst)
|
||||||
|
|
||||||
static const struct reset_ops imx7_reset_reset_ops = {
|
static const struct reset_ops imx7_reset_reset_ops = {
|
||||||
.request = imx7_reset_request,
|
.request = imx7_reset_request,
|
||||||
.free = imx7_reset_free,
|
.rfree = imx7_reset_free,
|
||||||
.rst_assert = imx7_reset_assert,
|
.rst_assert = imx7_reset_assert,
|
||||||
.rst_deassert = imx7_reset_deassert,
|
.rst_deassert = imx7_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -55,7 +55,7 @@ static int mediatek_reset_deassert(struct reset_ctl *reset_ctl)
|
||||||
|
|
||||||
struct reset_ops mediatek_reset_ops = {
|
struct reset_ops mediatek_reset_ops = {
|
||||||
.request = mediatek_reset_request,
|
.request = mediatek_reset_request,
|
||||||
.free = mediatek_reset_free,
|
.rfree = mediatek_reset_free,
|
||||||
.rst_assert = mediatek_reset_assert,
|
.rst_assert = mediatek_reset_assert,
|
||||||
.rst_deassert = mediatek_reset_deassert,
|
.rst_deassert = mediatek_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -62,7 +62,7 @@ static int meson_reset_deassert(struct reset_ctl *reset_ctl)
|
||||||
|
|
||||||
struct reset_ops meson_reset_ops = {
|
struct reset_ops meson_reset_ops = {
|
||||||
.request = meson_reset_request,
|
.request = meson_reset_request,
|
||||||
.free = meson_reset_free,
|
.rfree = meson_reset_free,
|
||||||
.rst_assert = meson_reset_assert,
|
.rst_assert = meson_reset_assert,
|
||||||
.rst_deassert = meson_reset_deassert,
|
.rst_deassert = meson_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -45,7 +45,7 @@ static int mtmips_reset_deassert(struct reset_ctl *reset_ctl)
|
||||||
|
|
||||||
static const struct reset_ops mtmips_reset_ops = {
|
static const struct reset_ops mtmips_reset_ops = {
|
||||||
.request = mtmips_reset_request,
|
.request = mtmips_reset_request,
|
||||||
.free = mtmips_reset_free,
|
.rfree = mtmips_reset_free,
|
||||||
.rst_assert = mtmips_reset_assert,
|
.rst_assert = mtmips_reset_assert,
|
||||||
.rst_deassert = mtmips_reset_deassert,
|
.rst_deassert = mtmips_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -76,7 +76,7 @@ static int rockchip_reset_deassert(struct reset_ctl *reset_ctl)
|
||||||
|
|
||||||
struct reset_ops rockchip_reset_ops = {
|
struct reset_ops rockchip_reset_ops = {
|
||||||
.request = rockchip_reset_request,
|
.request = rockchip_reset_request,
|
||||||
.free = rockchip_reset_free,
|
.rfree = rockchip_reset_free,
|
||||||
.rst_assert = rockchip_reset_assert,
|
.rst_assert = rockchip_reset_assert,
|
||||||
.rst_deassert = rockchip_reset_deassert,
|
.rst_deassert = rockchip_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -101,7 +101,7 @@ static int socfpga_reset_free(struct reset_ctl *reset_ctl)
|
||||||
|
|
||||||
static const struct reset_ops socfpga_reset_ops = {
|
static const struct reset_ops socfpga_reset_ops = {
|
||||||
.request = socfpga_reset_request,
|
.request = socfpga_reset_request,
|
||||||
.free = socfpga_reset_free,
|
.rfree = socfpga_reset_free,
|
||||||
.rst_assert = socfpga_reset_assert,
|
.rst_assert = socfpga_reset_assert,
|
||||||
.rst_deassert = socfpga_reset_deassert,
|
.rst_deassert = socfpga_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -81,7 +81,7 @@ static int sunxi_reset_deassert(struct reset_ctl *reset_ctl)
|
||||||
|
|
||||||
struct reset_ops sunxi_reset_ops = {
|
struct reset_ops sunxi_reset_ops = {
|
||||||
.request = sunxi_reset_request,
|
.request = sunxi_reset_request,
|
||||||
.free = sunxi_reset_free,
|
.rfree = sunxi_reset_free,
|
||||||
.rst_assert = sunxi_reset_assert,
|
.rst_assert = sunxi_reset_assert,
|
||||||
.rst_deassert = sunxi_reset_deassert,
|
.rst_deassert = sunxi_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -190,7 +190,7 @@ static const struct udevice_id ti_sci_reset_of_match[] = {
|
||||||
static struct reset_ops ti_sci_reset_ops = {
|
static struct reset_ops ti_sci_reset_ops = {
|
||||||
.of_xlate = ti_sci_reset_of_xlate,
|
.of_xlate = ti_sci_reset_of_xlate,
|
||||||
.request = ti_sci_reset_request,
|
.request = ti_sci_reset_request,
|
||||||
.free = ti_sci_reset_free,
|
.rfree = ti_sci_reset_free,
|
||||||
.rst_assert = ti_sci_reset_assert,
|
.rst_assert = ti_sci_reset_assert,
|
||||||
.rst_deassert = ti_sci_reset_deassert,
|
.rst_deassert = ti_sci_reset_deassert,
|
||||||
.rst_status = ti_sci_reset_status,
|
.rst_status = ti_sci_reset_status,
|
||||||
|
|
|
@ -164,7 +164,7 @@ int reset_free(struct reset_ctl *reset_ctl)
|
||||||
|
|
||||||
debug("%s(reset_ctl=%p)\n", __func__, reset_ctl);
|
debug("%s(reset_ctl=%p)\n", __func__, reset_ctl);
|
||||||
|
|
||||||
return ops->free(reset_ctl);
|
return ops->rfree(reset_ctl);
|
||||||
}
|
}
|
||||||
|
|
||||||
int reset_assert(struct reset_ctl *reset_ctl)
|
int reset_assert(struct reset_ctl *reset_ctl)
|
||||||
|
|
|
@ -234,7 +234,7 @@ static int uniphier_reset_deassert(struct reset_ctl *reset_ctl)
|
||||||
|
|
||||||
static const struct reset_ops uniphier_reset_ops = {
|
static const struct reset_ops uniphier_reset_ops = {
|
||||||
.request = uniphier_reset_request,
|
.request = uniphier_reset_request,
|
||||||
.free = uniphier_reset_free,
|
.rfree = uniphier_reset_free,
|
||||||
.rst_assert = uniphier_reset_assert,
|
.rst_assert = uniphier_reset_assert,
|
||||||
.rst_deassert = uniphier_reset_deassert,
|
.rst_deassert = uniphier_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -79,7 +79,7 @@ static const struct udevice_id sandbox_reset_ids[] = {
|
||||||
|
|
||||||
struct reset_ops sandbox_reset_reset_ops = {
|
struct reset_ops sandbox_reset_reset_ops = {
|
||||||
.request = sandbox_reset_request,
|
.request = sandbox_reset_request,
|
||||||
.free = sandbox_reset_free,
|
.rfree = sandbox_reset_free,
|
||||||
.rst_assert = sandbox_reset_assert,
|
.rst_assert = sandbox_reset_assert,
|
||||||
.rst_deassert = sandbox_reset_deassert,
|
.rst_deassert = sandbox_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -298,7 +298,7 @@ static int sti_reset_deassert(struct reset_ctl *reset_ctl)
|
||||||
|
|
||||||
struct reset_ops sti_reset_ops = {
|
struct reset_ops sti_reset_ops = {
|
||||||
.request = sti_reset_request,
|
.request = sti_reset_request,
|
||||||
.free = sti_reset_free,
|
.rfree = sti_reset_free,
|
||||||
.rst_assert = sti_reset_assert,
|
.rst_assert = sti_reset_assert,
|
||||||
.rst_deassert = sti_reset_deassert,
|
.rst_deassert = sti_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -64,7 +64,7 @@ static int stm32_reset_deassert(struct reset_ctl *reset_ctl)
|
||||||
|
|
||||||
static const struct reset_ops stm32_reset_ops = {
|
static const struct reset_ops stm32_reset_ops = {
|
||||||
.request = stm32_reset_request,
|
.request = stm32_reset_request,
|
||||||
.free = stm32_reset_free,
|
.rfree = stm32_reset_free,
|
||||||
.rst_assert = stm32_reset_assert,
|
.rst_assert = stm32_reset_assert,
|
||||||
.rst_deassert = stm32_reset_deassert,
|
.rst_deassert = stm32_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -51,7 +51,7 @@ static int tegra_car_reset_deassert(struct reset_ctl *reset_ctl)
|
||||||
|
|
||||||
struct reset_ops tegra_car_reset_ops = {
|
struct reset_ops tegra_car_reset_ops = {
|
||||||
.request = tegra_car_reset_request,
|
.request = tegra_car_reset_request,
|
||||||
.free = tegra_car_reset_free,
|
.rfree = tegra_car_reset_free,
|
||||||
.rst_assert = tegra_car_reset_assert,
|
.rst_assert = tegra_car_reset_assert,
|
||||||
.rst_deassert = tegra_car_reset_deassert,
|
.rst_deassert = tegra_car_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -60,7 +60,7 @@ static int tegra186_reset_deassert(struct reset_ctl *reset_ctl)
|
||||||
|
|
||||||
struct reset_ops tegra186_reset_ops = {
|
struct reset_ops tegra186_reset_ops = {
|
||||||
.request = tegra186_reset_request,
|
.request = tegra186_reset_request,
|
||||||
.free = tegra186_reset_free,
|
.rfree = tegra186_reset_free,
|
||||||
.rst_assert = tegra186_reset_assert,
|
.rst_assert = tegra186_reset_assert,
|
||||||
.rst_deassert = tegra186_reset_deassert,
|
.rst_deassert = tegra186_reset_deassert,
|
||||||
};
|
};
|
||||||
|
|
|
@ -51,14 +51,14 @@ struct reset_ops {
|
||||||
*/
|
*/
|
||||||
int (*request)(struct reset_ctl *reset_ctl);
|
int (*request)(struct reset_ctl *reset_ctl);
|
||||||
/**
|
/**
|
||||||
* free - Free a previously requested reset control.
|
* rfree - Free a previously requested reset control.
|
||||||
*
|
*
|
||||||
* This is the implementation of the client reset_free() API.
|
* This is the implementation of the client reset_free() API.
|
||||||
*
|
*
|
||||||
* @reset_ctl: The reset control to free.
|
* @reset_ctl: The reset control to free.
|
||||||
* @return 0 if OK, or a negative error code.
|
* @return 0 if OK, or a negative error code.
|
||||||
*/
|
*/
|
||||||
int (*free)(struct reset_ctl *reset_ctl);
|
int (*rfree)(struct reset_ctl *reset_ctl);
|
||||||
/**
|
/**
|
||||||
* rst_assert - Assert a reset signal.
|
* rst_assert - Assert a reset signal.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue