diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-11-18 15:09:28 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-11-22 13:43:16 +0000 |
commit | 41865cc5b40a4fbbc96b998b5a70e9cf18d872ee (patch) | |
tree | c3ee10fdceac2f17b0756f5cb53ba181b26bd8c3 | |
parent | 4d4193dcefa20c183a5269da10afb4d0c73a2c68 (diff) |
src/soc/nvidia: Remove unnecessary space after casts
Change-Id: I096e88158027ac22cf93a9450c869807dbc14670
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69810
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/soc/nvidia/tegra124/dp.c | 4 | ||||
-rw-r--r-- | src/soc/nvidia/tegra124/sor.c | 4 | ||||
-rw-r--r-- | src/soc/nvidia/tegra210/dp.c | 4 | ||||
-rw-r--r-- | src/soc/nvidia/tegra210/sor.c | 4 | ||||
-rw-r--r-- | src/soc/nvidia/tegra210/spi.c | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/src/soc/nvidia/tegra124/dp.c b/src/soc/nvidia/tegra124/dp.c index 5da2c066f5..de98d650cc 100644 --- a/src/soc/nvidia/tegra124/dp.c +++ b/src/soc/nvidia/tegra124/dp.c @@ -28,7 +28,7 @@ struct tegra_dc_dp_data dp_data; static inline u32 tegra_dpaux_readl(struct tegra_dc_dp_data *dp, u32 reg) { - void *addr = dp->aux_base + (u32) (reg << 2); + void *addr = dp->aux_base + (u32)(reg << 2); u32 reg_val = READL(addr); return reg_val; } @@ -36,7 +36,7 @@ static inline u32 tegra_dpaux_readl(struct tegra_dc_dp_data *dp, u32 reg) static inline void tegra_dpaux_writel(struct tegra_dc_dp_data *dp, u32 reg, u32 val) { - void *addr = dp->aux_base + (u32) (reg << 2); + void *addr = dp->aux_base + (u32)(reg << 2); WRITEL(val, addr); } diff --git a/src/soc/nvidia/tegra124/sor.c b/src/soc/nvidia/tegra124/sor.c index 3d2750f1f0..8246a098e5 100644 --- a/src/soc/nvidia/tegra124/sor.c +++ b/src/soc/nvidia/tegra124/sor.c @@ -42,7 +42,7 @@ static inline u32 tegra_sor_readl(struct tegra_dc_sor_data *sor, u32 reg) { - void *addr = sor->base + (u32) (reg << 2); + void *addr = sor->base + (u32)(reg << 2); u32 reg_val = READL(addr); return reg_val; } @@ -50,7 +50,7 @@ static inline u32 tegra_sor_readl(struct tegra_dc_sor_data *sor, u32 reg) static inline void tegra_sor_writel(struct tegra_dc_sor_data *sor, u32 reg, u32 val) { - void *addr = sor->base + (u32) (reg << 2); + void *addr = sor->base + (u32)(reg << 2); WRITEL(val, addr); } diff --git a/src/soc/nvidia/tegra210/dp.c b/src/soc/nvidia/tegra210/dp.c index f3bc208128..f6f955c51e 100644 --- a/src/soc/nvidia/tegra210/dp.c +++ b/src/soc/nvidia/tegra210/dp.c @@ -36,7 +36,7 @@ struct tegra_dc_dp_data dp_data; static inline u32 tegra_dpaux_readl(struct tegra_dc_dp_data *dp, u32 reg) { - void *addr = dp->aux_base + (u32) (reg << 2); + void *addr = dp->aux_base + (u32)(reg << 2); u32 reg_val = READL(addr); return reg_val; } @@ -44,7 +44,7 @@ static inline u32 tegra_dpaux_readl(struct tegra_dc_dp_data *dp, u32 reg) static inline void tegra_dpaux_writel(struct tegra_dc_dp_data *dp, u32 reg, u32 val) { - void *addr = dp->aux_base + (u32) (reg << 2); + void *addr = dp->aux_base + (u32)(reg << 2); WRITEL(val, addr); } diff --git a/src/soc/nvidia/tegra210/sor.c b/src/soc/nvidia/tegra210/sor.c index 91ea5f4eeb..c24e0d6345 100644 --- a/src/soc/nvidia/tegra210/sor.c +++ b/src/soc/nvidia/tegra210/sor.c @@ -44,7 +44,7 @@ static inline u32 tegra_sor_readl(struct tegra_dc_sor_data *sor, u32 reg) { - void *addr = sor->base + (u32) (reg << 2); + void *addr = sor->base + (u32)(reg << 2); u32 reg_val = READL(addr); return reg_val; } @@ -52,7 +52,7 @@ static inline u32 tegra_sor_readl(struct tegra_dc_sor_data *sor, u32 reg) static inline void tegra_sor_writel(struct tegra_dc_sor_data *sor, u32 reg, u32 val) { - void *addr = sor->base + (u32) (reg << 2); + void *addr = sor->base + (u32)(reg << 2); WRITEL(val, addr); } diff --git a/src/soc/nvidia/tegra210/spi.c b/src/soc/nvidia/tegra210/spi.c index f8db110f7a..0f38df2e6a 100644 --- a/src/soc/nvidia/tegra210/spi.c +++ b/src/soc/nvidia/tegra210/spi.c @@ -478,7 +478,7 @@ static int tegra_spi_dma_prepare(struct tegra_spi_channel *spi, dcache_clean_by_mva(spi->out_buf, bytes); write32(&spi->dma_out->regs->apb_ptr, - (uintptr_t) & spi->regs->tx_fifo); + (uintptr_t)&spi->regs->tx_fifo); write32(&spi->dma_out->regs->ahb_ptr, (uintptr_t)spi->out_buf); setbits32(&spi->dma_out->regs->csr, APB_CSR_DIR); setup_dma_params(spi, spi->dma_out); |