Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1163043ybi; Sat, 8 Jun 2019 03:59:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjl/fuh8Sh3y/yxtZlph4/c7pXjaQInXQf8D+X0f54XHXJHumUEFLF08JcZ3O5p966HAf+ X-Received: by 2002:a63:9502:: with SMTP id p2mr7242111pgd.12.1559991584837; Sat, 08 Jun 2019 03:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559991584; cv=none; d=google.com; s=arc-20160816; b=NMUSVWlEVt4UyvuzEignnfK4JnlSAUpZPoTXg8Fs+uGBMBM/LlNrrmFrduUvQKkINO VclUUqn5nEsLxSfe4TL8o0cc7v5/DaWKylOQXIWFtBkMkOD1lUMeg9n25wcZVR9zmzhx Sf6YtIO09IuCmsW0V1VzAxJRBzupx1D9Q7feaGLFNQCPXKJh5ApcM7nU+CRbSyueU2j8 opi2bzNs13FiMeuBpV6LVqXfz4eBOMRojvGvhftPj2zNvUFIqofETB1O1A++aKJCwayh bO4l16DnnpzLORfJ1Hd7LRAxnQKOf9y4ptNC4jF3dxybjWnQvWePTLqYbBcMN4X4aR+g wZ3g== 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=fxavBqted/rN5DIywbNvNhSN9pXPNxtdmSMWYODBn3I=; b=WjqbFcwBkSQv+IAzliFhzO2YkVPB5VbZ/iVGggc5qwYyTyLzemqlYs1WtKj0S0tQMq nEfaiGOh9H24jTQuhLFNC1rlNbt45lPUjqFpe/SJCkDw6zw5l1X5p1Rhht9lVuBfqB5O aQqv1yhfBGbfUhWc5BzLeMz6pgKTuUeGTfanGIdWrxw35rOxbUXNQeEwClJNO/+OvHW9 QzHQk/jbuMbR8F8y4m1u7zVQTVlmtO7YfhO80fHJ+ZFpCqxTreIm9IJcmGvIjFt5PCom eEgmg//2vB5Clb6iU3J2jHVCOqsPzP1EKTOHUo7WaXk0iew3gMBR0fqstAttY4xUB9ko aNcA== 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 q6si4307879pll.226.2019.06.08.03.59.29; Sat, 08 Jun 2019 03:59:44 -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 S1727505AbfFHK56 (ORCPT + 99 others); Sat, 8 Jun 2019 06:57:58 -0400 Received: from sauhun.de ([88.99.104.3]:51874 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727166AbfFHK46 (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 CC22C3E4786; 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 30/34] rtc: rx8025: simplify getting the adapter of a client Date: Sat, 8 Jun 2019 12:56:09 +0200 Message-Id: <20190608105619.593-31-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-rx8025.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-rx8025.c b/drivers/rtc/rtc-rx8025.c index fddc996cb38d..781fa992afab 100644 --- a/drivers/rtc/rtc-rx8025.c +++ b/drivers/rtc/rtc-rx8025.c @@ -504,7 +504,7 @@ static void rx8025_sysfs_unregister(struct device *dev) static int rx8025_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 rx8025_data *rx8025; int err = 0; -- 2.19.1