Fixed a compiler warning, updated README

This commit is contained in:
Christoph Haas 2016-10-28 11:23:12 +02:00
parent 5b8792ce50
commit ce7d4ded68
3 changed files with 16 additions and 13 deletions

View File

@ -8,9 +8,9 @@ MODULE_NAME := perixxkbd
MODULE_VER := 1.0.0
ifeq ($(DEBUG),y)
DBGFLAGS = -O -g -DML_DEBUG
DBGFLAGS = -O -g -DML_DEBUG -Wall -Wextra
else
DBGFLAGS = -O2
DBGFLAGS = -O2 -Wall
endif
ccflags-y += $(DBGFLAGS)

View File

@ -7,29 +7,33 @@ Written for the Perixx PX-1800 USB Keyboard: [Perixx PX-1800 Keyboard](http://ww
Original base: swoogan.blogspot.de/2014/09/azio-l70-keyboard-linux-driver.html
> NOTE: Makefile and instructions are only tested on Ubuntu 16.04.
> NOTE: Makefile and instructions are only tested on Ubuntu 16.04 and Archlinux 2016.10 (Kernel 4.8.4)
# Installation ##
## DKMS ##
# debian-based:
sudo apt-get install mercurial build-essential linux-headers-generic dkms
sudo apt-get install git build-essential linux-headers-generic dkms
# fedora:
sudo dnf install kernel-devel kernel-headers
sudo dnf install git kernel-devel kernel-headers
sudo dnf groupinstall "Development Tools" "Development Libraries"
hg clone https://bitbucket.org/Swoogan/aziokbd
cd aziokbd
sudo ./install.sh dkms
# arch:
sudo pacman -S git base-devel linux-headers dkms
# on all platforms:
git clone https://git.sprinternet.at/h44z/perixx1800keyboard.git
cd perixx1800keyboard
sudo ./install.sh dkms
## Manual Install ##
sudo apt-get install mercurial build-essential linux-headers-generic
hg clone https://bitbucket.org/Swoogan/aziokbd
cd aziokbd
# Dependencies:
git build-essential linux-headers dkms
git clone https://git.sprinternet.at/h44z/perixx1800keyboard.git
cd perixx1800keyboard
sudo ./install.sh
# Blacklisting #
@ -56,7 +60,7 @@ If you find that the generic USB driver is still taking the device, try changing
## Compiled into Kernel ##
If the generic USB hid driver is compiled into the kernel, then the driver is not loaded as a module and setting the option via `modprobe` will not work. In this case you must pass the option to the driver via the grub boot loader.
Create a new file in `/etc/default/grub.d/`. For example, you might call it `aziokbd.conf`. (If your grub package doesn't have this directory, just modify the generic `/etc/default/grub` configuration file):
Create a new file in `/etc/default/grub.d/`. For example, you might call it `perixx1800keyboard.conf`. (If your grub package doesn't have this directory, just modify the generic `/etc/default/grub` configuration file):
GRUB_CMDLINE_LINUX_DEFAULT='usbhid.quirks=0x0c45:0x7603:0x4'

View File

@ -114,7 +114,6 @@ static void usb_kbd_irq(struct urb *urb)
{
struct usb_kbd *kbd = urb->context;
int i, j, offset;
char keys[9];
switch (urb->status) {
case 0: /* success */