]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: hid: convert to bundle driver
authorJohan Hovold <johan@hovoldconsulting.com>
Thu, 21 Jan 2016 16:34:23 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 22 Jan 2016 06:46:38 +0000 (22:46 -0800)
commit4324282d90cb02e041753240780c516f9cfe5b10
tree7272da6ce3a44a3e0aec0bccaa85af370574f057
parent5dd8cc5370dbf68f17ed9443be6bcc54afbef204
greybus: hid: convert to bundle driver

Convert the legacy HID protocol driver to a bundle driver.

This also fixes a potential crash should a (malicious) module have sent
an early request before the private data had been initialised.

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/hid.c
drivers/staging/greybus/legacy.c