Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sensor.c: Rename container_of to list_container_of
apache#11805 Log: /github/workspace/sources/nuttx/drivers/sensors/usensor.c: In function 'usensor_get_info': Warning: /github/workspace/sources/nuttx/drivers/sensors/usensor.c:228:44: warning: implicit declaration of function 'container_of'; did you mean 'list_container_of'? [-Wimplicit-function-declaration] 228 | FAR struct usensor_lowerhalf_s *ulower = container_of(lower, | ^~~~~~~~~~~~ | list_container_of Error: /github/workspace/sources/nuttx/drivers/sensors/usensor.c:229:44: error: expected expression before 'struct' 229 | struct usensor_lowerhalf_s, | ^~~~~~ /github/workspace/sources/nuttx/drivers/sensors/usensor.c: In function 'usensor_control': Error: /github/workspace/sources/nuttx/drivers/sensors/usensor.c:241:44: error: expected expression before 'struct' 241 | struct usensor_lowerhalf_s, | ^~~~~~ Signed-off-by: wangjianyu3 <[email protected]>
- Loading branch information