Received: by 10.192.165.148 with SMTP id m20csp893198imm; Fri, 27 Apr 2018 09:09:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZppgmf6myrcEXHGPHRwexeV4tGubt8YRXKX9pJtDLqjXr4MtZimYjxMKmXG7MYHDeEgo4Ky X-Received: by 2002:a17:902:564:: with SMTP id 91-v6mr2790633plf.63.1524845376195; Fri, 27 Apr 2018 09:09:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524845376; cv=none; d=google.com; s=arc-20160816; b=Z1A7V8TAPXCUpt5LTkfF8Z2JvtseegGlLWKhyYdyuwTNEk4K9h3URAQs3rEz+PAds2 70T1TSHS11TEipu2xxBj1zZ0whkj3vXtC19WdW/7DwsTD8T/7bqNCeZAv3W+J4GmBnPI hIPiJxabgBt0j5bSDcBG7hwZ1EUTInAYg4dYUeluqIBwgfIRcQk77PQ6t9hrJIL9AxE+ 8v3Bw/x3PpwyUaAIRiTB9WJMLLZsAPEDCmC2gPnkjltkQLwEmjjrVbFYYa6QQLKfjjQy dQJIsTUk5NBPGUtTWfJWEnvEia1ZtlwKL391WY9tN4UB2dqCx3jNH1i538lKmn1VYunv yjcg== 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=NZmFULGvpLuh4x2yBq8nSgwgf7SOOiEuHCEnegllSjY=; b=yErXRwFSzfBL6wdDt1PcCzS9HDeepxcZWp8NKYIUBiOEUllqu3wbLOJHF+VfrFaJbH Ffmwt5S5RcbUqdaIQSApQzQi6JacyNvu0gd2JfdeUjWXHCLHWSObDP/fkZ8zeoM+FJ4g fwG/yeZq49FyJfM7tQ7uXITW03c3kXttoDMxPS/PQ1f/0j/+zq6YWPnLFyCuT0hK+Sv4 QOPrp01AbHndaAOltY7Yp21L6Z8YElsCQbA0EkZBQEGbZ314n07arpO7RsN0Pqh5oRKc lSIHDiLED6b2lmeS24+5s2tpl0n0GSnj2fSjIib89IvgwJQfq/8T9/uAbEchLAsDM+Wl bEZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m0hd+DZX; 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 f1-v6si654928pgq.590.2018.04.27.09.09.21; Fri, 27 Apr 2018 09:09:36 -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=m0hd+DZX; 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 S1758728AbeD0QHl (ORCPT + 99 others); Fri, 27 Apr 2018 12:07:41 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:34896 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758578AbeD0QFY (ORCPT ); Fri, 27 Apr 2018 12:05:24 -0400 Received: by mail-lf0-f68.google.com with SMTP id r125-v6so3443145lfe.2; Fri, 27 Apr 2018 09:05:23 -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=NZmFULGvpLuh4x2yBq8nSgwgf7SOOiEuHCEnegllSjY=; b=m0hd+DZXBKd6FfMEKlW0N4S3MAiTtxGQMbX8KRGDYdtQpqhp97OvjOf56VPzdDITI1 WiD7H5k5nIwUA32L6stcgCr1kTrUeJomzhfUu2pFpMgi0QguJeBshXqEznTJTlFP3AWs ZTpRVGvJICJKx3YTwDWOQMjulskD9P2ZCqWWrCwOVvx2FXJwre4noavugIZlMEUtfzme TioUzp6fNWrk7Ori4f41owPr4rPaMXCZhbr+3OBoQmS+CXJmUSZPHFPIQH3HsONrtAPa 2Po4+6SajUaEE/UT4GAiEfUE1HpLgaoTdgwgVsYxyixFYOLhaSOkCPgDPxMd4MX2biIT xoUQ== 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=NZmFULGvpLuh4x2yBq8nSgwgf7SOOiEuHCEnegllSjY=; b=sT9ftbKLN2MAXH329EAzzVEIjZiRSs3Xzb+RaeCafFXPNaSudh4S2lz3Whe4GNRI/g P5mHmRZkwZPt1QpXwj4bmD4/cpdKROmGr9IYCfe+TSWPy8Lat8+Jqdns1IjWNf5uFS/G LhgIrlGnca72+ZYg9y0nOF6EjKIt80cFqWZ1Yqvjlr7H0PORRzd7IHxggPxJCh1fq633 iDhxNcoADCDXGPvWQaO4FTU0kBs/xhoRirWXdM6h6pRpHzKvx6Qf0i6ndk5ZuhmTJZF6 flMk2XD13TmC4fT39D8wDIeY5QYVKQx67rIbr6pS2a2midc9huaWwU5b46Mn3n++lOSh phEQ== X-Gm-Message-State: ALQs6tDApnDGMPiw6Cf7NguP8lod+9ANWF2G1l3isCTHh7OnBzW+NK7S wJXB3+K5lpZK4pfOi+8Gows= X-Received: by 2002:a19:1529:: with SMTP id l41-v6mr1941339lfi.105.1524845123258; Fri, 27 Apr 2018 09:05:23 -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.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Apr 2018 09:05:22 -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, =?UTF-8?q?Pawe=C5=82=20Chmiel?= Subject: [PATCH 1/4] regulator: max8998: Fix platform data retrieval. Date: Fri, 27 Apr 2018 18:02:59 +0200 Message-Id: <1524844982-4714-2-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 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: Paweł Chmiel --- drivers/regulator/max8998.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/regulator/max8998.c b/drivers/regulator/max8998.c index 3027e7ce100b..6a2b61c012b5 100644 --- a/drivers/regulator/max8998.c +++ b/drivers/regulator/max8998.c @@ -309,8 +309,7 @@ static int max8998_set_voltage_buck_sel(struct regulator_dev *rdev, unsigned selector) { struct max8998_data *max8998 = rdev_get_drvdata(rdev); - struct max8998_platform_data *pdata = - dev_get_platdata(max8998->iodev->dev); + struct max8998_platform_data *pdata = max8998->iodev->pdata; struct i2c_client *i2c = max8998->iodev->i2c; int buck = rdev_get_id(rdev); int reg, shift = 0, mask, ret, j; -- 2.7.4