You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/07/25 07:35:11 UTC

[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6698: driver/power:add ioctl cmd for voltage info and protocol and add update event mask

xiaoxiang781216 commented on code in PR #6698:
URL: https://github.com/apache/incubator-nuttx/pull/6698#discussion_r928556423


##########
drivers/power/battery_charger.c:
##########
@@ -388,6 +388,16 @@ static int bat_charger_ioctl(FAR struct file *filep, int cmd,
         }
         break;
 
+      case BATIOC_VOLTAGE_INFO:
+        {
+          FAR int *outvoltsp = (FAR int *)((uintptr_t)arg);
+          if (outvoltsp)
+            {
+              ret = dev->ops->voltage_info(dev, outvoltsp);

Review Comment:
   what's different between BATIOC_GET_VOLTAGE and BATIOC_VOLTAGE_INFO?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org