Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp536804pxu; Sun, 22 Nov 2020 18:32:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJz6Z7mSAYFoE5G3KeI60ZNRA5AKTN8oBVnCei655/RBtijlBCdriblOO36ZKo6FKEcrN6UR X-Received: by 2002:a50:fe14:: with SMTP id f20mr43131867edt.61.1606098743033; Sun, 22 Nov 2020 18:32:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606098743; cv=none; d=google.com; s=arc-20160816; b=DcaUQtGwfA7B81fgi1cdy97f+dfjdKPb6Bg+j/KQS2q6qDM75Vti2GKrzbY8i08uSC N0kAQ7BxpNqq3EtjgzauQPxjwypT/C8U9Z30/tW6y19NDaX8St4FFHaGWSN1NitwO8d+ nQ2C8xt+yzrYQB7RZY/vFOrxaZ7Tc2NetF9NPmsbq9WwsveGmJKikMgsyUyGQ4zcvg25 4WQ7C3PV3d8YfuAxgeDUO2OPIWVlT7PK+I0H/3/rh2XjqFXRc4XHgt7L3zs27MNfGuV9 fQHr8ythvNRErt40M+86sevIkoAZkuM/5ZH1bkxedb5ZU70gdiJsTQXXz8KHho2rxqtU xIsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:to:from; bh=EGoix1nGsJLs2+OuAXy2zrbbQdROcSPWhkT0ROPCXd0=; b=xFwz6lzyAcXXZTXd3FXwAtKzTezGE3qZFXT/glyUBIhktI1iZ/QbshTgZR6Ngxa6z2 /K77r2qbtnLTAvRN5d/xb/jj9aIgjliM0+ycQpaUBPIm4SXiUI1BVgIR8CZYFETlwiEa TMAHrooptNTNozrAfQvWL1sBBQl9z/wcopGl4fWgtIKWRtLdR2NSHkqkWLGGJTRoB8lK qRWNDFTwG1csCHe1OW8oO+63I/ZFylLkialgXkF6Xq8rPB5r2frHzO9ZLno6R3zj96H6 jpgN7KkXgvKd7GGz3SiGjoXQJ7+LgGAIXs/SWodfGkEnq6eGZgYGZT1fFR15R10P2cDE lkCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a9si5793687edy.599.2020.11.22.18.31.44; Sun, 22 Nov 2020 18:32:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbgKWBr2 (ORCPT + 99 others); Sun, 22 Nov 2020 20:47:28 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7665 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726131AbgKWBr2 (ORCPT ); Sun, 22 Nov 2020 20:47:28 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CfVQ21d77z15QZg; Mon, 23 Nov 2020 09:47:06 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Mon, 23 Nov 2020 09:47:19 +0800 From: Tian Tao To: , , , , Subject: [PATCH] wlcore: Switch to using the new API kobj_to_dev() Date: Mon, 23 Nov 2020 09:47:42 +0800 Message-ID: <1606096062-32251-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Switch to using the new API kobj_to_dev(). Signed-off-by: Tian Tao --- 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