staging: gpib: Correct CamelCase for PPConfig
authorMichael Rubin <matchstick@neverthere.org>
Tue, 8 Apr 2025 22:20:28 +0000 (22:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2025 14:34:50 +0000 (16:34 +0200)
Adhere to Linux kernel coding style.

Reported by checkpatch

CHECK: Avoid CamelCase: <PPConfig>

Signed-off-by: Michael Rubin <matchstick@neverthere.org>
Link: https://lore.kernel.org/r/20250408222040.186881-3-matchstick@neverthere.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/tms9914/tms9914.c
drivers/staging/gpib/uapi/gpib_user.h

index f7ad0b47ebb8cfdd8dbcfe2a7e1f927ec9e2fb56..5f167c518c7b105c9c02e37e55025a7ee9c7680a 100644 (file)
@@ -736,7 +736,7 @@ irqreturn_t tms9914_interrupt_have_status(struct gpib_board *board, struct tms99
                unsigned short command_byte = read_byte(priv, CPTR) & gpib_command_mask;
 
                switch (command_byte) {
-               case PPConfig:
+               case PP_CONFIG:
                        priv->ppoll_configure_state = 1;
                        /* AUX_PTS generates another UNC interrupt on the next command byte
                         * if it is in the secondary address group (such as PPE and PPD).
@@ -764,7 +764,7 @@ irqreturn_t tms9914_interrupt_have_status(struct gpib_board *board, struct tms99
                        break;
                }
 
-               if (in_primary_command_group(command_byte) && command_byte != PPConfig)
+               if (in_primary_command_group(command_byte) && command_byte != PP_CONFIG)
                        priv->ppoll_configure_state = 0;
        }
 
index b0c131196a0099e5deda5c354031939a1bbeb4b4..ff5a257f9a01858b79f8b4587b0b973b990bb867 100644 (file)
@@ -130,9 +130,9 @@ enum bus_control_line {
 enum cmd_byte {
        GTL = 0x1,      /* go to local                  */
        SDC = 0x4,      /* selected device clear        */
-       PPConfig = 0x5,
+       PP_CONFIG = 0x5,
 #ifndef PPC
-       PPC = PPConfig, /* parallel poll configure      */
+       PPC = PP_CONFIG, /* parallel poll configure     */
 #endif
        GET = 0x8,      /* group execute trigger        */
        TCT = 0x9,      /* take control                 */