pkarashchenko commented on code in PR #6653: URL: https://github.com/apache/incubator-nuttx/pull/6653#discussion_r934375913
########## include/nuttx/sensors/sensor.h: ########## @@ -925,12 +934,31 @@ struct sensor_lowerhalf_s * priv - Upper half driver handle **********************************************************************/ - CODE void (*notify_event)(FAR void *priv); + sensor_notify_event_t notify_event; }; +/**************************************************************************** + * Name: sensor_lock/sensor_unlock + * + * Description: + * Lower half driver can lock/unlock upper half driver by this interface. + * + * Input Parameters: + * priv - Upper half driver handle + ****************************************************************************/ + + void (*sensor_lock)(void * priv); + void (*sensor_unlock)(void * priv); Review Comment: ```suggestion CODE void (*sensor_lock)(FAR void * priv); CODE void (*sensor_unlock)(FAR void * priv); ``` -- 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-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org