Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: gpib: Correct CamelCase for VALID enums

Adhere to Linux kernel coding style.

Reported by checkpatch

CHECK: Avoid CamelCase

Signed-off-by: Michael Rubin <matchstick@neverthere.org>
Acked-By: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20250319211827.9854-3-matchstick@neverthere.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Michael Rubin and committed by
Greg Kroah-Hartman
a8e233d0 82184cc1

+21 -21
+1 -1
drivers/staging/gpib/agilent_82357a/agilent_82357a.c
··· 1017 1017 struct usb_device *usb_dev; 1018 1018 struct agilent_82357a_register_pairlet bus_status; 1019 1019 int retval; 1020 - int status = ValidALL; 1020 + int status = VALID_ALL; 1021 1021 1022 1022 if (!a_priv->bus_interface) 1023 1023 return -ENODEV;
+1 -1
drivers/staging/gpib/cb7210/cb7210.c
··· 379 379 380 380 static int cb7210_line_status(const gpib_board_t *board) 381 381 { 382 - int status = ValidALL; 382 + int status = VALID_ALL; 383 383 int bsr_bits; 384 384 struct cb7210_priv *cb_priv; 385 385
+2 -2
drivers/staging/gpib/common/iblib.c
··· 76 76 if (lines < 0) 77 77 return lines; 78 78 79 - if ((lines & ValidNRFD) && (lines & ValidNDAC)) { 79 + if ((lines & VALID_NRFD) && (lines & VALID_NDAC)) { 80 80 if ((lines & BUS_NRFD) == 0 && (lines & BUS_NDAC) == 0) 81 81 return -ENOTCONN; 82 82 } ··· 520 520 status &= ~TIMO; 521 521 /* get real SRQI status if we can */ 522 522 if (iblines(board, &line_status) == 0) { 523 - if ((line_status & ValidSRQ)) { 523 + if ((line_status & VALID_SRQ)) { 524 524 if ((line_status & BUS_SRQ)) 525 525 status |= SRQI; 526 526 else
+1 -1
drivers/staging/gpib/eastwood/fluke_gpib.c
··· 195 195 196 196 static int fluke_line_status(const gpib_board_t *board) 197 197 { 198 - int status = ValidALL; 198 + int status = VALID_ALL; 199 199 int bsr_bits; 200 200 struct fluke_priv *e_priv; 201 201
+1 -1
drivers/staging/gpib/fmh_gpib/fmh_gpib.c
··· 229 229 230 230 static int fmh_gpib_line_status(const gpib_board_t *board) 231 231 { 232 - int status = ValidALL; 232 + int status = VALID_ALL; 233 233 int bsr_bits; 234 234 struct fmh_priv *e_priv; 235 235 struct nec7210_priv *nec_priv;
+1 -1
drivers/staging/gpib/gpio/gpib_bitbang.c
··· 1031 1031 1032 1032 static int bb_line_status(const gpib_board_t *board) 1033 1033 { 1034 - int line_status = ValidALL; 1034 + int line_status = VALID_ALL; 1035 1035 1036 1036 if (gpiod_get_value(REN) == 0) 1037 1037 line_status |= BUS_REN;
+1 -1
drivers/staging/gpib/ines/ines_gpib.c
··· 27 27 28 28 int ines_line_status(const gpib_board_t *board) 29 29 { 30 - int status = ValidALL; 30 + int status = VALID_ALL; 31 31 int bcm_bits; 32 32 struct ines_priv *ines_priv; 33 33
+1 -1
drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c
··· 658 658 static int usb_gpib_line_status(const gpib_board_t *board) 659 659 { 660 660 int buffer; 661 - int line_status = ValidALL; /* all lines will be read */ 661 + int line_status = VALID_ALL; /* all lines will be read */ 662 662 struct list_head *p, *q; 663 663 WQT *item; 664 664 unsigned long flags;
+1 -1
drivers/staging/gpib/ni_usb/ni_usb_gpib.c
··· 1508 1508 int bytes_written = 0, bytes_read = 0; 1509 1509 int i = 0; 1510 1510 unsigned int bsr_bits; 1511 - int line_status = ValidALL; 1511 + int line_status = VALID_ALL; 1512 1512 // NI windows driver reads 0xd(HSSEL), 0xc (ARD0), 0x1f (BSR) 1513 1513 1514 1514 if (!ni_priv->bus_interface)
+1 -1
drivers/staging/gpib/tms9914/tms9914.c
··· 391 391 int tms9914_line_status(const gpib_board_t *board, struct tms9914_priv *priv) 392 392 { 393 393 int bsr_bits; 394 - int status = ValidALL; 394 + int status = VALID_ALL; 395 395 396 396 bsr_bits = read_byte(priv, BSR); 397 397
+1 -1
drivers/staging/gpib/tnt4882/tnt4882_gpib.c
··· 150 150 151 151 static int tnt4882_line_status(const gpib_board_t *board) 152 152 { 153 - int status = ValidALL; 153 + int status = VALID_ALL; 154 154 int bcsr_bits; 155 155 struct tnt4882_priv *tnt_priv; 156 156
+9 -9
drivers/staging/gpib/uapi/gpib_user.h
··· 106 106 107 107 /* GPIB Bus Control Lines bit vector */ 108 108 enum bus_control_line { 109 - ValidDAV = 0x01, 110 - ValidNDAC = 0x02, 111 - ValidNRFD = 0x04, 112 - ValidIFC = 0x08, 113 - ValidREN = 0x10, 114 - ValidSRQ = 0x20, 115 - ValidATN = 0x40, 116 - ValidEOI = 0x80, 117 - ValidALL = 0xff, 109 + VALID_DAV = 0x01, 110 + VALID_NDAC = 0x02, 111 + VALID_NRFD = 0x04, 112 + VALID_IFC = 0x08, 113 + VALID_REN = 0x10, 114 + VALID_SRQ = 0x20, 115 + VALID_ATN = 0x40, 116 + VALID_EOI = 0x80, 117 + VALID_ALL = 0xff, 118 118 BUS_DAV = 0x0100, /* DAV line status bit */ 119 119 BUS_NDAC = 0x0200, /* NDAC line status bit */ 120 120 BUS_NRFD = 0x0400, /* NRFD line status bit */