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)
commitec1c56ff813a198d656d4aa42e5de03e45751bf8
treeb066f0a692454be661907d6ab91b4194f09c0fca
parent6f02b9e9b44a3bfc0046da3ff2707dae0b5e2f30
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