forked from nuttx/nuttx-update
usensor.c:fix container_of member error.
Signed-off-by: likun17 <likun17@xiaomi.com>
This commit is contained in:
parent
d6348d85f0
commit
a9c1684a1e
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue