Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1162813ybi; Sat, 8 Jun 2019 03:59:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwz+n26Hvzmr2Xio2KIC3VaXYJSXIidXjoNqfv6U1asIOVsjjICPLa/XnhI8Zd62Ybhk1SN X-Received: by 2002:aa7:8711:: with SMTP id b17mr6221888pfo.234.1559991558714; Sat, 08 Jun 2019 03:59:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559991558; cv=none; d=google.com; s=arc-20160816; b=Vk1lSwQ+bHFr8rMOgnRdveO+DpXCwxHGXqcNqjlsxlxpG9rWR6iJvVtqqaR/wkwjh7 3rOy/G5Oa9kgj3sQU8x2D3xkHug015f/6D3f7cW8IvVrGY1sWpo/jwnqxg44FZROhnv1 JQFXbpiT7Y2mmVy1kfWsg4IkPqf4CsAAQDgLaHVvSXWVPSxHnsQ0csDBSIi15fLAgwA2 t1ri5vfSeX9kNv7xHrYZFC86EifcxAjMUBuQBG+IVlRIbJLEA5n8sXMhuRoXtdBGkJrM IaKFsysDPcsE/EEtNFv8VjZeujcRYIBpze2TDgBnxTUif695VM30EKc2JuVtiw0AK7h8 LMSA== 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=Dp/E4BWJoIMveTL67Ycj/DV73PEQYWiRXSijesfcyVs=; b=ppQ7h552BP9ocFV8xHcLyrHB2Hw498GqIGMhx3l0Rl/WoOfc+8hUO/8mDpRjifjkFe nUs1hEvudYRoYkzH6anTeIJBdecUsdpLPSDD+fV7AQG1opGJUL5fRlXpu3NGVwZVKFHK sFPshaN5jo2fmPZR0fqvNPNuFnPEc5ax3bcPr5w8X+c4YswPtyd2GIx/n0vrpV5P52b4 NzkKw+SaQ94L0P6K/Ps82ebg3Y39+7E3d9ynR+vxL6WT8W5YmokrYXvZkawd9Dz6ktDO y+2YK2GNqabhYpxmuJiP1ku1Zc24TK4xLT8jWnrkVoppwI12DSM0aQGn5nRaDqgpTDMV nwRQ== 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 m39si4538042plg.155.2019.06.08.03.59.03; Sat, 08 Jun 2019 03:59:18 -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 S1727325AbfFHK5U (ORCPT + 99 others); Sat, 8 Jun 2019 06:57:20 -0400 Received: from sauhun.de ([88.99.104.3]:51954 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727185AbfFHK47 (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 DD9FE3E47A0; 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 , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 32/34] staging: media: soc_camera: mt9t031: simplify getting the adapter of a client Date: Sat, 8 Jun 2019 12:56:11 +0200 Message-Id: <20190608105619.593-33-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/mt9t031.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/soc_camera/mt9t031.c b/drivers/staging/media/soc_camera/mt9t031.c index 615ae9df2c57..c14f23221544 100644 --- a/drivers/staging/media/soc_camera/mt9t031.c +++ b/drivers/staging/media/soc_camera/mt9t031.c @@ -751,7 +751,7 @@ static int mt9t031_probe(struct i2c_client *client, { struct mt9t031 *mt9t031; 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; int ret; if (!ssdd) { -- 2.19.1