@@ -146,7 +146,7 @@ struct usb_gpib_priv { /* private data to the device */
146
146
147
147
#define GPIB_DEV (((struct usb_gpib_priv *)board->private_data)->dev)
148
148
149
- static void show_status (gpib_board_t * board )
149
+ static void show_status (struct gpib_board * board )
150
150
{
151
151
DIA_LOG (2 , "# - buffer_length %d\n" , board -> buffer_length );
152
152
DIA_LOG (2 , "# - status %lx\n" , board -> status );
@@ -184,8 +184,8 @@ static struct mutex minors_lock; /* operations on usb_minors are to be prote
184
184
struct usb_skel ;
185
185
static ssize_t skel_do_write (struct usb_skel * , const char * , size_t );
186
186
static ssize_t skel_do_read (struct usb_skel * , char * , size_t );
187
- static int skel_do_open (gpib_board_t * , int );
188
- static int skel_do_release (gpib_board_t * );
187
+ static int skel_do_open (struct gpib_board * , int );
188
+ static int skel_do_release (struct gpib_board * );
189
189
190
190
/*
191
191
* usec_diff : take difference in MICROsec between two 'timespec'
@@ -237,7 +237,7 @@ static int write_loop(void *dev, char *msg, int leng)
237
237
* it has to be given explicitly.
238
238
*/
239
239
240
- static int send_command (gpib_board_t * board , char * msg , int leng )
240
+ static int send_command (struct gpib_board * board , char * msg , int leng )
241
241
{
242
242
char buffer [64 ];
243
243
int nchar ;
@@ -278,7 +278,7 @@ static int send_command(gpib_board_t *board, char *msg, int leng)
278
278
*
279
279
*/
280
280
281
- static int set_control_line (gpib_board_t * board , int line , int value )
281
+ static int set_control_line (struct gpib_board * board , int line , int value )
282
282
{
283
283
char msg [] = USB_GPIB_SET_LINES ;
284
284
int retval ;
@@ -309,7 +309,7 @@ static int set_control_line(gpib_board_t *board, int line, int value)
309
309
* @char_buf: the routine private data structure
310
310
*/
311
311
312
- static int one_char (gpib_board_t * board , struct char_buf * b )
312
+ static int one_char (struct gpib_board * board , struct char_buf * b )
313
313
{
314
314
struct timespec64 before , after ;
315
315
@@ -343,7 +343,7 @@ static int one_char(gpib_board_t *board, struct char_buf *b)
343
343
* not supported.
344
344
*/
345
345
346
- static void set_timeout (gpib_board_t * board )
346
+ static void set_timeout (struct gpib_board * board )
347
347
{
348
348
int n , val ;
349
349
char command [sizeof (USB_GPIB_TTMO ) + 6 ];
@@ -391,7 +391,7 @@ static void set_timeout(gpib_board_t *board)
391
391
* detach() will be called. Always.
392
392
*/
393
393
394
- static int usb_gpib_attach (gpib_board_t * board , const gpib_board_config_t * config )
394
+ static int usb_gpib_attach (struct gpib_board * board , const gpib_board_config_t * config )
395
395
{
396
396
int retval , j ;
397
397
u32 base = config -> ibbase ;
@@ -510,7 +510,7 @@ static int usb_gpib_attach(gpib_board_t *board, const gpib_board_config_t *confi
510
510
*
511
511
*/
512
512
513
- static void usb_gpib_detach (gpib_board_t * board )
513
+ static void usb_gpib_detach (struct gpib_board * board )
514
514
{
515
515
int retval ;
516
516
@@ -537,7 +537,7 @@ static void usb_gpib_detach(gpib_board_t *board)
537
537
* Other functions follow in alphabetical order
538
538
*/
539
539
/* command */
540
- static int usb_gpib_command (gpib_board_t * board ,
540
+ static int usb_gpib_command (struct gpib_board * board ,
541
541
u8 * buffer ,
542
542
size_t length ,
543
543
size_t * bytes_written )
@@ -570,7 +570,7 @@ static int usb_gpib_command(gpib_board_t *board,
570
570
* Cannot do nothing here, but remember for future use.
571
571
*/
572
572
573
- static void usb_gpib_disable_eos (gpib_board_t * board )
573
+ static void usb_gpib_disable_eos (struct gpib_board * board )
574
574
{
575
575
((struct usb_gpib_priv * )board -> private_data )-> eos_flags &= ~REOS ;
576
576
DIA_LOG (1 , "done: %x\n" ,
@@ -586,7 +586,7 @@ static void usb_gpib_disable_eos(gpib_board_t *board)
586
586
*
587
587
*/
588
588
589
- static int usb_gpib_enable_eos (gpib_board_t * board ,
589
+ static int usb_gpib_enable_eos (struct gpib_board * board ,
590
590
u8 eos_byte ,
591
591
int compare_8_bits )
592
592
{
@@ -606,7 +606,7 @@ static int usb_gpib_enable_eos(gpib_board_t *board,
606
606
* @board: the gpib_board data area for this gpib interface
607
607
*/
608
608
609
- static int usb_gpib_go_to_standby (gpib_board_t * board )
609
+ static int usb_gpib_go_to_standby (struct gpib_board * board )
610
610
{
611
611
int retval = set_control_line (board , IB_BUS_ATN , 0 );
612
612
@@ -628,7 +628,7 @@ static int usb_gpib_go_to_standby(gpib_board_t *board)
628
628
* the de-assert request.
629
629
*/
630
630
631
- static void usb_gpib_interface_clear (gpib_board_t * board , int assert )
631
+ static void usb_gpib_interface_clear (struct gpib_board * board , int assert )
632
632
{
633
633
int retval = 0 ;
634
634
@@ -655,7 +655,7 @@ static void usb_gpib_interface_clear(gpib_board_t *board, int assert)
655
655
#define WQH head
656
656
#define WQE entry
657
657
658
- static int usb_gpib_line_status (const gpib_board_t * board )
658
+ static int usb_gpib_line_status (const struct gpib_board * board )
659
659
{
660
660
int buffer ;
661
661
int line_status = VALID_ALL ; /* all lines will be read */
@@ -686,7 +686,7 @@ static int usb_gpib_line_status(const gpib_board_t *board)
686
686
msleep (sleep );
687
687
}
688
688
689
- buffer = send_command ((gpib_board_t * )board , USB_GPIB_STATUS , 0 );
689
+ buffer = send_command ((struct gpib_board * )board , USB_GPIB_STATUS , 0 );
690
690
691
691
if (buffer < 0 ) {
692
692
dev_err (board -> gpib_dev , "line status read failed with %d\n" , buffer );
@@ -717,7 +717,7 @@ static int usb_gpib_line_status(const gpib_board_t *board)
717
717
718
718
/* parallel_poll */
719
719
720
- static int usb_gpib_parallel_poll (gpib_board_t * board , uint8_t * result )
720
+ static int usb_gpib_parallel_poll (struct gpib_board * board , uint8_t * result )
721
721
{
722
722
/* request parallel poll asserting ATN | EOI;
723
723
* we suppose ATN already asserted
@@ -744,7 +744,7 @@ static int usb_gpib_parallel_poll(gpib_board_t *board, uint8_t *result)
744
744
745
745
/* read */
746
746
747
- static int usb_gpib_read (gpib_board_t * board ,
747
+ static int usb_gpib_read (struct gpib_board * board ,
748
748
u8 * buffer ,
749
749
size_t length ,
750
750
int * end ,
@@ -908,7 +908,7 @@ static int usb_gpib_read(gpib_board_t *board,
908
908
909
909
/* remote_enable */
910
910
911
- static void usb_gpib_remote_enable (gpib_board_t * board , int enable )
911
+ static void usb_gpib_remote_enable (struct gpib_board * board , int enable )
912
912
{
913
913
int retval ;
914
914
@@ -921,7 +921,7 @@ static void usb_gpib_remote_enable(gpib_board_t *board, int enable)
921
921
922
922
/* request_system_control */
923
923
924
- static void usb_gpib_request_system_control (gpib_board_t * board ,
924
+ static void usb_gpib_request_system_control (struct gpib_board * board ,
925
925
int request_control )
926
926
{
927
927
if (request_control )
@@ -935,7 +935,7 @@ static void usb_gpib_request_system_control(gpib_board_t *board,
935
935
/* take_control */
936
936
/* beware: the sync flag is ignored; what is its real meaning? */
937
937
938
- static int usb_gpib_take_control (gpib_board_t * board , int sync )
938
+ static int usb_gpib_take_control (struct gpib_board * board , int sync )
939
939
{
940
940
int retval ;
941
941
@@ -950,7 +950,7 @@ static int usb_gpib_take_control(gpib_board_t *board, int sync)
950
950
951
951
/* update_status */
952
952
953
- static unsigned int usb_gpib_update_status (gpib_board_t * board ,
953
+ static unsigned int usb_gpib_update_status (struct gpib_board * board ,
954
954
unsigned int clear_mask )
955
955
{
956
956
/* There is nothing we can do here, I guess */
@@ -965,7 +965,7 @@ static unsigned int usb_gpib_update_status(gpib_board_t *board,
965
965
/* write */
966
966
/* beware: DLE characters are not escaped - can only send ASCII data */
967
967
968
- static int usb_gpib_write (gpib_board_t * board ,
968
+ static int usb_gpib_write (struct gpib_board * board ,
969
969
u8 * buffer ,
970
970
size_t length ,
971
971
int send_eoi ,
@@ -1008,33 +1008,33 @@ static int usb_gpib_write(gpib_board_t *board,
1008
1008
1009
1009
/* parallel_poll configure */
1010
1010
1011
- static void usb_gpib_parallel_poll_configure (gpib_board_t * board ,
1011
+ static void usb_gpib_parallel_poll_configure (struct gpib_board * board ,
1012
1012
uint8_t configuration )
1013
1013
{
1014
1014
}
1015
1015
1016
1016
/* parallel_poll_response */
1017
1017
1018
- static void usb_gpib_parallel_poll_response (gpib_board_t * board , int ist )
1018
+ static void usb_gpib_parallel_poll_response (struct gpib_board * board , int ist )
1019
1019
{
1020
1020
}
1021
1021
1022
1022
/* primary_address */
1023
1023
1024
- static int usb_gpib_primary_address (gpib_board_t * board , unsigned int address )
1024
+ static int usb_gpib_primary_address (struct gpib_board * board , unsigned int address )
1025
1025
{
1026
1026
return 0 ;
1027
1027
}
1028
1028
1029
1029
/* return_to_local */
1030
1030
1031
- static void usb_gpib_return_to_local (gpib_board_t * board )
1031
+ static void usb_gpib_return_to_local (struct gpib_board * board )
1032
1032
{
1033
1033
}
1034
1034
1035
1035
/* secondary_address */
1036
1036
1037
- static int usb_gpib_secondary_address (gpib_board_t * board ,
1037
+ static int usb_gpib_secondary_address (struct gpib_board * board ,
1038
1038
unsigned int address ,
1039
1039
int enable )
1040
1040
{
@@ -1043,20 +1043,20 @@ static int usb_gpib_secondary_address(gpib_board_t *board,
1043
1043
1044
1044
/* serial_poll_response */
1045
1045
1046
- static void usb_gpib_serial_poll_response (gpib_board_t * board , uint8_t status )
1046
+ static void usb_gpib_serial_poll_response (struct gpib_board * board , uint8_t status )
1047
1047
{
1048
1048
}
1049
1049
1050
1050
/* serial_poll_status */
1051
1051
1052
- static uint8_t usb_gpib_serial_poll_status (gpib_board_t * board )
1052
+ static uint8_t usb_gpib_serial_poll_status (struct gpib_board * board )
1053
1053
{
1054
1054
return 0 ;
1055
1055
}
1056
1056
1057
1057
/* t1_delay */
1058
1058
1059
- static unsigned int usb_gpib_t1_delay (gpib_board_t * board , unsigned int nano_sec )
1059
+ static unsigned int usb_gpib_t1_delay (struct gpib_board * board , unsigned int nano_sec )
1060
1060
{
1061
1061
return 0 ;
1062
1062
}
@@ -1295,7 +1295,7 @@ static void skel_delete(struct kref *kref)
1295
1295
* skel_do_open() - to be called by usb_gpib_attach
1296
1296
*/
1297
1297
1298
- static int skel_do_open (gpib_board_t * board , int subminor )
1298
+ static int skel_do_open (struct gpib_board * board , int subminor )
1299
1299
{
1300
1300
struct usb_skel * dev ;
1301
1301
struct usb_interface * interface ;
@@ -1332,7 +1332,7 @@ static int skel_do_open(gpib_board_t *board, int subminor)
1332
1332
* skel_do_release() - to be called by usb_gpib_detach
1333
1333
*/
1334
1334
1335
- static int skel_do_release (gpib_board_t * board )
1335
+ static int skel_do_release (struct gpib_board * board )
1336
1336
{
1337
1337
struct usb_skel * dev ;
1338
1338
0 commit comments