summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
428dd77)
Change-Id: If81cdf43703b6ff3128ea79940ce240f56918b9d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
else {
fdev->fd = fd;
fdev->refcount = 3; /* set autoclose by default */
else {
fdev->fd = fd;
fdev->refcount = 3; /* set autoclose by default */
+ fdev->repeat = -1; /* always repeat by default */
void fdev_set_autoclose(struct fdev *fdev, int autoclose)
{
if (autoclose)
void fdev_set_autoclose(struct fdev *fdev, int autoclose)
{
if (autoclose)
+ fdev->refcount |= (unsigned)1;
+ fdev->refcount &= ~(unsigned)1;