diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2020-11-23 09:47:42 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-12-02 21:25:39 +0200 |
commit | 3b52cf6242b49c86bba2b5753a43a4e5999c4171 (patch) | |
tree | dcbca3483865a0dd29caaa174d2d194264dc3ea5 | |
parent | 5b2e9a35e456619f9477eefb6aa029390b763f79 (diff) | |
download | linux-3b52cf6242b49c86bba2b5753a43a4e5999c4171.tar.bz2 |
wlcore: Switch to using the new API kobj_to_dev()
Switch to using the new API kobj_to_dev().
Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1606096062-32251-1-git-send-email-tiantao6@hisilicon.com
-rw-r--r-- | drivers/net/wireless/ti/wlcore/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/sysfs.c b/drivers/net/wireless/ti/wlcore/sysfs.c index 7ac1814182ba..5cf0379b88b6 100644 --- a/drivers/net/wireless/ti/wlcore/sysfs.c +++ b/drivers/net/wireless/ti/wlcore/sysfs.c @@ -100,7 +100,7 @@ static ssize_t wl1271_sysfs_read_fwlog(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buffer, loff_t pos, size_t count) { - struct device *dev = container_of(kobj, struct device, kobj); + struct device *dev = kobj_to_dev(kobj); struct wl1271 *wl = dev_get_drvdata(dev); ssize_t len; int ret; |