]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
greybus: vibrator-gb: add vibrator driver
authorGreg Kroah-Hartman <greg@kroah.com>
Tue, 18 Nov 2014 00:03:34 +0000 (16:03 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 18 Nov 2014 00:03:34 +0000 (16:03 -0800)
commitac4029fb60abd00f63cfb4c626f1653a918dcc66
tree509e3c650fd16763a47309f59f8b7c9eea7eb680
parent68190676b78a4736081e13d67d3d5bc2a519df5c
greybus: vibrator-gb: add vibrator driver

This driver implements the Greybus vibrator protocol, as defined in the
Greybus protocol specification.  It interacts to userspace with a single
sysfs file, "timeout", and a separate "class" called "vibrator".  That
interface can/should be changed in the future depending on what Android
wants for its HAL, but for now should be good enough to test with.

There are some changes needed to kernel_ver.h to support some
sysfs/driver core changes that happened after the 3.10 kernel was
released to try to make the code simpler.  Even with those changes,
there are #ifdefs in the code to do different things depending on the
kernel version to implement the same userspace api.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/Makefile
drivers/staging/greybus/kernel_ver.h
drivers/staging/greybus/protocol.c
drivers/staging/greybus/protocol.h
drivers/staging/greybus/vibrator-gb.c [new file with mode: 0644]