platform/chrome: fix kernel-doc warnings for panic notifier
authorTzung-Bi Shih <tzungbi@kernel.org>
Wed, 11 Jan 2023 05:57:25 +0000 (13:57 +0800)
committerTzung-Bi Shih <tzungbi@kernel.org>
Fri, 13 Jan 2023 01:30:49 +0000 (09:30 +0800)
Fix the following kernel-doc warnings:

$ ./scripts/kernel-doc -none drivers/platform/chrome/*
drivers/platform/chrome/cros_ec_debugfs.c:54: warning: Function
parameter or member 'notifier_panic' not described in 'cros_ec_debugfs'

$ ./scripts/kernel-doc -none include/linux/platform_data/cros_ec_proto.h
include/linux/platform_data/cros_ec_proto.h:187: warning: Function
parameter or member 'panic_notifier' not described in 'cros_ec_device'

Cc: Rob Barnes <robbarnes@google.com>
Fixes: d90fa2c64d59 ("platform/chrome: cros_ec: Poll EC log on EC panic")
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Reviewed-by: Guenter Roeck <groweck@chromium.org>
Link: https://lore.kernel.org/r/20230111055728.708990-2-tzungbi@kernel.org
drivers/platform/chrome/cros_ec_debugfs.c
include/linux/platform_data/cros_ec_proto.h

index 34f7b46f8761df5f3f22c7a1d9be641213280840..a98c529d8c69801c176e1ad363268aff17872da5 100644 (file)
@@ -38,6 +38,8 @@ static DECLARE_WAIT_QUEUE_HEAD(cros_ec_debugfs_log_wq);
  * @log_mutex: mutex to protect circular buffer
  * @log_poll_work: recurring task to poll EC for new console log data
  * @panicinfo_blob: panicinfo debugfs blob
+ * @notifier_panic: notifier_block to let kernel to flush buffered log
+ *                  when EC panic
  */
 struct cros_ec_debugfs {
        struct cros_ec_dev *ec;
index 017d502ed66eb36d6dd524a2e12b67a99cd3acf6..a4a3fec15504867d334122b8259923fe934c7958 100644 (file)
@@ -140,6 +140,7 @@ struct cros_ec_command {
  *      main EC.
  * @pd: The platform_device used by the mfd driver to interface with the
  *      PD behind an EC.
+ * @panic_notifier: EC panic notifier.
  */
 struct cros_ec_device {
        /* These are used by other drivers that want to talk to the EC */