Received: by 10.192.165.148 with SMTP id m20csp891756imm; Fri, 27 Apr 2018 09:08:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqD2gJcyHBIFac6cXpqyKDcfE1Wo62GX/knoIHdB2dlcuDdi+z723E5WjgXBXe65Wwi1A4M X-Received: by 2002:a65:6216:: with SMTP id d22-v6mr2678679pgv.344.1524845301508; Fri, 27 Apr 2018 09:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524845301; cv=none; d=google.com; s=arc-20160816; b=iYr5xlaq22ufFr786GpO2HDWBkyUOSNLXxYQp3WvIj3M17LjAJXjbjLTIBkva3d7Mo povi1OFnyRs9jHJT2PnDR3m45ub7dXiMbJUipW0jgxxB24XHZpVCUpN38HJ3ce7mCeFe rYmnrVpqiV8oJu/HB061kFfGp9QwMc11LZlYCfAvvDExHP/sbptOKNNyOkPPpKQlU2w6 ZRF3B1B4rPGpy1mfpNGQq6rzgnfEn4pIkGMNKHutjC5FYcwRxw5HcRNjHYaJZ1o3krP/ TaqLMq/35+U7iVQg2C1s0MOMLLFhD2qoipi1QQdl/1a9V8iZp8e8mHCCFtnc0xdcAWJn be7A== 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=OZ9o7zAypGbUg3sz6wpxIu9RXLvmGnw7QVP3CE3TKfxIz9HCF9MdOhg78mjkwjK2GF XRBgQNBLeaaNzb/JwZSKUZkUKD0YxtW2RSZET2xOrhSY/2cf9cfG9u0a9+5AuLIJ6GdQ 5nq4PuCVzNYvPBjaEeE7n6VlLZoDoPbw6/p0po/iELlz1/3CSvswLlIP1Eb7lBLEZ2xd BtpAp2GpgR4B3W2HmKEddhq7nPXtZsWDv4hMggE/3q3YH0ruc3/egQBgyRhbFSSVDxjF UElEAd/E+yuh+EKD3Cn5zu2NzwI/QmzJU9VBUtFN43fh94SaoZPKrdOb8aandaGxt++6 Byig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C5fVtVm5; 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 b79si1477678pfm.104.2018.04.27.09.08.07; Fri, 27 Apr 2018 09:08:21 -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=C5fVtVm5; 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 S932980AbeD0QGh (ORCPT + 99 others); Fri, 27 Apr 2018 12:06:37 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:36173 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758609AbeD0QF0 (ORCPT ); Fri, 27 Apr 2018 12:05:26 -0400 Received: by mail-lf0-f66.google.com with SMTP id w8-v6so3447910lfe.3; Fri, 27 Apr 2018 09:05:25 -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=C5fVtVm5LJgSc2CSf765xrOxYvXd+x1XSXBONVyhOlSWFlUEh7Zn4cQPja//EWdQFB 9UeZfDSU0b6RwFT/41ZW9hVPwlAuvlA9goxEzCavzvKoQ/+E7e/bVsF1zpbDEp3kVYpf m62rEdZRN3v65RvwBNMwux3OL0tz+56cdoqarqRCUv4xtze9ODnrN1S/CsWmZNRUfaEM zj5f/2SEOMC+KM1ORw5+z8R9JIBQR0OSQhMYhxHYl2c/eOkHmL95AqANhgveAZX4zgRI Q0uKMJMpvfrBaQJhztJvUTCSlieKF+/MAOprUaUnRTL3GE8LtHEVZoNrkx6ysEGsR3w9 VBlA== 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=jQBgPHuxXltUb0BvF/CSgVK7RNS8S61jZiPIaksTHu3e5hbOVZD2ZAK2mTndyvvyc3 BOXATHs5MyDiEKi/H1xryX9EBgNLYeIKN0R6S1wMA+Jo45T+aqnZRT76SJGnlndX05wL cDDtqCp+aioS/xxhgEnJpLyZ2zA43DQDABoMqeRYsUt7lp2YXg7eGCrYeACVmlYGVkSk uz7UyTzBi5END5QOXhXmJ9UjjXKhyDxYGEjrplM2qkX12wlv9mgApxY5B3A54JgejHk7 wWRSKXOkFtsdLoGVgXSsny3RnLwIAvxJQ4rmR9sx2/x3JgPfrrXeuxY9EwXqRv2eyl/4 YOvg== X-Gm-Message-State: ALQs6tDBmaH74IoU087vmhir6PdCMMu90UwwpMT1OGfozUYeiDQqRqqT 0DmfpVXRccJ4tMwBa2oM0mg= X-Received: by 2002:a19:1995:: with SMTP id 143-v6mr1975097lfz.121.1524845124573; Fri, 27 Apr 2018 09:05:24 -0700 (PDT) Received: from localhost.localdomain (user-94-254-173-44.play-internet.pl. [94.254.173.44]) by smtp.googlemail.com with ESMTPSA id j85-v6sm324083lfh.5.2018.04.27.09.05.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Apr 2018 09:05:24 -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 2/4] power: supply: max8998-charger: Fix platform data retrieval Date: Fri, 27 Apr 2018 18:03:00 +0200 Message-Id: <1524844982-4714-3-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524844982-4714-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1524844982-4714-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