Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1163214ybi; Sat, 8 Jun 2019 04:00:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNAhF0dvUgMzONugPCnYuWKLT1Xay2csBPtOtZkc3rYH9FrlXe1MQjFEpHGiAGcMvJUzFS X-Received: by 2002:aa7:8a95:: with SMTP id a21mr64221802pfc.215.1559991602126; Sat, 08 Jun 2019 04:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559991602; cv=none; d=google.com; s=arc-20160816; b=T2hsOC+O9uJas+xgQmeK7/D6uzrRrAqxAAQIp78l7ziU5PY27Ep5ZxKGnfSF8glltu tQ/qZXYBmUgs47PyHgKVYsGaLBNKfBGdNoZAxRsm3zs+sElk03+1aDf5E9T3A7Rk82RQ ZAkqYirUf2CEXhSH4PPzkUizt7IVB78XXCcqVG85vMXiNJh2Ph/BFBoXqdncEIPLK/tm UkLVqZILN7IklRns0xqWNk3tfm2jbRqi/sBeOv2XT4N9wG9vusknP5UJaLYhtcImnSxv r/NOxxV8Za8bAH3taasgzjqe4gvJS04MMh2b3wtjHl5qkNO6jYSn1sxc+d1IfAPDRo4y 6WEQ== 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=/i6MfH7/Law8p/YoOlLlEM6kSTYDABp+yvV1rE23c1M=; b=SnFkitPk6WPcaBNOpQj4A6MEtztWHF0rs+c/zkBE8tMB8GFIfRI1tiVoSFWpZAb50M KQaQMjoSbreotwfqfwquU0s4MsFerAVL+m27i+DqWnJuhwoQeNkjetyaWxlSnY5h6qw4 ZPnwIqMSuLrHn/ZZAx28PLdKMfWjro8Z/yhfuwloWjbZycsPATTwzP7Jn3Awp5YpvvlF nTHUHHPqaLtoaQnQlikgj1HSEMOlBv1y8A7nVYyMP8wicD7/PN6kSZV5f+DDIhpWvrdt UB5t7RaPvk0gL5q2xvbA4aL+3jlQi4ucR9pwIlPIqMH92z4Dk5FwK8dcG6ac5tdMPARd 1j9w== 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 l1si4392131pjq.82.2019.06.08.03.59.46; Sat, 08 Jun 2019 04:00:02 -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 S1727306AbfFHK5T (ORCPT + 99 others); Sat, 8 Jun 2019 06:57:19 -0400 Received: from sauhun.de ([88.99.104.3]:51862 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727194AbfFHK47 (ORCPT ); Sat, 8 Jun 2019 06:56:59 -0400 Received: from localhost (p5486CBCC.dip0.t-ipconnect.de [84.134.203.204]) by pokefinder.org (Postfix) with ESMTPSA id 6A1E43E476F; Sat, 8 Jun 2019 12:56:58 +0200 (CEST) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Mauro Carvalho Chehab , Greg Kroah-Hartman , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 33/34] staging: media: soc_camera: soc_mt9v022: simplify getting the adapter of a client Date: Sat, 8 Jun 2019 12:56:12 +0200 Message-Id: <20190608105619.593-34-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/staging/media/soc_camera/soc_mt9v022.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/soc_camera/soc_mt9v022.c b/drivers/staging/media/soc_camera/soc_mt9v022.c index e7e0d3d29499..1739a618846d 100644 --- a/drivers/staging/media/soc_camera/soc_mt9v022.c +++ b/drivers/staging/media/soc_camera/soc_mt9v022.c @@ -883,7 +883,7 @@ static int mt9v022_probe(struct i2c_client *client, { struct mt9v022 *mt9v022; struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); + struct i2c_adapter *adapter = client->adapter; struct mt9v022_platform_data *pdata; int ret; -- 2.19.1