All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: atm: Fix kernel coding style
@ 2025-07-31  1:41 Li Jun
  2025-07-31  4:18 ` Greg KH
  2025-07-31 11:58 ` kernel test robot
  0 siblings, 2 replies; 3+ messages in thread
From: Li Jun @ 2025-07-31  1:41 UTC (permalink / raw)
  To: lijun01, gregkh, mingo, tglx, nathan, n.zhandarovich, linux-usb

These changes just fix Linux Kernel Coding Style, no functuional
improve.

-Space prohibited after that open parenthesis '(',
-Macros with complex values should be enclosed in parentheses.

Signed-off-by: Li Jun <lijun01@kylinos.cn>
---
 drivers/usb/atm/cxacru.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/usb/atm/cxacru.c b/drivers/usb/atm/cxacru.c
index 68a8e9de8b4f..57d59fff8142 100644
--- a/drivers/usb/atm/cxacru.c
+++ b/drivers/usb/atm/cxacru.c
@@ -196,13 +196,13 @@ static void cxacru_poll_status(struct work_struct *work);
 
 /* Card info exported through sysfs */
 #define CXACRU__ATTR_INIT(_name) \
-static DEVICE_ATTR_RO(_name)
+(static DEVICE_ATTR_RO(_name))
 
 #define CXACRU_CMD_INIT(_name) \
-static DEVICE_ATTR_RW(_name)
+(static DEVICE_ATTR_RW(_name))
 
 #define CXACRU_SET_INIT(_name) \
-static DEVICE_ATTR_WO(_name)
+(static DEVICE_ATTR_WO(_name))
 
 #define CXACRU_ATTR_INIT(_value, _type, _name) \
 static ssize_t _name##_show(struct device *dev, \
@@ -513,7 +513,7 @@ CXACRU_ATTR_##_action(CXINF_DOWNSTREAM_RATE,           u32,  downstream_rate); \
 CXACRU_ATTR_##_action(CXINF_UPSTREAM_RATE,             u32,  upstream_rate); \
 CXACRU_ATTR_##_action(CXINF_LINK_STATUS,               LINK, link_status); \
 CXACRU_ATTR_##_action(CXINF_LINE_STATUS,               LINE, line_status); \
-CXACRU__ATTR_##_action(                                      mac_address); \
+CXACRU__ATTR_##_action(mac_address); \
 CXACRU_ATTR_##_action(CXINF_UPSTREAM_SNR_MARGIN,       dB,   upstream_snr_margin); \
 CXACRU_ATTR_##_action(CXINF_DOWNSTREAM_SNR_MARGIN,     dB,   downstream_snr_margin); \
 CXACRU_ATTR_##_action(CXINF_UPSTREAM_ATTENUATION,      dB,   upstream_attenuation); \
@@ -533,8 +533,8 @@ CXACRU_ATTR_##_action(CXINF_MODULATION,                MODU, modulation); \
 CXACRU_ATTR_##_action(CXINF_ADSL_HEADEND,              u32,  adsl_headend); \
 CXACRU_ATTR_##_action(CXINF_ADSL_HEADEND_ENVIRONMENT,  u32,  adsl_headend_environment); \
 CXACRU_ATTR_##_action(CXINF_CONTROLLER_VERSION,        u32,  adsl_controller_version); \
-CXACRU_CMD_##_action(                                        adsl_state); \
-CXACRU_SET_##_action(                                        adsl_config);
+CXACRU_CMD_##_action(adsl_state); \
+CXACRU_SET_##_action(adsl_config);
 
 CXACRU_ALL_FILES(INIT);
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-31 11:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-31  1:41 [PATCH] usb: atm: Fix kernel coding style Li Jun
2025-07-31  4:18 ` Greg KH
2025-07-31 11:58 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.