[PATCH v6 3/6] mfd: cros_ec: Add cros_ec_get_host_event

2016-03-19 Thread Tomeu Vizoso
This function returns the code for the host event that triggered the interrupt that is being currently handled. Is to be used by observers of the event_notifier in the EC device. Signed-off-by: Tomeu Vizoso --- Changes in v6: - Return 0 if the EC doesn't support

[PATCH v6 3/6] mfd: cros_ec: Add cros_ec_get_host_event

2016-03-19 Thread Tomeu Vizoso
This function returns the code for the host event that triggered the interrupt that is being currently handled. Is to be used by observers of the event_notifier in the EC device. Signed-off-by: Tomeu Vizoso --- Changes in v6: - Return 0 if the EC doesn't support MKBP, as expected by callers.