Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3712916imm; Tue, 17 Jul 2018 09:06:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpelNTgsGw8pMQwJ7K5DVcM/hz2RbnDMe6EA13LY9s1xi8iGMApRYfmNw5mKog/ptcykPKFB X-Received: by 2002:a63:4d06:: with SMTP id a6-v6mr2145776pgb.408.1531843575623; Tue, 17 Jul 2018 09:06:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531843575; cv=none; d=google.com; s=arc-20160816; b=THrUp4KlsQCON+UNUWFlL1f9tW71e1jBWfsrLhOWkcOzUmYJzvbY1dx5WxGnfq+oLC +a57PhGZn/aGvnXH/H8wgpk4Wa3XdT+Ua8wfc/yZU/yD9vKrDgkB5GtPm0kwxtoi3AVy Ad7MtvtMKLtJpEzsyur607Vs2pF8f84qnQHhROHLhON9Aze+JPnJreVFloaIaHmED8+v nh57AkSvtfEvSGqD99wOCz3qnUTJDux0NuMjQVHLkK7LOIRJouP4xUsMGXE3ORT3oKrt 7kSy9jZ4VgYVWyv+LGEzX06YWEgSTEFp9Cl/C35F7e+FSy8Bk3blyLEoE1yDSjdr6e2/ +gtw== 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 :dkim-signature:arc-authentication-results; bh=rmGc4y2imt1ExYPAjKYiMse/xhDh77VC3NOODiIkSdg=; b=evqyn6vWuHsxYSNw2o+Xp8zze86DemtT+De0JkktjiQVVY34P0sxvDOrjqiRxtNgRH eAWE2ea1f/lSgoFjR4ruABKftKET+UWtUsErTtDnt80VGwefEJLI68ZMSiCJ8+81MSYL N7qU1nFZbYR6Q64PeHKTwHqYMl9w+JTCaz54chbOF3OLhwD/wPTq6nL95pmw6KkKjRBH EGMFffHpT3XlIlKgo7sXpjTST74hWVN1xQerSOOl4OqALFruziUAbBPpaOwfdN5aWbej Xt26VPocU32OJMwYhAxpcEFJTfMO6IYGYIbpt1SOJ70aQwr4dykiQLI3qFzvxJ6ffN2a yOlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=anVXieLy; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 87-v6si1189667pfi.60.2018.07.17.09.06.00; Tue, 17 Jul 2018 09:06:15 -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=pass header.i=@gmail.com header.s=20161025 header.b=anVXieLy; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729973AbeGQQio (ORCPT + 99 others); Tue, 17 Jul 2018 12:38:44 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:33503 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729659AbeGQQin (ORCPT ); Tue, 17 Jul 2018 12:38:43 -0400 Received: by mail-lf0-f65.google.com with SMTP id u14-v6so1251785lfu.0; Tue, 17 Jul 2018 09:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rmGc4y2imt1ExYPAjKYiMse/xhDh77VC3NOODiIkSdg=; b=anVXieLyNjPWQaX1zLjCbK2+V6qn+x65PNz8rU41HpVlZsj9xsJiR/OteewcCiVDZH AldKjDUSx5ZaKdQ0bJ4XrZj2erfhlIBKdeMjo+7bk0YgKDpWwSAo6bTIvlGC8SPvrBni iqe2zGUhE5smrYG0p+++vv+WTFrFkQrrDtqBdxR/kmW2PZx9p65EVAEAlbnYyO45itqU LgdUZFAaqAqsAo/mcEoXYTYUFjTfuWHQwq5fTVOo6Boo2fxpbVkgFyBpLpPhDtl/pyM8 sdUULnFSkmuAFqE7fRvZiCwy4z3e9aJzcdx9cXu/ZTQ4nv3hZ+mnUcaxstqgMZWHLIyL nUbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rmGc4y2imt1ExYPAjKYiMse/xhDh77VC3NOODiIkSdg=; b=f6aYwrO6yLJ2ejjy588ZU9KCvlAIp3hvvrBPzyIfTHKWORTF+DxYo6VC0Gu82q7SLi D3JGK8nPBjHaFmTWnaMmT6/qxiDv8Jl4Vwft3+49PblYEiQqmHb+tr9V0+ceG5yJGzul hDiKHjd3YUtZcOLHzlmQvsSqqtnhNAhOv9fvro+Bh1F4U/QCPjNiNmkWDgAOmwVyUVWR QvJYYvadXBTNfcZ6dRGPHSuWnMCT9C9ZGlRjfialTQtAoeqSOog0pqToa+QSCxIIH0bX nLjfWGwObn1cBBLOGtsKtNtO9xLtVevhGo9wBUlhBS5hqjIYOmKdHollaSDvK2y9hzV8 DnVw== X-Gm-Message-State: AOUpUlF8PMgwo02oCqnDFx1g73otvaXpdBlZcYHqsdibiu+cD88ijwBO tIB7NK5rgZ2PmELv1At4Ilg= X-Received: by 2002:a19:910a:: with SMTP id t10-v6mr1632983lfd.24.1531843520268; Tue, 17 Jul 2018 09:05:20 -0700 (PDT) Received: from localhost.localdomain (user-94-254-174-73.play-internet.pl. [94.254.174.73]) by smtp.googlemail.com with ESMTPSA id d23-v6sm229861ljg.17.2018.07.17.09.05.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jul 2018 09:05:19 -0700 (PDT) From: =?UTF-8?q?Pawe=C5=82=20Chmiel?= To: lgirdwood@gmail.com, broonie@kernel.org, sre@kernel.org, lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, Tomasz Figa , =?UTF-8?q?Pawe=C5=82=20Chmiel?= Subject: [PATCH v3 1/3] power: supply: max8998-charger: Fix platform data retrieval Date: Tue, 17 Jul 2018 18:05:07 +0200 Message-Id: <1531843509-3533-2-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531843509-3533-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1531843509-3533-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tomasz Figa Since the max8998 MFD driver supports instantiation by DT, platform data retrieval is handled in MFD probe and cell drivers should get use the pdata field of max8998_dev struct to obtain them. Fixes: ee999fb3f17f ("mfd: max8998: Add support for Device Tree") Signed-off-by: Tomasz Figa Signed-off-by: Paweł Chmiel --- drivers/power/supply/max8998_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/max8998_charger.c b/drivers/power/supply/max8998_charger.c index b64cf0f14142..66438029bdd0 100644 --- a/drivers/power/supply/max8998_charger.c +++ b/drivers/power/supply/max8998_charger.c @@ -85,7 +85,7 @@ static const struct power_supply_desc max8998_battery_desc = { static int max8998_battery_probe(struct platform_device *pdev) { struct max8998_dev *iodev = dev_get_drvdata(pdev->dev.parent); - struct max8998_platform_data *pdata = dev_get_platdata(iodev->dev); + struct max8998_platform_data *pdata = iodev->pdata; struct power_supply_config psy_cfg = {}; struct max8998_battery_data *max8998; struct i2c_client *i2c; -- 2.7.4