]> 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)
commitcf3eb9ca2334670812f7bb163e53d2d2374d0117
treeb066f0a692454be661907d6ab91b4194f09c0fca
parent4dd66a9a53da71a651d64240fb9137fa9a5ee560
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