Skip to content

Commit cfa6673

Browse files
dpenklergregkh
authored andcommitted
staging: gpib: Declare driver entry points static
Many of this driver's entry points were unecessarily not declared static. Remove the declarations from the include file. Make the declarations static in the .c file. Remove an uneccessary forward declaration in the .c file. Signed-off-by: Dave Penkler <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 034a456 commit cfa6673

File tree

2 files changed

+47
-89
lines changed

2 files changed

+47
-89
lines changed

drivers/staging/gpib/ines/ines.h

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -35,45 +35,6 @@ struct ines_priv {
3535
u8 extend_mode_bits;
3636
};
3737

38-
// interface functions
39-
int ines_read(struct gpib_board *board, u8 *buffer, size_t length,
40-
int *end, size_t *bytes_read);
41-
int ines_write(struct gpib_board *board, u8 *buffer, size_t length,
42-
int send_eoi, size_t *bytes_written);
43-
int ines_accel_read(struct gpib_board *board, u8 *buffer, size_t length,
44-
int *end, size_t *bytes_read);
45-
int ines_accel_write(struct gpib_board *board, u8 *buffer, size_t length,
46-
int send_eoi, size_t *bytes_written);
47-
int ines_command(struct gpib_board *board, u8 *buffer, size_t length, size_t *bytes_written);
48-
int ines_take_control(struct gpib_board *board, int synchronous);
49-
int ines_go_to_standby(struct gpib_board *board);
50-
int ines_request_system_control(struct gpib_board *board, int request_control);
51-
void ines_interface_clear(struct gpib_board *board, int assert);
52-
void ines_remote_enable(struct gpib_board *board, int enable);
53-
int ines_enable_eos(struct gpib_board *board, u8 eos_byte, int compare_8_bits);
54-
void ines_disable_eos(struct gpib_board *board);
55-
unsigned int ines_update_status(struct gpib_board *board, unsigned int clear_mask);
56-
int ines_primary_address(struct gpib_board *board, unsigned int address);
57-
int ines_secondary_address(struct gpib_board *board, unsigned int address, int enable);
58-
int ines_parallel_poll(struct gpib_board *board, u8 *result);
59-
void ines_parallel_poll_configure(struct gpib_board *board, u8 config);
60-
void ines_parallel_poll_response(struct gpib_board *board, int ist);
61-
void ines_serial_poll_response(struct gpib_board *board, u8 status);
62-
u8 ines_serial_poll_status(struct gpib_board *board);
63-
int ines_line_status(const struct gpib_board *board);
64-
int ines_t1_delay(struct gpib_board *board, unsigned int nano_sec);
65-
void ines_return_to_local(struct gpib_board *board);
66-
67-
// interrupt service routines
68-
irqreturn_t ines_pci_interrupt(int irq, void *arg);
69-
irqreturn_t ines_interrupt(struct gpib_board *board);
70-
71-
// utility functions
72-
void ines_free_private(struct gpib_board *board);
73-
int ines_generic_attach(struct gpib_board *board);
74-
void ines_online(struct ines_priv *priv, const struct gpib_board *board, int use_accel);
75-
void ines_set_xfer_counter(struct ines_priv *priv, unsigned int count);
76-
7738
/* inb/outb wrappers */
7839
static inline unsigned int ines_inb(struct ines_priv *priv, unsigned int register_number)
7940
{
@@ -88,11 +49,6 @@ static inline void ines_outb(struct ines_priv *priv, unsigned int value,
8849
register_number * priv->nec7210_priv.offset);
8950
}
9051

91-
// pcmcia init/cleanup
92-
93-
int ines_pcmcia_init_module(void);
94-
void ines_pcmcia_cleanup_module(void);
95-
9652
enum ines_regs {
9753
// read
9854
FIFO_STATUS = 0x8,

0 commit comments

Comments
 (0)