Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338646
b: refs/heads/master
c: fea20db
h: refs/heads/master
v: v3
  • Loading branch information
Michal Nazarewicz authored and Felipe Balbi committed Nov 8, 2012
1 parent de9950b commit 1bc9e71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8575f7a70610c89135c374e4305421c41e39e810
refs/heads/master: fea20dbcfd6673d73d510984589897bd921c8a1d
7 changes: 5 additions & 2 deletions trunk/drivers/usb/gadget/storage_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,12 @@ struct fsg_lun {
struct device dev;
};

#define fsg_lun_is_open(curlun) ((curlun)->filp != NULL)
static inline bool fsg_lun_is_open(struct fsg_lun *curlun)
{
return curlun->filp != NULL;
}

static struct fsg_lun *fsg_lun_from_dev(struct device *dev)
static inline struct fsg_lun *fsg_lun_from_dev(struct device *dev)
{
return container_of(dev, struct fsg_lun, dev);
}
Expand Down

0 comments on commit 1bc9e71

Please sign in to comment.