netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wlcore: Switch to using the new API kobj_to_dev()
@ 2020-11-23  1:47 Tian Tao
  2020-12-02 19:25 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Tian Tao @ 2020-11-23  1:47 UTC (permalink / raw)
  To: kvalo, davem, kuba, linux-wireless, netdev

Switch to using the new API kobj_to_dev().

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/net/wireless/ti/wlcore/sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ti/wlcore/sysfs.c b/drivers/net/wireless/ti/wlcore/sysfs.c
index 7ac1814..5cf0379 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;
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] wlcore: Switch to using the new API kobj_to_dev()
  2020-11-23  1:47 [PATCH] wlcore: Switch to using the new API kobj_to_dev() Tian Tao
@ 2020-12-02 19:25 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2020-12-02 19:25 UTC (permalink / raw)
  To: Tian Tao; +Cc: davem, kuba, linux-wireless, netdev

Tian Tao <tiantao6@hisilicon.com> wrote:

> Switch to using the new API kobj_to_dev().
> 
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>

Patch applied to wireless-drivers-next.git, thanks.

3b52cf6242b4 wlcore: Switch to using the new API kobj_to_dev()

-- 
https://patchwork.kernel.org/project/linux-wireless/patch/1606096062-32251-1-git-send-email-tiantao6@hisilicon.com/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-02 19:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-23  1:47 [PATCH] wlcore: Switch to using the new API kobj_to_dev() Tian Tao
2020-12-02 19:25 ` Kalle Valo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).