Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1166226ybi; Sat, 8 Jun 2019 04:03:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqwymFN1dwBlpwTInaKOPusqH1+ChxE/GyEyZoBqgPD3OktTE9X57iUpgxK1oC0APh/XlIxn X-Received: by 2002:a65:6398:: with SMTP id h24mr6944553pgv.446.1559991786716; Sat, 08 Jun 2019 04:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559991786; cv=none; d=google.com; s=arc-20160816; b=DakWPOi5Hnd8HXy9l4Oz+DUFnbKsC93VVhGSsWCw6O4SNqDt0A0mD3KDfgWV1+mx0K Dlz7ZC0hIR3++oGov8qUrVx4EVsbHcK9dcI6o/Tqu5JY0NyJU29bdD81ID+oX7QlBegN 4bhTCjjuG43oIShXb5Hc8uaz5t1vmiLONY2azGZjWhV/y8jSAq71oM04SpSjHpwhCz5u Zi6JH0orsizy4WQfe0UnBSHOdqjBCms7xBgQirMwQIrDFX0PndssnWdZ+7Xo8QWteQj8 B6G8c7fh/PSq3ScQZolMQMEbtEJCGAt7ClFktJK4Cp21J9WDYxXCz91kqGIDJdIxfmPt UBmg== 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=pmwEti9sA6At5iDGTH3+uYGXXmWnvRoNi83d7eKYs70=; b=wAqDMRF65Cven7F7jf/ALy4w6gkc0bhOEMJjSAuuluIPRKora/+FDVslXoIMkQME+D L4d/Rlk9um9FbWd+/jSlozaDe8jTfphe1ndGM6rjm4owBtmrBpG8ca+QZ0MDtaW6WXlN SKrmVnRIspvGSEVUqNUyDDE2inTuW1n2QHewwp7GZSxP6mY0KCdE3CGVXQQdBAoaIIC4 imfyZ3ONhIqKbFXDLTsA+bOUywqv1ssO8zGkY15EW81kdI2pfGBCFgsKWLY+Dg6dg+Jv emK7tti4+wVcVyG25N4vvgMhs3/oy7gNYFCU8d9fqhFzmhloc2zBews2mVBdAOxQqM6T g8ew== 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 65si4404787plb.39.2019.06.08.04.02.50; Sat, 08 Jun 2019 04:03:06 -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 S1727472AbfFHK7t (ORCPT + 99 others); Sat, 8 Jun 2019 06:59:49 -0400 Received: from sauhun.de ([88.99.104.3]:51870 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726883AbfFHK4p (ORCPT ); Sat, 8 Jun 2019 06:56:45 -0400 Received: from localhost (p5486CBCC.dip0.t-ipconnect.de [84.134.203.204]) by pokefinder.org (Postfix) with ESMTPSA id 180003E4788; Sat, 8 Jun 2019 12:56:44 +0200 (CEST) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/34] media: i2c: ak881x: simplify getting the adapter of a client Date: Sat, 8 Jun 2019 12:55:45 +0200 Message-Id: <20190608105619.593-7-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/media/i2c/ak881x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/ak881x.c b/drivers/media/i2c/ak881x.c index 30f9db1351b9..09860603da64 100644 --- a/drivers/media/i2c/ak881x.c +++ b/drivers/media/i2c/ak881x.c @@ -232,7 +232,7 @@ static const struct v4l2_subdev_ops ak881x_subdev_ops = { static int ak881x_probe(struct i2c_client *client, const struct i2c_device_id *did) { - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); + struct i2c_adapter *adapter = client->adapter; struct ak881x *ak881x; u8 ifmode, data; -- 2.19.1