Skip to content

Commit a8e233d

Browse files
Michael Rubingregkh
authored andcommitted
staging: gpib: Correct CamelCase for VALID enums
Adhere to Linux kernel coding style. Reported by checkpatch CHECK: Avoid CamelCase Signed-off-by: Michael Rubin <[email protected]> Acked-By: Dave Penkler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 82184cc commit a8e233d

File tree

12 files changed

+21
-21
lines changed

12 files changed

+21
-21
lines changed

drivers/staging/gpib/agilent_82357a/agilent_82357a.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ static int agilent_82357a_line_status(const gpib_board_t *board)
10171017
struct usb_device *usb_dev;
10181018
struct agilent_82357a_register_pairlet bus_status;
10191019
int retval;
1020-
int status = ValidALL;
1020+
int status = VALID_ALL;
10211021

10221022
if (!a_priv->bus_interface)
10231023
return -ENODEV;

drivers/staging/gpib/cb7210/cb7210.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ static int cb7210_accel_write(gpib_board_t *board, uint8_t *buffer, size_t lengt
379379

380380
static int cb7210_line_status(const gpib_board_t *board)
381381
{
382-
int status = ValidALL;
382+
int status = VALID_ALL;
383383
int bsr_bits;
384384
struct cb7210_priv *cb_priv;
385385

drivers/staging/gpib/common/iblib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static int check_for_command_acceptors(gpib_board_t *board)
7676
if (lines < 0)
7777
return lines;
7878

79-
if ((lines & ValidNRFD) && (lines & ValidNDAC)) {
79+
if ((lines & VALID_NRFD) && (lines & VALID_NDAC)) {
8080
if ((lines & BUS_NRFD) == 0 && (lines & BUS_NDAC) == 0)
8181
return -ENOTCONN;
8282
}
@@ -520,7 +520,7 @@ int general_ibstatus(gpib_board_t *board, const gpib_status_queue_t *device,
520520
status &= ~TIMO;
521521
/* get real SRQI status if we can */
522522
if (iblines(board, &line_status) == 0) {
523-
if ((line_status & ValidSRQ)) {
523+
if ((line_status & VALID_SRQ)) {
524524
if ((line_status & BUS_SRQ))
525525
status |= SRQI;
526526
else

drivers/staging/gpib/eastwood/fluke_gpib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ static void fluke_return_to_local(gpib_board_t *board)
195195

196196
static int fluke_line_status(const gpib_board_t *board)
197197
{
198-
int status = ValidALL;
198+
int status = VALID_ALL;
199199
int bsr_bits;
200200
struct fluke_priv *e_priv;
201201

drivers/staging/gpib/fmh_gpib/fmh_gpib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ static void fmh_gpib_return_to_local(gpib_board_t *board)
229229

230230
static int fmh_gpib_line_status(const gpib_board_t *board)
231231
{
232-
int status = ValidALL;
232+
int status = VALID_ALL;
233233
int bsr_bits;
234234
struct fmh_priv *e_priv;
235235
struct nec7210_priv *nec_priv;

drivers/staging/gpib/gpio/gpib_bitbang.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ static void bb_return_to_local(gpib_board_t *board)
10311031

10321032
static int bb_line_status(const gpib_board_t *board)
10331033
{
1034-
int line_status = ValidALL;
1034+
int line_status = VALID_ALL;
10351035

10361036
if (gpiod_get_value(REN) == 0)
10371037
line_status |= BUS_REN;

drivers/staging/gpib/ines/ines_gpib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ MODULE_DESCRIPTION("GPIB driver for Ines iGPIB 72010");
2727

2828
int ines_line_status(const gpib_board_t *board)
2929
{
30-
int status = ValidALL;
30+
int status = VALID_ALL;
3131
int bcm_bits;
3232
struct ines_priv *ines_priv;
3333

drivers/staging/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ static void usb_gpib_interface_clear(gpib_board_t *board, int assert)
658658
static int usb_gpib_line_status(const gpib_board_t *board)
659659
{
660660
int buffer;
661-
int line_status = ValidALL; /* all lines will be read */
661+
int line_status = VALID_ALL; /* all lines will be read */
662662
struct list_head *p, *q;
663663
WQT *item;
664664
unsigned long flags;

drivers/staging/gpib/ni_usb/ni_usb_gpib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ static int ni_usb_line_status(const gpib_board_t *board)
15081508
int bytes_written = 0, bytes_read = 0;
15091509
int i = 0;
15101510
unsigned int bsr_bits;
1511-
int line_status = ValidALL;
1511+
int line_status = VALID_ALL;
15121512
// NI windows driver reads 0xd(HSSEL), 0xc (ARD0), 0x1f (BSR)
15131513

15141514
if (!ni_priv->bus_interface)

drivers/staging/gpib/tms9914/tms9914.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ static unsigned int update_status_nolock(gpib_board_t *board, struct tms9914_pri
391391
int tms9914_line_status(const gpib_board_t *board, struct tms9914_priv *priv)
392392
{
393393
int bsr_bits;
394-
int status = ValidALL;
394+
int status = VALID_ALL;
395395

396396
bsr_bits = read_byte(priv, BSR);
397397

0 commit comments

Comments
 (0)