Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1163209ybi; Sat, 8 Jun 2019 04:00:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXVZakmdo0c+SCtB4/KhRFTMjjysGpevKV6S8HX7GeYzye8dsCex1bHPAYLBmcH7X6uLiU X-Received: by 2002:a62:2ec4:: with SMTP id u187mr62919022pfu.84.1559991601429; Sat, 08 Jun 2019 04:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559991601; cv=none; d=google.com; s=arc-20160816; b=KwQRP2XCbnf80+qsmh7Yso4Ksq0nJP4GZVtL4kU7CFP0g1Du19W8o2DBREtTmQAq59 z9SH8gA7ovrGzzNZnTmG6xqXpdsb/sUvqRsiCYIXALZy3CuNinq6eD3IUFskw+OpsyE1 0xmcJnN8dc0D0wxaWStr23NKjSwv9j3D8Pzuq/16wq5HU7600/HWDVGWuCVQ9OWHB5jI NwtLEwzjCqZ/7+94C8cjtzGbtQpVL5yPHiX3AMK84rkrZcLqiFXAH5Os+wjJVArcAGs+ e5gyDDJngFwF2xZp35TrRWsLhIi7oCYu03385Mbsa7UUYA3AiV7B7pQMOrLmue2HvaQB aihA== 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=vT8w/ElzeP5o1HvZBBFmdod2mW05OTaiIatjDC4wDBQ=; b=ieYJswcRN972znuVbdYBlAD2rYecfktF9qVs1AffIYbZUvAqiIfMBLbTeVVkI9dPVi 4jjyLjt1rArzMHerd8AYfsnQ3uV6rnQFzf8V9Tz16JKdMbcH9Xu9RCyfMuSH6umlQlnN n9pPVCKLPXcOIo3lOkbFjczzQv0G7FbWxLVSIP8b9e+8XlrpaRh4CL3Wn1AGcpde/UWv 4wyFHW+6mIsFoZtZpDQGXMAYbIY+H+1MwJRY0742POnVkOxcps/rNDq9nwvmDed7Gwgc Y0heqDT0qjEgntJXXgiQihVMkNB7nIdjkhaVKoecm77WhtrYJObHo8VLwfM7JMFBB4bB Ztyg== 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 m13si4300059pgv.398.2019.06.08.03.59.45; Sat, 08 Jun 2019 04:00:01 -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 S1727538AbfFHK6L (ORCPT + 99 others); Sat, 8 Jun 2019 06:58:11 -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 S1727142AbfFHK44 (ORCPT ); Sat, 8 Jun 2019 06:56:56 -0400 Received: from localhost (p5486CBCC.dip0.t-ipconnect.de [84.134.203.204]) by pokefinder.org (Postfix) with ESMTPSA id 3A59C3E4794; Sat, 8 Jun 2019 12:56:55 +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 27/34] rtc: m41t80: simplify getting the adapter of a client Date: Sat, 8 Jun 2019 12:56:06 +0200 Message-Id: <20190608105619.593-28-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-m41t80.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-m41t80.c b/drivers/rtc/rtc-m41t80.c index dd5a8991f75b..e55179d74377 100644 --- a/drivers/rtc/rtc-m41t80.c +++ b/drivers/rtc/rtc-m41t80.c @@ -876,7 +876,7 @@ static struct notifier_block wdt_notifier = { static int m41t80_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; int rc = 0; struct rtc_time tm; struct m41t80_data *m41t80_data = NULL; -- 2.19.1