diff options
| author | 2022-02-14 14:09:59 +0000 | |
|---|---|---|
| committer | 2022-02-14 14:09:59 +0000 | |
| commit | e81f1e0de816bf16756ffa269fb7bce8383c13c2 (patch) | |
| tree | f92d970dbd2661dd7b9f2c7796881a0db7b2dc7c /include/linux | |
| parent | Merge branch 'dsa-realtek-next' (diff) | |
| parent | net: wwan: iosm: drop debugfs dev reference (diff) | |
Merge branch 'wwan-debugfs'
M Chetan Kumar says:
====================
net: wwan: debugfs dev reference not dropped
This patch series contains WWAN subsystem & IOSM Driver changes to
drop dev reference obtained as part of wwan debugfs dir entry retrieval.
PATCH1: A new debugfs interface is introduced in wwan subsystem so
that wwan driver can drop the obtained dev reference post debugfs use.
PATCH2: IOSM Driver uses new debugfs interface to drop dev reference.
Please refer to commit messages for details.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/wwan.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/wwan.h b/include/linux/wwan.h index afb3334ec8c5..5ce2acf444fb 100644 --- a/include/linux/wwan.h +++ b/include/linux/wwan.h @@ -174,11 +174,13 @@ void wwan_unregister_ops(struct device *parent); #ifdef CONFIG_WWAN_DEBUGFS struct dentry *wwan_get_debugfs_dir(struct device *parent); +void wwan_put_debugfs_dir(struct dentry *dir); #else static inline struct dentry *wwan_get_debugfs_dir(struct device *parent) { return ERR_PTR(-ENODEV); } +static inline void wwan_put_debugfs_dir(struct dentry *dir) {} #endif #endif /* __WWAN_H */ |
