The first byte of a system event payload says whether a charger is available or not. Ignore it. Signed-off-by: Julian Andres Klode <jak@xxxxxxxxxxxxx> --- drivers/staging/nvec/nvec_event.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/staging/nvec/nvec_event.c b/drivers/staging/nvec/nvec_event.c index 20cc179..5e5c948 100644 --- a/drivers/staging/nvec/nvec_event.c +++ b/drivers/staging/nvec/nvec_event.c @@ -37,8 +37,7 @@ static int nvec_event_notifier(struct notifier_block *nb, struct nvec_sys_event *event = data; if (event_type != 0x85 || (event->command & (NVEC_VAR_SIZE << 5)) == 0 - || event->length != 4 || event->payload[0] != 1 - || event->payload[1] != 0) + || event->length != 4 || event->payload[1] != 0) return NOTIFY_DONE; switch (event->payload[2]) { -- 1.7.5.4 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel