From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9BF62C433E2 for ; Tue, 1 Sep 2020 07:42:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7E244204EC for ; Tue, 1 Sep 2020 07:42:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727108AbgIAHmO (ORCPT ); Tue, 1 Sep 2020 03:42:14 -0400 Received: from mga05.intel.com ([192.55.52.43]:31884 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726124AbgIAHmN (ORCPT ); Tue, 1 Sep 2020 03:42:13 -0400 IronPort-SDR: k+XUZZmj/KqcRyLShm0rIzJiIZ8GbfHfWrZSxihLULV9ABpFyEh/HTtGh9YPLPTfPC5U280UJg BgzODnNaXR4A== X-IronPort-AV: E=McAfee;i="6000,8403,9730"; a="241935374" X-IronPort-AV: E=Sophos;i="5.76,378,1592895600"; d="scan'208";a="241935374" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2020 00:42:12 -0700 IronPort-SDR: mHPQrUsBA6ymKH/ksIDCAlbzt7yq2GLyxqN0vwTXLdi7iG0n7iE9MaFnK/ZN8Sy8eCYYUEoyNM 7UGtkZ1wzjUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,378,1592895600"; d="scan'208";a="404695670" Received: from lahna.fi.intel.com (HELO lahna) ([10.237.72.163]) by fmsmga001.fm.intel.com with SMTP; 01 Sep 2020 00:42:10 -0700 Received: by lahna (sSMTP sendmail emulation); Tue, 01 Sep 2020 10:42:09 +0300 Date: Tue, 1 Sep 2020 10:42:09 +0300 From: Mika Westerberg To: "tiantao (H)" Cc: "andreas.noever@gmail.com" , "michael.jamet@intel.com" , "YehezkelShB@gmail.com" , "linux-usb@vger.kernel.org" , Linuxarm Subject: Re: =?utf-8?B?562U5aSNOiBbUEFUQ0g=?= =?utf-8?Q?=5D?= thunderbolt: Use kobj_to_dev() instead of container_of() Message-ID: <20200901074209.GT1375436@lahna.fi.intel.com> References: <1598922090-39482-1-git-send-email-tiantao6@hisilicon.com> <20200901070847.GR1375436@lahna.fi.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Tue, Sep 01, 2020 at 07:37:48AM +0000, tiantao (H) wrote: > Hi: > > Doesn't really matter for an individual driver, but it may get coppied to lots more. > I consider it's a little tidy up. That's fine but please write it down in the commit message as well :)