platform/chrome: cros_ec_debugfs: Control uptime information request
authorGwendal Grignou <gwendal@chromium.org>
Tue, 26 May 2020 18:53:28 +0000 (11:53 -0700)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 19 Jun 2020 17:16:18 +0000 (19:16 +0200)
commitd378cdd0113878e3860f954d16dd3e91defb1492
treeb3d846bb6e27a9fca41ac413e712bce23603d581
parentb3a9e3b9622ae10064826dccb4f7a52bd88c7407
platform/chrome: cros_ec_debugfs: Control uptime information request

When EC does not support uptime command (EC_CMD_GET_UPTIME_INFO),
do not create the uptime sysfs entry point.
User space application will not probe the file needlessly.

The EC console log will not contain EC_CMD_GET_UPTIME_INFO anymore.

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_ec_debugfs.c