From 74c9b6f5445d9227d18357a6d0a0fac5a512aa03 Mon Sep 17 00:00:00 2001 From: dongjiuzhu1 Date: Tue, 8 Oct 2024 17:50:25 +0800 Subject: [PATCH] drivers/rpmsgdev: support get more battery info by rpmsgdev Signed-off-by: dongjiuzhu1 --- drivers/misc/rpmsgdev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/misc/rpmsgdev.c b/drivers/misc/rpmsgdev.c index a203b6b5b5..1d933a5785 100644 --- a/drivers/misc/rpmsgdev.c +++ b/drivers/misc/rpmsgdev.c @@ -606,6 +606,10 @@ static ssize_t rpmsgdev_ioctl_arglen(int cmd) case FIONSPACE: case FBIOSET_POWER: case FBIOGET_POWER: + case BATIOC_CURRENT: + case BATIOC_VOLTAGE: + case BATIOC_TEMPERATURE: + case BATIOC_INPUT_CURRENT: case BATIOC_STATE: return sizeof(int); case TUNSETIFF: