mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 05:03:35 +08:00
drivers/, drivers/pipes, and drivers/serial file clean-up
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4944 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* drivers/loop.c
|
||||
*
|
||||
* Copyright (C) 2008-2009, 2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
@@ -166,6 +166,7 @@ static int loop_open(FAR struct inode *inode)
|
||||
|
||||
dev->opencnt++;
|
||||
}
|
||||
|
||||
loop_semgive(dev);
|
||||
return ret;
|
||||
}
|
||||
@@ -198,6 +199,7 @@ static int loop_close(FAR struct inode *inode)
|
||||
|
||||
dev->opencnt--;
|
||||
}
|
||||
|
||||
loop_semgive(dev);
|
||||
return ret;
|
||||
}
|
||||
@@ -327,6 +329,7 @@ static int loop_geometry(FAR struct inode *inode, struct geometry *geometry)
|
||||
geometry->geo_sectorsize = dev->sectsize;
|
||||
return OK;
|
||||
}
|
||||
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user