Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1165665ybi; Sat, 8 Jun 2019 04:02:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqycFpgOj5mjnK5pSWjXmZLLLZV3LtoW6IskGtFIvKytxjR/k581SkNo5xQTR1fisY4yravm X-Received: by 2002:a17:902:a70a:: with SMTP id w10mr57950483plq.250.1559991753376; Sat, 08 Jun 2019 04:02:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559991753; cv=none; d=google.com; s=arc-20160816; b=J/MhMDgY68j6TDldEg5Ymp+5AL/E1dWVMLlZlqYL9D1t7QP8qk6mtPjPMbSelz5YZV kn00iBo5CjW9CsZzkRW3sGLCXMbV9xaRXRfCj37QoHBS65oC5eMHJ2h5GpM2tCIo1aw3 yTmesVPxxyCNgdgvIXNQ2ZbeVoRL7MLG+261gyfR6XTJJYCM5h2Djvmo9fI80xJMrwJC l8qL5ZDdjsbtezwSq7ar1JAZxNxy/fCXGys+q2glJ8v5yc+mlQwh5uDQkrKKiRvOLmQ3 1LwtU5bnID62KHNgbOwH3ukaVl3O2Cgn4arZWy0xwmVoSubWI/PynyA7nXLiMRlM9RyC YsfA== 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=AkK5jIeu5ozJYxbe36zW+0kNsrED4+imkVSDjL8PTIM=; b=aOb6r9saUubK3aa9l6XoRBbZD+9K7bsmjzllvxdg+wD8Gcm26CDDewZ3eQhm4RyW7+ M/L5aeY4NFnZHlwPlH9mAI4pjsFa05wblx23U4ESGxGcitGvesmzldah1DJqMsOyk7cP eVPS1q4ryOTSy5Qk+uWYElx/397TNPK/FENsOBzb0JkZipbKixSWaQgrR0Pod5WBLRWJ FPe1Oxgw2oGKWKVlB/ZNxwiVx+FipiRAB0fP07SANqUfPYlqjgTD4k3lH4g7pF58Polw JaG4P5IHWYi+kj4AFxpGyoEGlXQKd3BGe4hlHNiZ9UkY3TIP0WKNxfnxBQO/brwaWsw0 +IgA== 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 m74si4568665pga.410.2019.06.08.04.02.17; Sat, 08 Jun 2019 04:02:33 -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 S1727674AbfFHK7O (ORCPT + 99 others); Sat, 8 Jun 2019 06:59:14 -0400 Received: from sauhun.de ([88.99.104.3]:51870 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727028AbfFHK4t (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 5A5523E4771; Sat, 8 Jun 2019 12:56:48 +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 14/34] misc: tsl2550: simplify getting the adapter of a client Date: Sat, 8 Jun 2019 12:55:53 +0200 Message-Id: <20190608105619.593-15-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/tsl2550.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/tsl2550.c b/drivers/misc/tsl2550.c index 5b7afd6190fe..09db397df287 100644 --- a/drivers/misc/tsl2550.c +++ b/drivers/misc/tsl2550.c @@ -336,7 +336,7 @@ static struct i2c_driver tsl2550_driver; static int tsl2550_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 tsl2550_data *data; int *opmode, err = 0; -- 2.19.1