diff mbox series

[3/5] freescale: fix header inclusion guard

Message ID 20230515135214.4083319-4-andre.przywara@arm.com
State Accepted
Commit db93db92b4a2244e0ef35bf1bf3fc38c1da174f1
Delegated to: Tom Rini
Headers show
Series Fix inclusion guards | expand

Commit Message

Andre Przywara May 15, 2023, 1:52 p.m. UTC
It seems like the header inclusion guard for some Freescale crosspoint
switch header was misspelled.

Make the preprocessor symbol for the #ifndef and #define lines the
same, so that the double inclusion protection works as expected.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
 board/freescale/common/vsc3316_3308.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Fabio Estevam May 15, 2023, 2:17 p.m. UTC | #1
H Andre,

On Mon, May 15, 2023 at 10:52 AM Andre Przywara <andre.przywara@arm.com> wrote:
>
> It seems like the header inclusion guard for some Freescale crosspoint
> switch header was misspelled.
>
> Make the preprocessor symbol for the #ifndef and #define lines the
> same, so that the double inclusion protection works as expected.
>
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> ---
>  board/freescale/common/vsc3316_3308.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/board/freescale/common/vsc3316_3308.h b/board/freescale/common/vsc3316_3308.h
> index 49a684f9f49..8d343ba4d65 100644
> --- a/board/freescale/common/vsc3316_3308.h
> +++ b/board/freescale/common/vsc3316_3308.h
> @@ -4,7 +4,7 @@
>   */
>
>  #ifndef __VSC_CROSSBAR_H_
> -#define __VSC_CROSSBAR_H       1_
> +#define __VSC_CROSSBAR_H_

The change is correct, but it does not match the Subject/commit log.
Tom Rini May 15, 2023, 2:29 p.m. UTC | #2
On Mon, May 15, 2023 at 02:52:12PM +0100, Andre Przywara wrote:

> It seems like the header inclusion guard for some Freescale crosspoint
> switch header was misspelled.
> 
> Make the preprocessor symbol for the #ifndef and #define lines the
> same, so that the double inclusion protection works as expected.
> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>

Reviewed-by: Tom Rini <trini@konsulko.com>
Andre Przywara May 15, 2023, 2:34 p.m. UTC | #3
On Mon, 15 May 2023 11:17:14 -0300
Fabio Estevam <festevam@gmail.com> wrote:

Hi Fabio,

> On Mon, May 15, 2023 at 10:52 AM Andre Przywara <andre.przywara@arm.com> wrote:
> >
> > It seems like the header inclusion guard for some Freescale crosspoint
> > switch header was misspelled.
> >
> > Make the preprocessor symbol for the #ifndef and #define lines the
> > same, so that the double inclusion protection works as expected.
> >
> > Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> > ---
> >  board/freescale/common/vsc3316_3308.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/board/freescale/common/vsc3316_3308.h b/board/freescale/common/vsc3316_3308.h
> > index 49a684f9f49..8d343ba4d65 100644
> > --- a/board/freescale/common/vsc3316_3308.h
> > +++ b/board/freescale/common/vsc3316_3308.h
> > @@ -4,7 +4,7 @@
> >   */
> >
> >  #ifndef __VSC_CROSSBAR_H_
> > -#define __VSC_CROSSBAR_H       1_
> > +#define __VSC_CROSSBAR_H_  
> 
> The change is correct, but it does not match the Subject/commit log.

What do you mean, exactly?
To put *some* context into the commit message, I tried to find out what
this "vsc" device is about, and found "crosspoint switch" somewhere
(doc/README.VSC3316-3308). Is that not what it is about? Or is not a
Freescale device, but just used by Freescale SoCs? Some T208 hardware
seems to be the only user, though.

Can you suggest a better description?

Cheers,
Andre
Fabio Estevam May 15, 2023, 2:42 p.m. UTC | #4
Hi Andre,

> What do you mean, exactly?
> To put *some* context into the commit message, I tried to find out what
> this "vsc" device is about, and found "crosspoint switch" somewhere
> (doc/README.VSC3316-3308). Is that not what it is about? Or is not a
> Freescale device, but just used by Freescale SoCs? Some T208 hardware
> seems to be the only user, though.

The VSC3316 is a switch manufactured by Microchip:
https://www.microsemi.com/product-directory/digital-crosspoint-switches/3998-vsc3316

> Can you suggest a better description?

What about:

Subject: freescale: vsc3316_3308: fix header inclusion guard

It seems like the header inclusion guard for the vsc3316_3308
switch header was misspelled.

Make the preprocessor symbol for the #ifndef and #define lines the
same, so that the double inclusion protection works as expected.
Tom Rini May 31, 2023, 5:17 p.m. UTC | #5
On Mon, May 15, 2023 at 02:52:12PM +0100, Andre Przywara wrote:

> It seems like the header inclusion guard for some Freescale crosspoint
> switch header was misspelled.
> 
> Make the preprocessor symbol for the #ifndef and #define lines the
> same, so that the double inclusion protection works as expected.
> 
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>

Applied to u-boot/next, thanks!
diff mbox series

Patch

diff --git a/board/freescale/common/vsc3316_3308.h b/board/freescale/common/vsc3316_3308.h
index 49a684f9f49..8d343ba4d65 100644
--- a/board/freescale/common/vsc3316_3308.h
+++ b/board/freescale/common/vsc3316_3308.h
@@ -4,7 +4,7 @@ 
  */
 
 #ifndef __VSC_CROSSBAR_H_
-#define __VSC_CROSSBAR_H	1_
+#define __VSC_CROSSBAR_H_
 
 #include <common.h>
 #include <i2c.h>