* [PATCH 00/15] drivers: net: use IS_ENABLED() instead of checking for built-in or module
@ 2016-09-12 14:03 Javier Martinez Canillas
2016-09-12 14:03 ` [PATCH 15/15] iwlegacy: " Javier Martinez Canillas
2016-09-13 3:28 ` [PATCH 00/15] drivers: net: " David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Javier Martinez Canillas @ 2016-09-12 14:03 UTC (permalink / raw)
To: linux-kernel
Cc: Javier Martinez Canillas, Arnd Bergmann, Sony Chacko,
Giuseppe Cavallaro, Solarflare linux maintainers,
Florian Westphal, Bert Kenward, Geert Uytterhoeven, Edward Cree,
Kalle Valo, Marcin Wojtas, Antonio Quartulli, intel-wired-lan,
Florian Fainelli, Felipe Balbi, Gregory CLEMENT,
Dept-HSGLinuxNICDev, Jeff Kirsher, Mugunthan V N, Andrew Lunn,
Steffen Klassert, Stanislaw Gruszka, Denis Kirjanov, Zhao Qiang,
netdev, Gerlando Falauto, linux-wireless, Ion Badulescu,
David S. Miller, Daniele Venzano, Alexandre Torgue
Hello David,
This trivial series is similar to [0] for net/ that you already merged, but
for drivers/net. The patches replaces the open coding to check for a Kconfig
symbol being built-in or module, with IS_ENABLED() macro that does the same.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
[0]: https://lkml.org/lkml/2016/9/9/323
Best regards,
Javier
Javier Martinez Canillas (15):
3c59x: use IS_ENABLED() instead of checking for built-in or module
starfire: use IS_ENABLED() instead of checking for built-in or module
ethernet: amd: use IS_ENABLED() instead of checking for built-in or
module
bnx2: use IS_ENABLED() instead of checking for built-in or module
sundance: use IS_ENABLED() instead of checking for built-in or module
net/fsl_pq_mdio: use IS_ENABLED() instead of checking for built-in or
module
i825xx: use IS_ENABLED() instead of checking for built-in or module
ixgbe: use IS_ENABLED() instead of checking for built-in or module
net: mvneta: use IS_ENABLED() instead of checking for built-in or
module
natsemi: use IS_ENABLED() instead of checking for built-in or module
sfc: use IS_ENABLED() instead of checking for built-in or module
sis900: use IS_ENABLED() instead of checking for built-in or module
stmmac: use IS_ENABLED() instead of checking for built-in or module
hamradio: use IS_ENABLED() instead of checking for built-in or module
iwlegacy: use IS_ENABLED() instead of checking for built-in or module
drivers/net/ethernet/3com/3c59x.c | 2 +-
drivers/net/ethernet/adaptec/starfire.c | 2 +-
drivers/net/ethernet/amd/7990.c | 6 +++---
drivers/net/ethernet/amd/amd8111e.c | 2 +-
drivers/net/ethernet/broadcom/bnx2.c | 2 +-
drivers/net/ethernet/dlink/sundance.c | 2 +-
drivers/net/ethernet/freescale/fsl_pq_mdio.c | 8 ++++----
drivers/net/ethernet/i825xx/82596.c | 4 ++--
drivers/net/ethernet/intel/ixgbe/ixgbe.h | 4 ++--
drivers/net/ethernet/marvell/mvneta_bm.h | 2 +-
drivers/net/ethernet/natsemi/ns83820.c | 2 +-
drivers/net/ethernet/sfc/falcon_boards.c | 4 ++--
drivers/net/ethernet/sis/sis900.c | 4 ++--
drivers/net/ethernet/sis/sis900.h | 2 +-
drivers/net/ethernet/stmicro/stmmac/common.h | 2 +-
drivers/net/hamradio/bpqether.c | 2 +-
drivers/net/wireless/intel/iwlegacy/common.h | 4 ++--
17 files changed, 27 insertions(+), 27 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH 15/15] iwlegacy: use IS_ENABLED() instead of checking for built-in or module
2016-09-12 14:03 [PATCH 00/15] drivers: net: use IS_ENABLED() instead of checking for built-in or module Javier Martinez Canillas
@ 2016-09-12 14:03 ` Javier Martinez Canillas
2016-09-13 3:28 ` [PATCH 00/15] drivers: net: " David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Javier Martinez Canillas @ 2016-09-12 14:03 UTC (permalink / raw)
To: linux-kernel
Cc: Javier Martinez Canillas, linux-wireless, netdev, Kalle Valo,
Stanislaw Gruszka
The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either
built-in or as a module, use that macro instead of open coding the same.
Using the macro makes the code more readable by helping abstract away some
of the Kconfig built-in and module enable details.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
drivers/net/wireless/intel/iwlegacy/common.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/intel/iwlegacy/common.h b/drivers/net/wireless/intel/iwlegacy/common.h
index 726ede391cb9..3bba521d2cd9 100644
--- a/drivers/net/wireless/intel/iwlegacy/common.h
+++ b/drivers/net/wireless/intel/iwlegacy/common.h
@@ -1320,7 +1320,7 @@ struct il_priv {
u64 timestamp;
union {
-#if defined(CONFIG_IWL3945) || defined(CONFIG_IWL3945_MODULE)
+#if IS_ENABLED(CONFIG_IWL3945)
struct {
void *shared_virt;
dma_addr_t shared_phys;
@@ -1351,7 +1351,7 @@ struct il_priv {
} _3945;
#endif
-#if defined(CONFIG_IWL4965) || defined(CONFIG_IWL4965_MODULE)
+#if IS_ENABLED(CONFIG_IWL4965)
struct {
struct il_rx_phy_res last_phy_res;
bool last_phy_res_valid;
--
2.7.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 00/15] drivers: net: use IS_ENABLED() instead of checking for built-in or module
2016-09-12 14:03 [PATCH 00/15] drivers: net: use IS_ENABLED() instead of checking for built-in or module Javier Martinez Canillas
2016-09-12 14:03 ` [PATCH 15/15] iwlegacy: " Javier Martinez Canillas
@ 2016-09-13 3:28 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2016-09-13 3:28 UTC (permalink / raw)
To: javier
Cc: linux-kernel, arnd, sony.chacko, peppe.cavallaro,
linux-net-drivers, fw, bkenward, geert, ecree, kvalo, mw, a,
intel-wired-lan, f.fainelli, felipe.balbi, gregory.clement,
Dept-HSGLinuxNICDev, jeffrey.t.kirsher, mugunthanvnm, andrew,
klassert, sgruszka, kda, qiang.zhao, netdev, gerlando.falauto,
linux-wireless, ionut, venza, alexandre.torgue
From: Javier Martinez Canillas <javier@osg.samsung.com>
Date: Mon, 12 Sep 2016 10:03:31 -0400
> This trivial series is similar to [0] for net/ that you already merged, but
> for drivers/net. The patches replaces the open coding to check for a Kconfig
> symbol being built-in or module, with IS_ENABLED() macro that does the same.
Series applied, thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-13 3:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-12 14:03 [PATCH 00/15] drivers: net: use IS_ENABLED() instead of checking for built-in or module Javier Martinez Canillas
2016-09-12 14:03 ` [PATCH 15/15] iwlegacy: " Javier Martinez Canillas
2016-09-13 3:28 ` [PATCH 00/15] drivers: net: " David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox