summaryrefslogtreecommitdiff
path: root/drivers/platform/chrome/cros_ec_proto.c
diff options
context:
space:
mode:
authorPrashant Malani <pmalani@chromium.org>2021-09-30 05:23:52 +0300
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2021-09-30 11:09:47 +0300
commit5d122256f4e5900f7f8de5d8787af570314f6701 (patch)
tree467de5d941021ab87842409a5c68f63c50992747 /drivers/platform/chrome/cros_ec_proto.c
parent7101c83950e629b83f9d827f288063e52074a6ea (diff)
downloadlinux-5d122256f4e5900f7f8de5d8787af570314f6701.tar.xz
platform/chrome: cros_ec_proto: Make data pointers void
Convert the input and output data pointers for cros_ec_command() to void pointers so that the callers don't have to cast their custom structs to uint8_t *. Signed-off-by: Prashant Malani <pmalani@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20210930022403.3358070-4-pmalani@chromium.org
Diffstat (limited to 'drivers/platform/chrome/cros_ec_proto.c')
-rw-r--r--drivers/platform/chrome/cros_ec_proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/chrome/cros_ec_proto.c b/drivers/platform/chrome/cros_ec_proto.c
index 67009b604630..fd114b57bca2 100644
--- a/drivers/platform/chrome/cros_ec_proto.c
+++ b/drivers/platform/chrome/cros_ec_proto.c
@@ -925,9 +925,9 @@ EXPORT_SYMBOL_GPL(cros_ec_get_sensor_count);
*/
int cros_ec_command(struct cros_ec_device *ec_dev,
int command,
- uint8_t *outdata,
+ void *outdata,
int outsize,
- uint8_t *indata,
+ void *indata,
int insize)
{
struct cros_ec_command *msg;