]> git.baikalelectronics.ru Git - kernel.git/commit
HSI: hsi: Rework hsi_event interface
authorCarlos Chinea <carlos.chinea@nokia.com>
Wed, 11 Apr 2012 07:55:53 +0000 (10:55 +0300)
committerCarlos Chinea <carlos.chinea@nokia.com>
Mon, 23 Apr 2012 11:23:32 +0000 (14:23 +0300)
commitcf18baae2471c1e13b63e449f55391f1d4d0f7f8
treeb066f0a692454be661907d6ab91b4194f09c0fca
parentf9b028b22c367a37a0b2f819abb9f0e31c7d7503
HSI: hsi: Rework hsi_event interface

Remove custom hack and make use of the notifier chain interfaces for
delivering events from the ports to their associated clients.
Clients that want to receive port events need to register their callbacks
using hsi_register_port_event(). The callbacks can be called in interrupt
context. Use hsi_unregestier_port_event() to undo the registration.

Signed-off-by: Carlos Chinea <carlos.chinea@nokia.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/hsi/hsi.c
include/linux/hsi/hsi.h