Skip to content

Commit

Permalink
Import version 0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansa89 committed May 11, 2016
1 parent c8f323c commit 5fc17ae
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions lcdtopgun.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,18 @@
*
* History:
*
* 2011-11-30 - 0.3.1: (Ansa89) Fix "info" macro
* - Rewrote the "info" macro (for aesthetics reasons).
* - Use "printk" instead of "info" in "usb_topgun_init()".
* - Tested up to linux kernel 3.1.4.
*
* 2011-11-17 - 0.3: (Ansa89) General update
* - Compiles and runs on newer kernels (tested up to 3.1.1).
*
* 2008-04-14 - 0.2: (Adolfo R. Brandes) General update
* - Compiles and runs on newer kernels (tested up to 2.6.24).
* - Rewrote the setting of bits, based on xpad360.
* - Added module option debug=1
* - Added module option debug=1.
*/

/*
Expand Down Expand Up @@ -57,15 +62,15 @@ MODULE_PARM_DESC(debug, "Debugging");
/*
* Version Information
*/
#define DRIVER_VERSION "v0.3"
#define DRIVER_VERSION "v0.3.1"
#define DRIVER_AUTHOR "Christophe Thibault <[email protected]>"
#define DRIVER_DESC "USB EMS LCD TopGun driver"
#define DRIVER_LICENSE "GPL"

/*
* Missing macro (at least on linux >= 3.0)
*/
#define info(format, arg...) printk(KERN_INFO "%s: " format "\n" , __FILE__ , ## arg)
#define info(format, arg...) printk(KERN_INFO format "\n" , ## arg)

MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
Expand Down Expand Up @@ -132,7 +137,7 @@ static void usb_topgun_irq(struct urb *urb
#endif

if (debug) {
printk(KERN_INFO "topgun_debug: data :");
printk(KERN_INFO "lcdtopgun_debug: data :");
for(i = 0; i < 20; i++) {
printk("0x%02x ", data[i]);
}
Expand Down Expand Up @@ -339,7 +344,7 @@ static int __init usb_topgun_init(void)
{
int retval = usb_register(&usb_topgun_driver);
if (retval == 0)
info(DRIVER_DESC " " DRIVER_VERSION " initialized" );
printk(KERN_INFO "%s: " DRIVER_DESC " " DRIVER_VERSION " initialized\n" , usb_topgun_driver.name);
return retval;
}

Expand Down

0 comments on commit 5fc17ae

Please sign in to comment.