Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3668513ybi; Mon, 29 Jul 2019 10:26:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqzRZYLtZM1GDwkz5rSejQJUUpbh3/mbver55pO0Ols6UBbiwJ23P16ysy9GyABTL674hAkZ X-Received: by 2002:aa7:9a92:: with SMTP id w18mr37729548pfi.167.1564421173044; Mon, 29 Jul 2019 10:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564421173; cv=none; d=google.com; s=arc-20160816; b=HGiBo69ApmUPpbI/v160cTCUcdN3vJ5yT4J8zxUnbkRQ5oaa8ExsQeHqErkg8whXhO RtPlvlqHv6eNIlxu8hn1yjoAPc49QWHzQo/UYIiRZYcHz7b1hTz/NSAN8DciQmuoa4Bb JL1E/yBB8yGR+eQk6hdCqD6/Z5L9t1g0E3BMr34P24ltsqSLnLq6drROtoDLjkjrXWyY yynhdLD+LZQEC5gJFlUnoJHvmObvChVIjAJHs+CavAEBLZXqS06v57T8HIHmfGGWMFJK HVl1IpmWIp+YISSZd2oWkys4cqrbF40wd5o9QL+n3e9lavv5clTOEzXKRUv9Dlqv70f6 2KGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=j3A0+7I4u0kiefqEwWI+6qFT86gcW0R6PN3OkFXwiMk=; b=Tr4m87Gw3Di9DfU2hhG9362AM/65yao0a2i9h/Ky8lfuTprhfgHYtyrZpeSLu2Jet6 QfbIG1KbsWsrLlYrJCMe8DWeCOpQTKFUnqoy1/Gitov2TwQOdb1Kdue7vlO/2phmk+ad yYuTWbXCVzX7t0XYsgGU1/DFNWHcru76rlhOACf3VXomAJ1poEBuRGQlQ9DFBvklm7Rw PMcOO0eRs8LRBFY8PpU2wdWpMULSdzDnf8vszah73lKNny8VgJIkEJQN8rxXE8ATBj9p KqnaDwwHU6SWcU2v2adqlR6SGH9r30Z4AFhrAskTu97SK+aNvdwKgbOI8umqhPMSd8bH RQ8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id em9si23875802pjb.37.2019.07.29.10.25.57; Mon, 29 Jul 2019 10:26:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387511AbfG2NXm (ORCPT + 99 others); Mon, 29 Jul 2019 09:23:42 -0400 Received: from mga11.intel.com ([192.55.52.93]:11886 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387413AbfG2NXl (ORCPT ); Mon, 29 Jul 2019 09:23:41 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jul 2019 06:23:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,322,1559545200"; d="scan'208";a="182744433" Received: from mylly.fi.intel.com (HELO [10.237.72.159]) ([10.237.72.159]) by orsmga002.jf.intel.com with ESMTP; 29 Jul 2019 06:23:39 -0700 Subject: Re: [PATCH] i2c: busses: Use dev_get_drvdata where possible To: Jean Delvare , Chuhong Yuan Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190723111110.11121-1-hslester96@gmail.com> <20190723203452.5714f142@endymion> From: Jarkko Nikula Message-ID: Date: Mon, 29 Jul 2019 16:23:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190723203452.5714f142@endymion> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/23/19 9:34 PM, Jean Delvare wrote: > On Tue, 23 Jul 2019 19:11:10 +0800, Chuhong Yuan wrote: >> Instead of using to_pci_dev + pci_get_drvdata, >> use dev_get_drvdata to make code simpler. >> >> Signed-off-by: Chuhong Yuan >> --- >> drivers/i2c/busses/i2c-designware-pcidrv.c | 6 ++---- >> drivers/i2c/busses/i2c-i801.c | 3 +-- >> 2 files changed, 3 insertions(+), 6 deletions(-) >> (...) > > Looks good to me, thanks. > > Reviewed-by: Jean Delvare > For the i2c-designware-pcidrv.c Acked-by: Jarkko Nikula