Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1049502pxb; Sun, 19 Sep 2021 04:39:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKjWX7VDOHkE8cYNowaJNCKdGXN9Ghf3S8fn4AXYj5oL3808RK1+cr3eakY3f6wmkE7Q2/ X-Received: by 2002:a17:906:9811:: with SMTP id lm17mr13960396ejb.334.1632051547904; Sun, 19 Sep 2021 04:39:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632051547; cv=none; d=google.com; s=arc-20160816; b=AMul61MdgzxpHsmR26nbca2hUKx3BE6tP80O6NNxNFT1tibWjMDDjlCuUd8I8yD2Mq Fb6QNAbSJQAT2jInc3y3C4cXrgV6e4CmZTR/rX8lqcQsC158WKhxLlYdAp2r4MjE7mEj b5Nit56pvv6XdKJ2XDTiwYfUmoMR3TvBbQCCWPxgUnWHtCNztzLb7oU1jz6s/jJNfP8l q5k3UNslfkI29UZtZ914CxFJskUe9acT6Mf36jHBeMDqSR+G6moft5CZWZP0A3y1GnKx PcNd5Q03ASOIK1fkZPcccPYBocRQsP/TH9X8yPhb4ev6neQgnQhGUCmafGI5j0mC78IS EXhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=iIdPw881ti6vNOu+vagumlbPKaQPiFJK3VxPlQeQwFY=; b=sqTpcPGLoWkYcQiKTWgQmLGI2xs4FWGoBAzYsbn1yAXfkiX573wG6lF/BE7eWdGZlT Lt1nMPm5z/iPu/QS0kU3c2mfEYjlbm5YGp7pOTuYfIMX9mU+ZpKg9zczpYTrfIeWW1Hi OgaNRpuwdPXFFxOzlKWvC9NqPbd/ClL88gFyy+6T2quVhzmiuzaE2cJA/gOYai5fkh6G p8W6lClqBo75fAVBi5ZKHC/X4OJQh0Y53MdoksVac06ovAg57BeckQvH7yJvjHvpLY+q OuMG9w7tUpR2Hc/gw0oPu0UeNQIen7txinoK36M76gow4NDPm3z8tOfJJUWVqb/ySxGo UeKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=EIo8ZOkE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si17039086eje.548.2021.09.19.04.38.44; Sun, 19 Sep 2021 04:39:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@sang-engineering.com header.s=k1 header.b=EIo8ZOkE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240191AbhIRVhh (ORCPT + 99 others); Sat, 18 Sep 2021 17:37:37 -0400 Received: from www.zeus03.de ([194.117.254.33]:54490 "EHLO mail.zeus03.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232932AbhIRVh2 (ORCPT ); Sat, 18 Sep 2021 17:37:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=sang-engineering.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=k1; bh=ARiahHC6k+NjTjrEaNx+OU5tcyN c1iADXpTMrPefQdg=; b=EIo8ZOkE4FYuKekk8141XXhW6SjK1Jz8IfwaYRfiO3+ q27mRIK4Ouo8xxm8NG+Cc2RXzzwFtq+/WIsJembdaTdCIOw84174d/NW2W6hd0Gr 1yI1Lf3grX7+hMhTe6NXWzW2rClN9nIXy6NDtdSUm2M6m14cZG/uFYGSCAlkPSYQ = Received: (qmail 1967002 invoked from network); 18 Sep 2021 23:36:02 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 18 Sep 2021 23:36:02 +0200 X-UD-Smtp-Session: l3s3148p1@ahQr1UvMzpMgAwDPXyF2AO3QmsoMF7XN From: Wolfram Sang To: linux-kernel@vger.kernel.org Cc: Wolfram Sang , Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org Subject: [PATCH 1/2] rtc: rx6110: simplify getting the adapter of a client Date: Sat, 18 Sep 2021 23:35:51 +0200 Message-Id: <20210918213553.14514-1-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-rx6110.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-rx6110.c b/drivers/rtc/rtc-rx6110.c index f4d425002f7f..758fd6e11a15 100644 --- a/drivers/rtc/rtc-rx6110.c +++ b/drivers/rtc/rtc-rx6110.c @@ -422,7 +422,7 @@ static struct regmap_config regmap_i2c_config = { static int rx6110_i2c_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 rx6110_data *rx6110; if (!i2c_check_functionality(adapter, I2C_FUNC_SMBUS_BYTE_DATA -- 2.30.2