Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp485534imm; Sat, 14 Jul 2018 05:29:11 -0700 (PDT) X-Google-Smtp-Source: AAOMgpespiLwZXjnzLlEpHS4eozAxcq3d2CkGLElJ1SMhZZcDFZkNn2NEOwnnR6GIaMn4fWm6zM7 X-Received: by 2002:a62:5290:: with SMTP id g138-v6mr11031693pfb.46.1531571351812; Sat, 14 Jul 2018 05:29:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531571351; cv=none; d=google.com; s=arc-20160816; b=YSeMUkRRIejoz6TC8kc8HOnGNtdbzWJ46K8n1Km5YbjqZyXhBEj2V6JHogjtOfNUgU uFrP9iFR8NoCJbsMd5q3DJ3Ogv1PdPVjl3TjB0akTRS7bKBQx9FwkuOySeaEvmvy9aJD rORCdGJD9W+0/yNqkPpk+KvifFMCmlQylJfT5x2Cqj6+if2oColzcKJWzr1hJ62irYcN 9yf31zQfwC8BBlk6abzkxZboaOtcdFOuZWJD5JoUZSPhEpZuN0GqytPRRDNL7goly5Sx 0ykIzF5Potcv/dPtPoOAGOEau/RXIsHQkFRPbKDpQGKZiCFisdCcHvGnhzulorQMLQZj 96KA== 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=MtaATi3c4SDxqbV0UcKf/2dEc16eaPuZgTSHEmwXq7NcvMsoDIOESOMN6drwOsRdxr 9ToQZQhxF1kxq5wPKfr4T7el8uwDrUPJzCXaZ4Z4/JVAsxPTg5Pc4BVnxXm29YSQRB4s CiimAITRpTsUEoYAODb4Hhb19gilMVCqv2ueT6sGe319GS/e6Oo/SKFU/fNFRhS/RIkd NAo4cEgqNQyayX2aAiDageDbyvcXTzl4sTp8B+KEZRST8HygBWd/V6B+QaCk6kJhqxLe QFzoGpReJWiARdrjb5/blQRXfOnjwBudazd7taOgQI7l8CpCCzU9zLQpPy8fgJiLVk8M uj/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uKrJDdUS; 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 u8-v6si25574537plh.492.2018.07.14.05.28.57; Sat, 14 Jul 2018 05:29:11 -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=uKrJDdUS; 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 S1727494AbeGNMp7 (ORCPT + 99 others); Sat, 14 Jul 2018 08:45:59 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:33979 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726129AbeGNMp6 (ORCPT ); Sat, 14 Jul 2018 08:45:58 -0400 Received: by mail-lj1-f196.google.com with SMTP id f8-v6so8675763ljk.1; Sat, 14 Jul 2018 05:27:01 -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=uKrJDdUSDYGZwNX4HKJvB6NJt+Ny0jyu1AiWwX3kExZIkfu3hVBYF+l+gO1/zMPif2 X6KpmXVSrw8v30NdUMRwArliNzLz/XR/i4gZLYP5cjhhxjIs73jIRqsW2814iyM8xYio LBVWWtfSAw7k+jCWTvtmKjxgLHYR9sPWLTQhKtAkjtkauP0bioc3Jkt/ORhek12jB9RS Cy2HQCr1ikitzQp9dnyXp7zGOxq+ko+x/2mOrg1iGLjgfVmeC7h+FBbzBMII1GKjeXRl AGoELsQ2Lzm1Kx2wBxK72n8yWGbJuv4rVwkcXgS+YIXmut310UvCRyz7GSM+ls3PaMvC ezkQ== 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=dWmng6N/nm5P5I4z9RbGXtb65awX0ouCbZN9HBecQYvHgZ9aeBCHJcLA+vpx1ebfae ffyM7bh04VLVGA2esTfSyKDyudp6mXSNs/G09WrCInJf6DfaZ2hJyfdQ3tYvRmwOgxKv v8+dyfJM/mdyc7hUfQ5lAJas9QLsd4jN+v6AiEBkvVgZVA9F5yNRhqBnjZrX+cUL7bLh I78XSn/Kk7Fmlg0BZoH7t2jcFA1dQeSwIfXBfW7Gl72oK8pRv1wdjb1rnWggAvmqjcWF cdbqHbYK8WsJFpWNPKOPxNsdMvCYyC8EF9S4F2+iNKkwjuv1bE8fRDH4ty0W70AW1LCq +Lxg== X-Gm-Message-State: AOUpUlE4QBvkPcvkNK0IZebmV/R3JMz+gsF4QQXvAollXDUdsfE/3cIm KbfgS5/utVo1TZBEEoX4WDU= X-Received: by 2002:a2e:8743:: with SMTP id q3-v6mr5306530ljj.139.1531571220893; Sat, 14 Jul 2018 05:27:00 -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 l3-v6sm5860732lfi.36.2018.07.14.05.26.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 14 Jul 2018 05:27:00 -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 v2 1/3] power: supply: max8998-charger: Fix platform data retrieval Date: Sat, 14 Jul 2018 14:26:51 +0200 Message-Id: <1531571213-30593-2-git-send-email-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531571213-30593-1-git-send-email-pawel.mikolaj.chmiel@gmail.com> References: <1531571213-30593-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