aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/cros_ec_dev.h
diff options
context:
space:
mode:
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>2018-07-18 18:09:56 +0200
committerBenson Leung <bleung@chromium.org>2018-09-07 15:56:37 +0800
commite2bbf91cad09118d7500f1fdaaa83d7741d30395 (patch)
treea6c32330446d2d45e652caff08ea245aef9d4904 /drivers/mfd/cros_ec_dev.h
parentplatform/chrome: Move mfd/cros_ec_lpc* includes to drivers/platform. (diff)
downloadlinux-dev-e2bbf91cad09118d7500f1fdaaa83d7741d30395.tar.xz
linux-dev-e2bbf91cad09118d7500f1fdaaa83d7741d30395.zip
mfd: cros_ec: Fix and improve kerneldoc comments.
cros-ec includes inside the MFD subsystem, specially the file cros_ec_commands.h, has been modified several times and it has grown a lot, unfortunately, we didn't have care too much about the documentation. This patch tries to improve the documentation and also fixes all the issues reported by kerneldoc script. Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Signed-off-by: Benson Leung <bleung@chromium.org>
Diffstat (limited to 'drivers/mfd/cros_ec_dev.h')
-rw-r--r--drivers/mfd/cros_ec_dev.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/mfd/cros_ec_dev.h b/drivers/mfd/cros_ec_dev.h
index 45e9453608c5..978d836a0248 100644
--- a/drivers/mfd/cros_ec_dev.h
+++ b/drivers/mfd/cros_ec_dev.h
@@ -26,12 +26,13 @@
#define CROS_EC_DEV_VERSION "1.0.0"
-/*
- * @offset: within EC_LPC_ADDR_MEMMAP region
- * @bytes: number of bytes to read. zero means "read a string" (including '\0')
- * (at most only EC_MEMMAP_SIZE bytes can be read)
- * @buffer: where to store the result
- * ioctl returns the number of bytes read, negative on error
+/**
+ * struct cros_ec_readmem - Struct used to read mapped memory.
+ * @offset: Within EC_LPC_ADDR_MEMMAP region.
+ * @bytes: Number of bytes to read. Zero means "read a string" (including '\0')
+ * At most only EC_MEMMAP_SIZE bytes can be read.
+ * @buffer: Where to store the result. The ioctl returns the number of bytes
+ * read or negative on error.
*/
struct cros_ec_readmem {
uint32_t offset;