Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1164372ybi; Sat, 8 Jun 2019 04:01:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxwcCIQK0GngoQnw4q0+cOy7MuBtsgH1oe6/C08tPky4cKME/w9GQv3eRlsHSkcFFN2khdA X-Received: by 2002:a17:90a:5288:: with SMTP id w8mr10759751pjh.61.1559991676038; Sat, 08 Jun 2019 04:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559991676; cv=none; d=google.com; s=arc-20160816; b=Pgaw0hsJDGHdPwllaJWv0VslOoaEQrhc4jo4+8a/hMnhZYTlIt4+b9pJaPdjytatcU UEGaO9d22FL4Q+9ddLNMqqoAycY7wcLbmx7ek/Ul5cGcjW4eU2epBuuDhOUBCCoMpwvI rLqpaAxsRQQS7Dye3hZ0dIGx2TT2h6wQbfvRxcDMP+23bobCKd9Z09/BZXVIeviYsX0Q clMayAlEJsNN5VADjnikGxLpEr2Rd4xKbGjOGnInh8HmqxRuuhR6MmQjqUlII+rX6Rlg UMueU2EnjHnXGyfib8o/lb3ij0EBUR+LcQb8HYwbxe8JNjpjQe68wcX1BIAuJCcPi6a4 RrvA== 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=M9Xpwg8olAkIVlMzr/UbOQDswuvoEU8xS1hgJFuYV8U=; b=LxRBOx1iStsbp+MV9YfJZkGbfZCWLLvIBqZJhT871lK7tfYyTOdyvQtwBYbnBpz3xq 0RjjYruzN3m1n7UyOSakTcxYMfWqxmKsFPOSWC6Tubjp89uTcXyXUPshNGrz6vPkWTRi rTMChqiDej4omZvR2Ym7QQzPVE+uXp3vzrrwFSCF+WN29Xm0AdypYO7iqRf0M1eIddwz Kejj8VMG0IpOhLRFmIrFTda9vCZ/QWpj+FBRhGpfz+oFLVpMf/KHQvu9Hq1AyIeXPUi0 q81bSuFkOcPnDRTfkJpIfB3XAgYAr9sI/Ud3oRZdJ9rbVYHIrFUfZ/5y4bpObWAuz3xh u0+w== 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 b38si1123951pla.65.2019.06.08.04.01.00; Sat, 08 Jun 2019 04:01:16 -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 S1727522AbfFHK6I (ORCPT + 99 others); Sat, 8 Jun 2019 06:58:08 -0400 Received: from sauhun.de ([88.99.104.3]:51862 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727153AbfFHK45 (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 BCAA33E4770; 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 28/34] rtc: rv8803: simplify getting the adapter of a client Date: Sat, 8 Jun 2019 12:56:07 +0200 Message-Id: <20190608105619.593-29-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-rv8803.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-rv8803.c b/drivers/rtc/rtc-rv8803.c index 0b102c3cf5a4..fc5243400108 100644 --- a/drivers/rtc/rtc-rv8803.c +++ b/drivers/rtc/rtc-rv8803.c @@ -517,7 +517,7 @@ static int rx8900_trickle_charger_init(struct rv8803_data *rv8803) static int rv8803_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 rv8803_data *rv8803; int err, flags; struct nvmem_config nvmem_cfg = { -- 2.19.1