You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "anchao (via GitHub)" <gi...@apache.org> on 2023/08/28 12:18:32 UTC

[GitHub] [nuttx] anchao commented on a diff in pull request #10428: battery:add FAR for battery_gauge_operations_s

anchao commented on code in PR #10428:
URL: https://github.com/apache/nuttx/pull/10428#discussion_r1307350555


##########
include/nuttx/power/battery_gauge.h:
##########
@@ -93,31 +93,32 @@ struct battery_gauge_operations_s
 {
   /* Return the current battery state (see enum battery_status_e) */
 
-  int (*state)(struct battery_gauge_dev_s *dev, int *status);
+  int (*state)(FAR struct battery_gauge_dev_s *dev, FAR int *status);

Review Comment:
   Please add the `CODE` keyword before each function pointer definition, reference here:
   https://github.com/apache/nuttx/blob/master/include/nuttx/fs/fs.h#L203-L232



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