OSDN Git Service

platform/chrome: wilco_ec: Add debugfs test_event file
authorDaniel Campello <campello@chromium.org>
Tue, 24 Sep 2019 20:37:16 +0000 (14:37 -0600)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Tue, 1 Oct 2019 16:07:28 +0000 (18:07 +0200)
commite6679fd1e2fc253f62bbea13b76d9b6a8f90c68e
treef88ec31224ec1b52ccb456ca161a86b243faee9c
parent54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c
platform/chrome: wilco_ec: Add debugfs test_event file

This change introduces a new debugfs file 'test_event' that when written
to causes the EC to generate a test event.
This adds a second sub cmd for the test event, and pulls out send_ec_cmd
to be a common helper between h1_gpio_get and test_event_set.

Signed-off-by: Daniel Campello <campello@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Nick Crews <ncrews@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/wilco_ec/debugfs.c