Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1163006ybi; Sat, 8 Jun 2019 03:59:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZP9RSbm/nF/w0EsHweADiP93/9OdNTilNUHiJKCMioPr5L7848mJ93gQ+dHKdSUHmP08B X-Received: by 2002:a17:90a:ac0e:: with SMTP id o14mr10791503pjq.142.1559991580160; Sat, 08 Jun 2019 03:59:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559991580; cv=none; d=google.com; s=arc-20160816; b=FA2P6Ls11DBOi35Yoc6YCOSNlt08oqqMJyzVQHGP3ichiLgvfTdOUfUFX+Vk2yiyU2 9/l+5/pJBC1RbX5Mey6qJ0NeJi4GDxwu3vjGVfoSgsib379nbYc4+/St1OUnQmhDHjFG MsOmOi8lFXORN277TOpWgNVkIxhRy2sR7oM+b7Lm4R5Ka+BV0tGavUITWFVGjaW6wKMC PkvtxYzOL0BS5ZsFn08kiHnyMDZvjBm7l9yimhEI4LNnMfwE+O2x8lPSlTCwVBMnMvjy 3PTusS0Gij/6CbVCifkbAY7gEOTRaBClBFDIsGZABovl5srF73YTa++zqGmtvLWAoPKT tXWQ== 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=eWodZQs/ebn+l3L8JxwZJq7c0QZ6C7nbm96OxS70qDQ=; b=dd7ISS0wTfJvN4CY2C8q7PrfHYynyKye1tt5npmAu7i/db5GdL1p0DMckUlrTpnyut sSAlLvqflIwh7oDJDYnqQKvZunMKQSBe+4L8h9TWChLS/+CkPk9J09GVjlZMB1MIgzfN 0qBkNtUS10iOmS2O9K/dQLD0LT4DYmkzhA6mSWOgvdlvS6SzchlBa9GU7jJI451M8VGN rnLOo3yTTY1OkYl4XfH5bGfYIiF/w+AKFBdhGnHB/0jcgiH5ngZ+e/usCL4TGXI7YsBW aAW9lM0nl0MfsocFHOOilIQlZpIOVFHraslXuQDH8VuSpkqSR5nwj1A5O9PIRe2srlhp I5GQ== 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 i33si4402146pgl.159.2019.06.08.03.59.24; Sat, 08 Jun 2019 03:59:40 -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 S1727485AbfFHK5z (ORCPT + 99 others); Sat, 8 Jun 2019 06:57:55 -0400 Received: from sauhun.de ([88.99.104.3]:51934 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727178AbfFHK46 (ORCPT ); Sat, 8 Jun 2019 06:56:58 -0400 Received: from localhost (p5486CBCC.dip0.t-ipconnect.de [84.134.203.204]) by pokefinder.org (Postfix) with ESMTPSA id 5A7563E4795; Sat, 8 Jun 2019 12:56:57 +0200 (CEST) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Mauro Carvalho Chehab , Greg Kroah-Hartman , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 31/34] staging: media: soc_camera: imx074: simplify getting the adapter of a client Date: Sat, 8 Jun 2019 12:56:10 +0200 Message-Id: <20190608105619.593-32-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/imx074.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/soc_camera/imx074.c b/drivers/staging/media/soc_camera/imx074.c index d907aa62f898..14240b74cdd0 100644 --- a/drivers/staging/media/soc_camera/imx074.c +++ b/drivers/staging/media/soc_camera/imx074.c @@ -409,7 +409,7 @@ static int imx074_probe(struct i2c_client *client, const struct i2c_device_id *did) { struct imx074 *priv; - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); + struct i2c_adapter *adapter = client->adapter; struct soc_camera_subdev_desc *ssdd = soc_camera_i2c_to_desc(client); int ret; -- 2.19.1