Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1172788ybi; Sat, 8 Jun 2019 04:10:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxlVmW++seKJ4lR7cDea50LCzl3hKiyDzODNy/9kTizQIIrrC2pY+Efg5l+R+BmyT706BBR X-Received: by 2002:a63:2706:: with SMTP id n6mr7340090pgn.238.1559992216188; Sat, 08 Jun 2019 04:10:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559992216; cv=none; d=google.com; s=arc-20160816; b=uvg2u0qmLjKSEHkJHUv1PpvT4GLzZWJJ3jyKjGYF354YE4OczZxITnsdYHGHH1Q49N pFMffjg3qD1FfJTmomiq50ZBETVWCvL17Naf4eqIEjM+fFzOl/iY7VgNeevgpU4XqHmi Bzp+IGxQ3CEvQwy7SmzTdguJye5JJRLRsqJjb7mIjAEXzCnZ5hsh4EiiyD38Dmq/777I HZN8A1/ObXdUqz4D7wTwAtDmjMqanuxhOTD1VQRXEbqW0FU72fh/a+zQJxJCSwNmUGVL arqjI6Ynr0kjTQ0R0881zUv/NBca3BLFOI5YgHccdbpSwWYasWbiPcGSjYjQ89Jkn9A5 jcHA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=kMKlrVzHxx7lH5o2fm+S4yXVSfmPpvfXI7E1qz4Nwh8=; b=KNunGjlOIXMtxch0kIIaNRsDACItu9Xh0ENVGCyVgErS0VZiLnsWCYYi/4Cf+VvOXs qVh0jaBCXrUYipuxeVeviephqWA9+URCBygoTjplL1STca2Qxs2AOTyPB+IA2a3VaeHH 6opRzYkZNDP46o36ByjUBODxCerXu7qchJ4wnPGu7ZnTFDHMq1+Yln+qRBe4U0HWE7+c Y5Kuu9rIsw9NxWUR2hPz8+IHSbdZLVlq5NJpr3oMt3mYNWpNjaglJqq2/8B7JAohp2U1 ZehCDhsC+jjGSdwX2hrJzurhCjcmMioPsHWnmd/mUz80f8cB3f9nJHRlkb5KisiDIfPA 1GGQ== 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 f2si4395814plr.16.2019.06.08.04.09.57; Sat, 08 Jun 2019 04:10:16 -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 S1727395AbfFHK7Y (ORCPT + 99 others); Sat, 8 Jun 2019 06:59:24 -0400 Received: from sauhun.de ([88.99.104.3]:51878 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727001AbfFHK4s (ORCPT ); Sat, 8 Jun 2019 06:56:48 -0400 Received: from localhost (p5486CBCC.dip0.t-ipconnect.de [84.134.203.204]) by pokefinder.org (Postfix) with ESMTPSA id 4B1E93E4786; Sat, 8 Jun 2019 12:56:47 +0200 (CEST) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH 12/34] misc: fsa9480: simplify getting the adapter of a client Date: Sat, 8 Jun 2019 12:55:51 +0200 Message-Id: <20190608105619.593-13-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190608105619.593-1-wsa+renesas@sang-engineering.com> References: <20190608105619.593-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We have a dedicated pointer for that, so use it. Much easier to read and less computation involved. Signed-off-by: Wolfram Sang --- Please apply to your subsystem tree. drivers/misc/fsa9480.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/fsa9480.c b/drivers/misc/fsa9480.c index 607b489a6501..a8126790f8de 100644 --- a/drivers/misc/fsa9480.c +++ b/drivers/misc/fsa9480.c @@ -410,7 +410,7 @@ static int fsa9480_irq_init(struct fsa9480_usbsw *usbsw) static int fsa9480_probe(struct i2c_client *client, const struct i2c_device_id *id) { - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); + struct i2c_adapter *adapter = client->adapter; struct fsa9480_usbsw *usbsw; int ret = 0; -- 2.19.1