Commit Graph

7 Commits (v0.1.1)

Author SHA1 Message Date
nirenjan dbac37b8ac Add README for kernel module 2015-12-01 08:29:12 -08:00
nirenjan b72eba6d4c Fix permissions on device attribute files
Build fails on Linux kernel version >= 4.0.0, due to a permissions check
disallowing S_IWOTH.
2015-12-01 08:23:28 -08:00
nirenjan e54dfd94d2 Use dev_err/dev_dbg when device is available
Previous commit used pr_err/pr_debug because it mistakenly assumed that
the device pointer was not available. This ensures that the driver uses
the dev_err and dev_dbg functions wherever it can.
2014-10-17 14:43:22 +00:00
nirenjan b752c3e46b Replace err/dbg macros with pr_err/pr_debug
err macro has been removed entirely from the Linux kernel starting from
around v3.5, while the dbg macro has been deprecated. Since the lines
that were using err/dbg did not have access to the device, simply log as
a generic kernel log.
2014-10-17 14:22:57 +00:00
Nirenjan Krishnan 2fd5f29ade Correct handling of URB for stick axes - closes #1
The le32_to_cpu function doesn't quite work for some reason. Manually
writing the 32-bit conversion seems to fix the axes reporting for
ABS_X, ABS_Y and ABS_RZ.
2012-10-25 00:01:05 -07:00
nirenjan 75346c745a Fix params to input_set_abs_params - should fix #1
This still could use a bit of investigation to see why
input_set_abs_params called with non-zero values for fuzz and flat
causes axis motion to be ignored, although it may be a driver
subsystem issue in Linux.
2012-10-24 15:14:33 -07:00
Nirenjan Krishnan 76aaf6a6d8 Rename driver folder to kernel_module
Due to plans to scrap the kernel module approach and go with a full-fledged
userspace application, this commit renames the driver folder to kernel_module
so the folder contents are clear.
2012-10-14 12:55:52 -07:00