staging: netlogic
PATCH 1/2 staging: netlogic: replace old kconfig with new syntax
In reply to Ioannis ValasakisKConfig prefers the help macro instead of the old slashed one. Reported by checkpatch.
--- drivers/staging/netlogic/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/netlogic/Kconfig +1 -1
@@ -2,6 +2,6 @@ config NETLOGIC_XLR_NET tristate "Netlogic XLR/XLS network device" depends on CPU_XLR select PHYLIB - ---help--- + help This driver support Netlogic XLR/XLS on chip gigabit Ethernet.
Signature · 1 line
2.19.1
PATCH 2/2 staging: netlogic: Cleanup parenetheses
In reply to Ioannis ValasakisCleanup mismatching parentheses.
Reported by checkpatch.
--- drivers/staging/netlogic/platform_net.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
drivers/staging/netlogic/platform_net.c +8 -8
@@ -107,8 +107,8 @@ static struct platform_device *gmac_controller2_init(void *gmac0_addr) .dev.platform_data = &ndata1, }; - gmac4_addr =ioremap (CPHYSADDR ( -nlm_mmio_base (NETLOGIC_IO_GMAC_4_OFFSET )),0xfff ); + gmac5_addr =ioremap (CPHYSADDR + (nlm_mmio_base (NETLOGIC_IO_GMAC_4_OFFSET )),0xfff ); ndata1.serdes_addr = gmac4_addr; ndata1.pcs_addr = gmac4_addr; ndata1.mii_addr = gmac0_addr;
@@ -134,8 +134,8 @@ static void xls_gmac_init(void) {int mac;struct platform_device *xlr_net_dev1; -void __iomem *gmac0_addr =ioremap (CPHYSADDR ( -nlm_mmio_base (NETLOGIC_IO_GMAC_0_OFFSET )),0xfff ); +void __iomem *gmac0_addr =ioremap (CPHYSADDR + (nlm_mmio_base (NETLOGIC_IO_GMAC_0_OFFSET )),0xfff );static struct xlr_net_data ndata0 = { .rfr_station =FMN_STNID_GMACRFR_0 ,
@@ -153,8 +153,8 @@ static void xls_gmac_init(void) ndata0.mii_addr = gmac0_addr;/* Passing GPIO base for serdes init. Only needed on sgmii ports */ - gpio_addr =ioremap (CPHYSADDR ( -nlm_mmio_base (NETLOGIC_IO_GPIO_OFFSET )),0xfff ); + gpio_addr =ioremap (CPHYSADDR + (nlm_mmio_base (NETLOGIC_IO_GPIO_OFFSET )),0xfff ); ndata0.gpio_addr = gpio_addr; ndata0.cpu_mask =nlm_current_node ()->coremask;
@@ -214,8 +214,8 @@ static void xlr_gmac_init(void) .id = 0, .dev.platform_data = &ndata0, }; - ndata0.mii_addr =ioremap (CPHYSADDR ( -nlm_mmio_base (NETLOGIC_IO_GMAC_0_OFFSET )),0xfff ); + ndata0.mii_addr =ioremap (CPHYSADDR + (nlm_mmio_base (NETLOGIC_IO_GMAC_0_OFFSET )),0xfff ); ndata0.cpu_mask =nlm_current_node ()->coremask;
Signature · 1 line
2.19.1
PATCH 1/2 staging: netlogic
Ioannis Valasakis (2):
staging: netlogic: replace old kconfig with new syntax
staging: netlogic: Cleanup parenetheses
drivers/staging/netlogic/Kconfig | 2 +- drivers/staging/netlogic/platform_net.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-)
Signature · 1 line
2.19.1
Re: [Outreachy kernel] [PATCH 2/2] staging: netlogic: Cleanup parenetheses
In reply to Ioannis ValasakisQuoted 2 lines · Ioannis Valasakis
Cleanup mismatching parentheses.
Reported by checkpatch.
It doesn't look very nice to me with the function arguments alone on a line like that. Maybe there are other places where newlines could be put.
julia
Quoted 65 lines
Signed-off-by Ioannis Valasakis <[email protected]>--- drivers/staging/netlogic/platform_net.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)drivers/staging/netlogic/platform_net.c +8
-9@@ -107,8 +107,8 @@ static struct platform_device *gmac_controller2_init(void *gmac0_addr) .dev.platform_data = &ndata1, }; - gmac4_addr =ioremap (CPHYSADDR ( -nlm_mmio_base (NETLOGIC_IO_GMAC_4_OFFSET )),0xfff ); + gmac5_addr =ioremap (CPHYSADDR + (nlm_mmio_base (NETLOGIC_IO_GMAC_4_OFFSET )),0xfff ); ndata1.serdes_addr = gmac4_addr; ndata1.pcs_addr = gmac4_addr; ndata1.mii_addr = gmac0_addr;@@ -134,8 +134,8 @@ static void xls_gmac_init(void) {int mac;struct platform_device *xlr_net_dev1; -void __iomem *gmac0_addr =ioremap (CPHYSADDR ( -nlm_mmio_base (NETLOGIC_IO_GMAC_0_OFFSET )),0xfff ); +void __iomem *gmac0_addr =ioremap (CPHYSADDR + (nlm_mmio_base (NETLOGIC_IO_GMAC_0_OFFSET )),0xfff );static struct xlr_net_data ndata0 = { .rfr_station =FMN_STNID_GMACRFR_0 ,@@ -153,8 +153,8 @@ static void xls_gmac_init(void) ndata0.mii_addr = gmac0_addr;/* Passing GPIO base for serdes init. Only needed on sgmii ports */ - gpio_addr =ioremap (CPHYSADDR ( -nlm_mmio_base (NETLOGIC_IO_GPIO_OFFSET )),0xfff ); + gpio_addr =ioremap (CPHYSADDR + (nlm_mmio_base (NETLOGIC_IO_GPIO_OFFSET )),0xfff ); ndata0.gpio_addr = gpio_addr; ndata0.cpu_mask =nlm_current_node ()->coremask;@@ -214,8 +214,8 @@ static void xlr_gmac_init(void) .id = 0, .dev.platform_data = &ndata0, }; - ndata0.mii_addr =ioremap (CPHYSADDR ( -nlm_mmio_base (NETLOGIC_IO_GMAC_0_OFFSET )),0xfff ); + ndata0.mii_addr =ioremap (CPHYSADDR + (nlm_mmio_base (NETLOGIC_IO_GMAC_0_OFFSET )),0xfff ); ndata0.cpu_mask =nlm_current_node ()->coremask; --2.19.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/e7defe7da804d867532182a1fcb387a9f41f9482.1540152794.git.code%40wizofe.uk.
For more options, visit https://groups.google.com/d/optout.
It looks like this would be 0/2?
julia
Quoted 19 lines · Ioannis Valasakis
Ioannis Valasakis (2):
staging: netlogic: replace old kconfig with new syntax
staging: netlogic: Cleanup parenethesesdrivers/staging/netlogic/Kconfig | 2 +- drivers/staging/netlogic/platform_net.c | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-)--
2.19.1--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/cover.1540152794.git.code%40wizofe.uk.
For more options, visit https://groups.google.com/d/optout.