Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8983008ybi; Tue, 23 Jul 2019 19:26:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqymv20kflN9nchYxDf6zElmchuZq58rBZhfDSjs4sPneTmbY/mW4JdaUycQrf/ejkPVmhJE X-Received: by 2002:a62:8745:: with SMTP id i66mr8669686pfe.259.1563935201627; Tue, 23 Jul 2019 19:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563935201; cv=none; d=google.com; s=arc-20160816; b=gDhX0l3R0j1bi59i4l3jepIVA47MtrhLSgOVLM+qf6ybIrNVBt6vijOrTOCMYU3KVE nOWc7KlbzX0wAROvyQ/PQnqHMQbNhcKXVxWbnP484XpCpPS+fzJAte2HXauNvAj2GdsB UVFdsC7uGYcnCedTDYHmuP7CfwfIjPIvlSb4Qg3cwVCcZCmKA5xYt7vmytlRato6bJ/A QmcKEJY8q+R4Fn7dD+G0+DwU995anrsSopWxJTjSVaCk0dDQDlA+wYUbBCL4TIJUbEoq MqXRKAQMdsdK1HlTEuspBpc6iFYqxd1eFlgbHlCbdSO1yp+nlDuWqpyBe8f3j53us7Bb o4Pw== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=Owu0H/dysO9SX9Qz7KUZmCvtTKugaxB7UhE1frGiz/4=; b=uJ0pzUTar1nVp1rw4hXoRisTi46P3AVZdrV8Tsol8AV3QYQ+1lEPyrcMe9yUUMrVFJ PD/DyzJ/rYKC7LFOHxmvXdaO1DsgzyCA5o6dK0pdsqQmbbibG/E4ZuLt/iiIxh6OVHeR YgTCaqR/YJLmPXNnanCTDlBl4bBqQlBx+QKesQg8eKaZQQdMcVW7AqB/LyknZoil9XXt KXlpCdaqewNnTMgbYmv9XeSWeMb5t3bu5tmeRvY41NhbB4PLr/a+/Gv9Ck/trl3dYuAT TMl/AWyTFR7wrnBagZezaN3yVkPBaVwPf+NP7eT3ABNk6F1evwnWEazJxKtImNbvxfI0 DhCg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v136si13459498pfc.9.2019.07.23.19.26.25; Tue, 23 Jul 2019 19:26:41 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731773AbfGWSe4 (ORCPT + 99 others); Tue, 23 Jul 2019 14:34:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:54308 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727021AbfGWSez (ORCPT ); Tue, 23 Jul 2019 14:34:55 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 12F98AC93; Tue, 23 Jul 2019 18:34:54 +0000 (UTC) Date: Tue, 23 Jul 2019 20:34:52 +0200 From: Jean Delvare To: "Chuhong Yuan" Cc: "Jarkko Nikula" , , Subject: Re: [PATCH] i2c: busses: Use dev_get_drvdata where possible Message-ID: <20190723203452.5714f142@endymion> In-Reply-To: <20190723111110.11121-1-hslester96@gmail.com> References: <20190723111110.11121-1-hslester96@gmail.com> Organization: SUSE Linux X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Jean Delvare SUSE L3 Support