drivers/rpmsgdev: support get more battery info by rpmsgdev
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
6f62ef0b6f
commit
74c9b6f544
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue