Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1162412ybi; Sat, 8 Jun 2019 03:58:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzITU8sCctc5z9oYsnMmP4m4TVMp33AruGv2fzte7IoZXejFireMCxrIZpI38nwCLgr8l85 X-Received: by 2002:a63:2159:: with SMTP id s25mr4956218pgm.234.1559991519899; Sat, 08 Jun 2019 03:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559991519; cv=none; d=google.com; s=arc-20160816; b=C+tMyyPLXKQ0tRptw3vPfB2FWlLL7b8hYFXiwT6XeHW/3j14DEpo3/B++i7woP6KLk Z9Ki6RuMEU4mpS31VaGATQn2MmD19lvhI4vAXy4cV12evz8GziL/QXcLGGSR9vQham+K HJsNXR5da+ecl0owPZD1XMbrLuNx6uLJhgAD0jHC9Z4yZcHHMa6NJbpwf4tBxVJh3IHk uocKjxscbDCVEtU4rXn/r9IdeCTRr0HByS4qbtbLfloXxWC9UQvxMXwzuj9PFxseDVgM mjkZzL/CJVXYSliSMj+LEELTIJAhZSf4oiCW5wBLrpjnF964b28NPAA0zBrqAe7Tq34K 9giQ== 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=OoezLrhRU7mN7EOnxcrq0Ihva4e5WhjVywaQXKRSBNk=; b=GOcODVFkfhI2zFtsjVjO/CqVpTz1tD5tHLKcETeK04wzx7mkRpr+sK6f9wtkWcr7Gz vIOgE8lQtE+pfVvVQnD9oKpfAYIYDQCGMvP5Q5wPTO1sGedB2UO9zUmCVrif+TttGrbb dEdCK6t0mSwDBzMIsmWRzliV1u5F7WKm8FfbkWHvXFzLhRlaDzoghWMS1MqAeYNvXhh8 aNbDk9P4yWxUbRgrbnsS7DxX6W7lRIePbzm+a+PPV1mGyYLSoM3BWVBLExPw1tgPuUYs N+8dvWrSD+GDwZHAPhHOtdOKnZAazEEBjDOXVtIv2evnMWPKPSNlrMpC/vT7bpNqp4gM Ujcg== 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 z12si4231667pln.207.2019.06.08.03.58.24; Sat, 08 Jun 2019 03:58:39 -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 S1727251AbfFHK5C (ORCPT + 99 others); Sat, 8 Jun 2019 06:57:02 -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 S1727161AbfFHK45 (ORCPT ); Sat, 8 Jun 2019 06:56:57 -0400 Received: from localhost (p5486CBCC.dip0.t-ipconnect.de [84.134.203.204]) by pokefinder.org (Postfix) with ESMTPSA id 4A08E3E4771; Sat, 8 Jun 2019 12:56:56 +0200 (CEST) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 29/34] rtc: rx8010: simplify getting the adapter of a client Date: Sat, 8 Jun 2019 12:56:08 +0200 Message-Id: <20190608105619.593-30-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/rtc/rtc-rx8010.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c index 7ddc22eb5b0f..2b58b9b683a9 100644 --- a/drivers/rtc/rtc-rx8010.c +++ b/drivers/rtc/rtc-rx8010.c @@ -437,7 +437,7 @@ static struct rtc_class_ops rx8010_rtc_ops = { static int rx8010_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 rx8010_data *rx8010; int err = 0; -- 2.19.1