diff mbox series

clk: exynos: Add header guard for clk-pll.h

Message ID 20231107212200.1457-1-semen.protsenko@linaro.org
State Accepted
Commit f655090901dce2a3890efb07c3f341d5b8bc2ae9
Headers show
Series clk: exynos: Add header guard for clk-pll.h | expand

Commit Message

Sam Protsenko Nov. 7, 2023, 9:22 p.m. UTC
The clk-pll.h is going to be included in multiple files soon. Add
missing header guard to prevent possible build errors in future.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Fixes: 166097e87753 ("clk: exynos: add clock driver for Exynos7420 Soc")
---
 drivers/clk/exynos/clk-pll.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Sean Anderson Nov. 8, 2023, 4:14 p.m. UTC | #1
On 11/7/23 16:22, Sam Protsenko wrote:
> The clk-pll.h is going to be included in multiple files soon. Add
> missing header guard to prevent possible build errors in future.
> 
> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
> Fixes: 166097e87753 ("clk: exynos: add clock driver for Exynos7420 Soc")
> ---
>   drivers/clk/exynos/clk-pll.h | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/clk/exynos/clk-pll.h b/drivers/clk/exynos/clk-pll.h
> index c79aac44258b..7b7af5e67612 100644
> --- a/drivers/clk/exynos/clk-pll.h
> +++ b/drivers/clk/exynos/clk-pll.h
> @@ -5,4 +5,9 @@
>    * Thomas Abraham <thomas.ab@samsung.com>
>    */
>   
> +#ifndef __EXYNOS_CLK_PLL_H
> +#define __EXYNOS_CLK_PLL_H
> +
>   unsigned long pll145x_get_rate(unsigned int *con1, unsigned long fin_freq);
> +
> +#endif /* __EXYNOS_CLK_PLL_H */

Reviewed-by: Sean Anderson <seanga2@gmail.com>
Minkyu Kang Nov. 14, 2023, 10:42 a.m. UTC | #2
Hi,


2023년 11월 9일 (목) 04:54, Sean Anderson <seanga2@gmail.com>님이 작성:

> On 11/7/23 16:22, Sam Protsenko wrote:
> > The clk-pll.h is going to be included in multiple files soon. Add
> > missing header guard to prevent possible build errors in future.
> >
> > Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
> > Fixes: 166097e87753 ("clk: exynos: add clock driver for Exynos7420 Soc")
> > ---
> >   drivers/clk/exynos/clk-pll.h | 5 +++++
> >   1 file changed, 5 insertions(+)
> >
> > diff --git a/drivers/clk/exynos/clk-pll.h b/drivers/clk/exynos/clk-pll.h
> > index c79aac44258b..7b7af5e67612 100644
> > --- a/drivers/clk/exynos/clk-pll.h
> > +++ b/drivers/clk/exynos/clk-pll.h
> > @@ -5,4 +5,9 @@
> >    * Thomas Abraham <thomas.ab@samsung.com>
> >    */
> >
> > +#ifndef __EXYNOS_CLK_PLL_H
> > +#define __EXYNOS_CLK_PLL_H
> > +
> >   unsigned long pll145x_get_rate(unsigned int *con1, unsigned long
> fin_freq);
> > +
> > +#endif /* __EXYNOS_CLK_PLL_H */
>
> Reviewed-by: Sean Anderson <seanga2@gmail.com>


applied to u-boot-samsung.

Thanks.
Minkyu Kang.
diff mbox series

Patch

diff --git a/drivers/clk/exynos/clk-pll.h b/drivers/clk/exynos/clk-pll.h
index c79aac44258b..7b7af5e67612 100644
--- a/drivers/clk/exynos/clk-pll.h
+++ b/drivers/clk/exynos/clk-pll.h
@@ -5,4 +5,9 @@ 
  * Thomas Abraham <thomas.ab@samsung.com>
  */
 
+#ifndef __EXYNOS_CLK_PLL_H
+#define __EXYNOS_CLK_PLL_H
+
 unsigned long pll145x_get_rate(unsigned int *con1, unsigned long fin_freq);
+
+#endif /* __EXYNOS_CLK_PLL_H */