Message ID | 20190901113436.23665-1-zajec5@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | cb34212b1c25f7656a315f956d72696777e88340 |
Delegated to: | Kalle Valo |
Headers | show |
Series | [V2,1/2] brcmfmac: add stub version of brcmf_debugfs_get_devdir() | expand |
Rafał Miłecki wrote: > From: Rafał Miłecki <rafal@milecki.pl> > > In case of compiling driver without DEBUG expose a stub function to make > writing debug code much simpler (no extra conditions). This will allow > e.g. using debugfs_create_file() without any magic if or #ifdef. > > Signed-off-by: Rafał Miłecki <rafal@milecki.pl> 2 patches applied to wireless-drivers-next.git, thanks. cb34212b1c25 brcmfmac: add stub version of brcmf_debugfs_get_devdir() 2f8c8e62cd50 brcmfmac: add "reset" debugfs entry for testing reset
diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h index ea6e8e839cae..9b221b509ade 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h +++ b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h @@ -121,6 +121,10 @@ int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn, int brcmf_debug_create_memdump(struct brcmf_bus *bus, const void *data, size_t len); #else +static inline struct dentry *brcmf_debugfs_get_devdir(struct brcmf_pub *drvr) +{ + return ERR_PTR(-ENOENT); +} static inline int brcmf_debugfs_add_entry(struct brcmf_pub *drvr, const char *fn, int (*read_fn)(struct seq_file *seq, void *data))