Skip to content

Commit

Permalink
sensor.c: Rename container_of to list_container_of
Browse files Browse the repository at this point in the history
apache#11805

Signed-off-by: wangjianyu3 <[email protected]>
  • Loading branch information
JianyuWang0623 committed Sep 19, 2024
1 parent 1d3dd32 commit c3e9255
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/sensors/usensor.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static int usensor_get_info(FAR struct sensor_lowerhalf_s *lower,
FAR struct file *filep,
FAR struct sensor_device_info_s *info)
{
FAR struct usensor_lowerhalf_s *ulower = container_of(lower,
FAR struct usensor_lowerhalf_s *ulower = list_container_of(lower,
struct usensor_lowerhalf_s,
node);

Expand All @@ -237,7 +237,7 @@ static int usensor_control(FAR struct sensor_lowerhalf_s *lower,
FAR struct file *filep,
int cmd, unsigned long arg)
{
FAR struct usensor_lowerhalf_s *ulower = container_of(lower,
FAR struct usensor_lowerhalf_s *ulower = list_container_of(lower,
struct usensor_lowerhalf_s,
node);

Expand Down

0 comments on commit c3e9255

Please sign in to comment.