From 068c7176bbbdd80d4a355ff59aa2dbeefe1e7d5e Mon Sep 17 00:00:00 2001 From: likun17 Date: Sat, 1 Jun 2024 19:44:23 +0800 Subject: [PATCH] usensor.c:fix container_of member error. Signed-off-by: likun17 --- drivers/sensors/usensor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/sensors/usensor.c b/drivers/sensors/usensor.c index d61aa84517..0271da5e5f 100644 --- a/drivers/sensors/usensor.c +++ b/drivers/sensors/usensor.c @@ -228,7 +228,7 @@ static int usensor_get_info(FAR struct sensor_lowerhalf_s *lower, { FAR struct usensor_lowerhalf_s *ulower = container_of(lower, struct usensor_lowerhalf_s, - node); + driver); *info = ulower->info; return 0; @@ -240,7 +240,7 @@ static int usensor_control(FAR struct sensor_lowerhalf_s *lower, { FAR struct usensor_lowerhalf_s *ulower = container_of(lower, struct usensor_lowerhalf_s, - node); + driver); if (cmd == SNIOC_SET_INFO) {