Received: by 2002:a17:90a:37a3:0:0:0:0 with SMTP id v32csp4112124pjb; Mon, 10 Jun 2019 10:37:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSfl8QbuV3bWnKptZti+XLYKlvOFTEIrzQFzoiTU5YcJJwBWKwDRa1MNxx8ASmdCOKfSeZ X-Received: by 2002:a63:b00e:: with SMTP id h14mr16486978pgf.321.1560188232461; Mon, 10 Jun 2019 10:37:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560188232; cv=none; d=google.com; s=arc-20160816; b=xsvRBMHBZZaDUwBtd/24yyNLTvM0+hUwzn95vRd7RGJQb8AwvD9usmsQd/mzmhgvEs KCWlJ7dxDqeIBaoNvmznmr/XYmRhUROh9KYwsIp+O5NMiftoa2WDfpWxxkXsVPBNjZQv birmqaveBhB8tOALXtGmO2VAJTvJfhzPBhHOyrtyiuHm8FDZjIVbj1G0Q3HvLvYl9wAy XE0zOMpIkOrfYacev+SgY60kYq7H1dPS6G+/2KB+8g+qxa8cfnelu+uukL/oegN6rLTB LcwGNMjz6k86CFaylypKpqjuDncWRjGEYi6UJ/MIvx1tYja0kMN1yoEVzPNHLfu4kO6S ZQYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=WmWx1d5ZiY2U4Nqy7aAua5rzNc7jtyqb64fzhepsCbs=; b=GsJuOrCuquy3nrzuyEOGJXN5o2cv7xjBfQxX206BWVU8bpMJBgE0k+WFHtBd0dLxeX fzMJFTB+0LA7YbTiWZ8T3nnqjie32C9BLhdHPzJflxzkIoGpW6V41Chrdgmt9JgoQ9wJ EzKPKnpPnClcJmELfdYrLj6GJuznAIz7f1ikY/6tpST1xpiiW/qtkHf6c1Xz3trF3Zpx 0zomcta6T1p4h45UihtYC5uXvTyHct45l2H0YX6Ps0V69YB8RlP+Q9S06eedciLkGCHP UlPnZWQYgMA6qswPf1Znd+xWtE0TCJdcik5rCzDd+XPTM6Jr4v+oKmog8hqAGtjFNJnj edGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ejX2a8rT; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si9809901pll.53.2019.06.10.10.36.57; Mon, 10 Jun 2019 10:37:12 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=ejX2a8rT; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388207AbfFJRev (ORCPT + 99 others); Mon, 10 Jun 2019 13:34:51 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:52992 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387492AbfFJRev (ORCPT ); Mon, 10 Jun 2019 13:34:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=WmWx1d5ZiY2U4Nqy7aAua5rzNc7jtyqb64fzhepsCbs=; b=ejX2a8rT1GNj L6p7eJrhEy61yaaxVHEJDbji7wV5Atg4xjp49wZfJA3VaSfcAfuWKI83Wc/J8MtPutJutQKGRcGGR W+3X3vvV97fVaQD93g+BmOSKPuCJdv569Eg+hg3WHkcPvWgVSzotuT3HwOfme6/hkAlNm6hTRcCuN 8iQ0E=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=finisterre.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1haOBz-0006G3-4e; Mon, 10 Jun 2019 17:34:47 +0000 Received: by finisterre.sirena.org.uk (Postfix, from userid 1000) id B100A440046; Mon, 10 Jun 2019 18:34:46 +0100 (BST) From: Mark Brown To: Wolfram Sang Cc: Liam Girdwood , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown Subject: Applied "regulator: max8952: simplify getting the adapter of a client" to the regulator tree In-Reply-To: <20190608105619.593-26-wsa+renesas@sang-engineering.com> X-Patchwork-Hint: ignore Message-Id: <20190610173446.B100A440046@finisterre.sirena.org.uk> Date: Mon, 10 Jun 2019 18:34:46 +0100 (BST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch regulator: max8952: simplify getting the adapter of a client has been applied to the regulator tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-5.3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From 6b96092a6bfa65566dda2f5a68a559a743b8d132 Mon Sep 17 00:00:00 2001 From: Wolfram Sang Date: Sat, 8 Jun 2019 12:56:04 +0200 Subject: [PATCH] regulator: max8952: simplify getting the adapter of a client We have a dedicated pointer for that, so use it. Much easier to read and less computation involved. Signed-off-by: Wolfram Sang Signed-off-by: Mark Brown --- drivers/regulator/max8952.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/max8952.c b/drivers/regulator/max8952.c index cf2a2912cb1b..451237efb359 100644 --- a/drivers/regulator/max8952.c +++ b/drivers/regulator/max8952.c @@ -192,7 +192,7 @@ static struct max8952_platform_data *max8952_parse_dt(struct device *dev) static int max8952_pmic_probe(struct i2c_client *client, const struct i2c_device_id *i2c_id) { - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); + struct i2c_adapter *adapter = client->adapter; struct max8952_platform_data *pdata = dev_get_platdata(&client->dev); struct regulator_config config = { }; struct max8952_data *max8952; -- 2.20.1