Skip to contentSkip to conversation

drivers/isdn/act2000: Macro capitalization

PATCH New Andi Drebes 1 participant 1 message Jun 8, 2007 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 drivers/isdn/act2000: Macro capitalization

This patch capitalizes lower-case macros defined in drivers/isdn/act2000/{act2000.h,act2000_isa.h,capi.c} according to Documentation/CodingStyle, Chapter 12.

Tested by compilation on an i386 box using "allyesconfig". Diffed against Linus' git-tree.

---

drivers/isdn/act2000/act2000.h +3 -3
index d4c5051..c167171 100644
@@ -12,8 +12,8 @@
  *
  */
 
-#ifndef act2000_h
-#define act2000_h
+#ifndef ACT2000_H
+#define ACT2000_H
 
 #include <linux/compiler.h>
 
@@ -199,4 +199,4 @@ static inline void act2000_schedule_poll(act2000_card *card)
 extern char *act2000_find_eaz(act2000_card *, char);
 
 #endif                          /* defined(__KERNEL__) || defined(__DEBUGVAR__) */
-#endif                          /* act2000_h */
+#endif                          /* ACT2000_H */
drivers/isdn/act2000/act2000_isa.h +3 -3
index ad86c5e..eacb929 100644
@@ -12,8 +12,8 @@
  *
  */
 
-#ifndef act2000_isa_h
-#define act2000_isa_h
+#ifndef ACT2000_ISA_H
+#define ACT2000_ISA_H
 
 #define ISA_POLL_LOOP 40        /* Try to read-write before give up */
 
@@ -133,4 +133,4 @@ extern void act2000_isa_release(act2000_card * card);
 extern void act2000_isa_receive(act2000_card *card);
 extern void act2000_isa_send(act2000_card *card);
 
-#endif                          /* act2000_isa_h */
+#endif                          /* ACT2000_ISA_H */
drivers/isdn/act2000/capi.c +4 -4
index a3428da..18897ab 100644
@@ -78,8 +78,8 @@ static actcapi_msgdsc valid_msg[] = {
 #endif
 	{{ 0x00, 0x00}, NULL},
 };
-#define num_valid_msg ARRAY_SIZE(valid_msg)
-#define num_valid_imsg 27 /* MANUFACTURER_IND */
+#define NUM_VALID_MSG ARRAY_SIZE(valid_msg)
+#define NUM_VALID_IMSG 27 /* MANUFACTURER_IND */
 
 /*
  * Check for a valid incoming CAPI message.
@@ -97,7 +97,7 @@ actcapi_chkhdr(act2000_card * card, actcapi_msghdr *hdr)
 		return 0;
 	if (hdr->len < 9)
 		return 0;
-	for (i = 0; i < num_valid_imsg; i++)
+	for (i = 0; i < NUM_VALID_IMSG; i++)
 		if ((hdr->cmd.cmd = valid_msg[i].cmd.cmd) &&
 		    (hdr->cmd.subcmd = valid_msg[i].cmd.subcmd)) {
 			return (i?1:2);
@@ -1025,7 +1025,7 @@ actcapi_debug_msg(struct sk_buff *skb, int direction)
 #ifdef DEBUG_DUMP_SKB
 	dump_skb(skb);
 #endif
-	for (i = 0; i < num_valid_msg; i++)
+	for (i = 0; i < NUM_VALID_MSG; i++)
 		if ((msg->hdr.cmd.cmd = valid_msg[i].cmd.cmd) &&
 		    (msg->hdr.cmd.subcmd = valid_msg[i].cmd.subcmd)) {
 			descr = valid_msg[i].description;

_______________________________________________
Kernel-janitors mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors