Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1164419ybi; Sat, 8 Jun 2019 04:01:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpJwZJTir06rhxSvZx/YD9q6mpXyTWPF1GF/GH6RwsLpcsi4Y8HcaqH6m4jrE2ZjvYcN/c X-Received: by 2002:a17:90a:32ed:: with SMTP id l100mr10557439pjb.11.1559991678404; Sat, 08 Jun 2019 04:01:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559991678; cv=none; d=google.com; s=arc-20160816; b=vtppmcNb607Ky7Wg4vFaccNO9Sr3VHV8w9LvqP7qFZxfha8TzIpkTOIswOJFF02iYb xeYOjwkWjzj+qE/aFmz4e1gn4NBR6EuHDVnjp0gbV1qqWGejZ4A6Tqs6tgjV5BodgctF 2rUOeo3tTef5iNI5PGOUERXAbujDOjRM1CutFP4q4ZBeDnUyegpNySh5VC8WBg7/CNXg hiBU1E6OGqtXCGrxRWCQNBuraaWk+KPeg9xCG2mwuwnFoahfDLwB+Fd8BqtJlN+jap4k FgE2lNUkc03uVVDFOiuxhX6flLYvINmcF7GCLPqY86mdBWR28Y4B9viYdBwufRm9Al5V ngzg== 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=bxF/+bd0BPgk75AvAK57mzOgnH6EbXdnjCobvUvS7I0=; b=CMTRZ5QAMUX2kYX7gqmTG6PDheryWoQBKLl8S7EYdV0a11LPfGWCQ6RnT75dRLePaH lbSZYaDEH2TmSqUp0ZkzIRm8e8yeq9++WuzwJ82F+R+pgq6BTVOpFhQrOFQdO0noEM48 F4z80AnhoYO/7Bt38SCsLt8KNhnXexXbijuNTX0nKVE7Asyvt4JoweNWHpsWmoVk7Gwm 1jYTK/WG1h/U7uhns3niKy1mfrSbKkQxob/ptcD3J4lmoVp8Ep4m5EZ+OrV0yTS9x9R1 4WT3RKoyST+aD5ikdAQr3vPM1kEGHhNH1zvMCsmTLlPGSuofvn7O/vHdP01TTKdqeFtg hcSg== 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 n14si4525828pgs.34.2019.06.08.04.01.02; Sat, 08 Jun 2019 04:01:18 -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 S1727686AbfFHK7Q (ORCPT + 99 others); Sat, 8 Jun 2019 06:59:16 -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 S1727010AbfFHK4t (ORCPT ); Sat, 8 Jun 2019 06:56:49 -0400 Received: from localhost (p5486CBCC.dip0.t-ipconnect.de [84.134.203.204]) by pokefinder.org (Postfix) with ESMTPSA id CC0BF3E4788; Sat, 8 Jun 2019 12:56:47 +0200 (CEST) From: Wolfram Sang To: linux-i2c@vger.kernel.org Cc: Wolfram Sang , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: [PATCH 13/34] misc: isl29003: simplify getting the adapter of a client Date: Sat, 8 Jun 2019 12:55:52 +0200 Message-Id: <20190608105619.593-14-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/misc/isl29003.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/isl29003.c b/drivers/misc/isl29003.c index 3431a825f24e..5d0d0c3bad85 100644 --- a/drivers/misc/isl29003.c +++ b/drivers/misc/isl29003.c @@ -377,7 +377,7 @@ static int isl29003_init_client(struct i2c_client *client) static int isl29003_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 isl29003_data *data; int err = 0; -- 2.19.1