drivers/rpmsgdev: support get more battery info by rpmsgdev

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2024-10-08 17:50:25 +08:00 committed by Alan C. Assis
parent 6f62ef0b6f
commit 74c9b6f544
1 changed files with 4 additions and 0 deletions

View File

@ -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: