mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 16:44:58 +02:00
staging: gpib: tnt4882: struct gpib_interface
Using Linux code style for struct gpib_interface. Adhering to Linux code style. Reported by checkpatch.pl In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef. Signed-off-by: Michael Rubin <matchstick@neverthere.org> Link: https://lore.kernel.org/r/20250417003246.84445-18-matchstick@neverthere.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
575fb9c3fa
commit
124248c48d
|
|
@ -1122,7 +1122,7 @@ static int tnt4882_pci_probe(struct pci_dev *dev, const struct pci_device_id *id
|
|||
return 0;
|
||||
}
|
||||
|
||||
static gpib_interface_t ni_pci_interface = {
|
||||
static struct gpib_interface ni_pci_interface = {
|
||||
.name = "ni_pci",
|
||||
.attach = ni_pci_attach,
|
||||
.detach = ni_pci_detach,
|
||||
|
|
@ -1150,7 +1150,7 @@ static gpib_interface_t ni_pci_interface = {
|
|||
.return_to_local = tnt4882_return_to_local,
|
||||
};
|
||||
|
||||
static gpib_interface_t ni_pci_accel_interface = {
|
||||
static struct gpib_interface ni_pci_accel_interface = {
|
||||
.name = "ni_pci_accel",
|
||||
.attach = ni_pci_attach,
|
||||
.detach = ni_pci_detach,
|
||||
|
|
@ -1178,7 +1178,7 @@ static gpib_interface_t ni_pci_accel_interface = {
|
|||
.return_to_local = tnt4882_return_to_local,
|
||||
};
|
||||
|
||||
static gpib_interface_t ni_isa_interface = {
|
||||
static struct gpib_interface ni_isa_interface = {
|
||||
.name = "ni_isa",
|
||||
.attach = ni_tnt_isa_attach,
|
||||
.detach = ni_isa_detach,
|
||||
|
|
@ -1206,7 +1206,7 @@ static gpib_interface_t ni_isa_interface = {
|
|||
.return_to_local = tnt4882_return_to_local,
|
||||
};
|
||||
|
||||
static gpib_interface_t ni_nat4882_isa_interface = {
|
||||
static struct gpib_interface ni_nat4882_isa_interface = {
|
||||
.name = "ni_nat4882_isa",
|
||||
.attach = ni_nat4882_isa_attach,
|
||||
.detach = ni_isa_detach,
|
||||
|
|
@ -1234,7 +1234,7 @@ static gpib_interface_t ni_nat4882_isa_interface = {
|
|||
.return_to_local = tnt4882_return_to_local,
|
||||
};
|
||||
|
||||
static gpib_interface_t ni_nec_isa_interface = {
|
||||
static struct gpib_interface ni_nec_isa_interface = {
|
||||
.name = "ni_nec_isa",
|
||||
.attach = ni_nec_isa_attach,
|
||||
.detach = ni_isa_detach,
|
||||
|
|
@ -1262,7 +1262,7 @@ static gpib_interface_t ni_nec_isa_interface = {
|
|||
.return_to_local = tnt4882_return_to_local,
|
||||
};
|
||||
|
||||
static gpib_interface_t ni_isa_accel_interface = {
|
||||
static struct gpib_interface ni_isa_accel_interface = {
|
||||
.name = "ni_isa_accel",
|
||||
.attach = ni_tnt_isa_attach,
|
||||
.detach = ni_isa_detach,
|
||||
|
|
@ -1290,7 +1290,7 @@ static gpib_interface_t ni_isa_accel_interface = {
|
|||
.return_to_local = tnt4882_return_to_local,
|
||||
};
|
||||
|
||||
static gpib_interface_t ni_nat4882_isa_accel_interface = {
|
||||
static struct gpib_interface ni_nat4882_isa_accel_interface = {
|
||||
.name = "ni_nat4882_isa_accel",
|
||||
.attach = ni_nat4882_isa_attach,
|
||||
.detach = ni_isa_detach,
|
||||
|
|
@ -1318,7 +1318,7 @@ static gpib_interface_t ni_nat4882_isa_accel_interface = {
|
|||
.return_to_local = tnt4882_return_to_local,
|
||||
};
|
||||
|
||||
static gpib_interface_t ni_nec_isa_accel_interface = {
|
||||
static struct gpib_interface ni_nec_isa_accel_interface = {
|
||||
.name = "ni_nec_isa_accel",
|
||||
.attach = ni_nec_isa_attach,
|
||||
.detach = ni_isa_detach,
|
||||
|
|
@ -1377,8 +1377,8 @@ MODULE_DEVICE_TABLE(pnp, tnt4882_pnp_table);
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_GPIB_PCMCIA
|
||||
static gpib_interface_t ni_pcmcia_interface;
|
||||
static gpib_interface_t ni_pcmcia_accel_interface;
|
||||
static struct gpib_interface ni_pcmcia_interface;
|
||||
static struct gpib_interface ni_pcmcia_accel_interface;
|
||||
static int __init init_ni_gpib_cs(void);
|
||||
static void __exit exit_ni_gpib_cs(void);
|
||||
#endif
|
||||
|
|
@ -1775,7 +1775,7 @@ static void ni_pcmcia_detach(struct gpib_board *board)
|
|||
tnt4882_free_private(board);
|
||||
}
|
||||
|
||||
static gpib_interface_t ni_pcmcia_interface = {
|
||||
static struct gpib_interface ni_pcmcia_interface = {
|
||||
.name = "ni_pcmcia",
|
||||
.attach = ni_pcmcia_attach,
|
||||
.detach = ni_pcmcia_detach,
|
||||
|
|
@ -1803,7 +1803,7 @@ static gpib_interface_t ni_pcmcia_interface = {
|
|||
.return_to_local = tnt4882_return_to_local,
|
||||
};
|
||||
|
||||
static gpib_interface_t ni_pcmcia_accel_interface = {
|
||||
static struct gpib_interface ni_pcmcia_accel_interface = {
|
||||
.name = "ni_pcmcia_accel",
|
||||
.attach = ni_pcmcia_attach,
|
||||
.detach = ni_pcmcia_detach,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user