]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: lights: convert to bundle driver
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 12 Feb 2016 10:38:31 +0000 (16:08 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Mon, 15 Feb 2016 22:53:43 +0000 (14:53 -0800)
commit69564dfeacf0728b60e3b2c85b357bc63213116c
treee11dca7891e2af5881b9d684d17bd6859398fcd8
parent6ce0eed783bd6b507fb029323d30d0e9a9d38da2
greybus: lights: convert to bundle driver

Convert the legacy lights 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.

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