Skip to content

Instantly share code, notes, and snippets.

@greyltc
Created January 17, 2020 17:54
Show Gist options
  • Save greyltc/3571d194a506c040e3a05de6867eb814 to your computer and use it in GitHub Desktop.
Save greyltc/3571d194a506c040e3a05de6867eb814 to your computer and use it in GitHub Desktop.
a patch to get the linux gpib kernel driver working (thank you robots)
Index: linux-gpib-kernel/drivers/gpib/fmh_gpib/fmh_gpib.c
===================================================================
--- linux-gpib-kernel/drivers/gpib/fmh_gpib/fmh_gpib.c (revision 1862)
+++ linux-gpib-kernel/drivers/gpib/fmh_gpib/fmh_gpib.c (working copy)
@@ -982,7 +982,7 @@
}
/* Match callback for driver_find_device */
-static int fmh_gpib_device_match(struct device *dev, void *data)
+static int fmh_gpib_device_match(struct device *dev, const void *data)
{
const gpib_board_config_t *config = data;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment