Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3310059imu; Sun, 11 Nov 2018 12:06:12 -0800 (PST) X-Google-Smtp-Source: AJdET5egK7f7i1z1e89KAuotJ8DgSqTNK2neCOEW6lnEzYmxoxvPZHlYdis3+opIM2XOEwOUs7Rt X-Received: by 2002:a17:902:187:: with SMTP id b7-v6mr17345888plb.150.1541966772578; Sun, 11 Nov 2018 12:06:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541966772; cv=none; d=google.com; s=arc-20160816; b=n14y01MGFIU4Yvtu26mSiRRSnvELGfWILqOwqo6MfTIIoFwXld9+ePHbX9Wwq5KFfX sx/KD1qmI1Wi3yVJ8IsfQycSPl7C3HKrHBJr5D6dgtuN+U1R3ctgxzEK/HL68Z/vu3P1 2GrO0iJXtv4SpHFNmDx1v20nE/eHBqeezeRsRZJRqGstZYOjezDGXmRUn7qUt2EYIKY4 i1otP19yY76hGS4V0s6iPfh9FS4FLA0xjdFwS0rLY/Gn7tJEU8qwBrHpEzrstP5ACOnj jZS/cQt72W4UVQQAWnJwGAcTDLCQysREi5A55/R+N3B3EsZh9L1ZOzk3QqpGmpCQdcy9 LEGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition; bh=A3AQkCYyRQ63KGg79k1irOyR+9Sp/yGD1zrVqTPotrU=; b=F8i46JR3dbYH1ayrSSfuEMaczB6hqyB1rtMcWI9c49GbpJI7Qywdl+O2gxFzXeWzbo LIzmqtPw6nozLtH52PAyBMuTftCWxSzTQBp7OkAtK5Clg7IMNVY3cyBfxLso2KeJM8mJ WMYiYlyTq9xDPHMjm5fuotRKUqJnxCKOZUeah9W/c8yxIrQZFgmIbYWU0zAYWlYcgp6a 6xvx9czrPDSZrJ+ROWBQMdMNH07PnWJD+1nE/KtqWC+sX4lUgSvd6+h9nl92CzMOezYo dhFqDiWKtuNfN4p6JcHv0K+S2md62SQ1BcO/eoh1FCBSefhWARVWfE4bo0Z7WKIgQ92w lKLw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si5797624pgg.592.2018.11.11.12.05.57; Sun, 11 Nov 2018 12:06:12 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731278AbeKLFzB (ORCPT + 99 others); Mon, 12 Nov 2018 00:55:01 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:51818 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726992AbeKLFzA (ORCPT ); Mon, 12 Nov 2018 00:55:00 -0500 Received: from [192.168.4.242] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gLvtA-0000l6-El; Sun, 11 Nov 2018 19:59:20 +0000 Received: from ben by deadeye with local (Exim 4.91) (envelope-from ) id 1gLvsP-0001Qc-6t; Sun, 11 Nov 2018 19:58:33 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "=?UTF-8?q?Pawe=C5=82=20Chmiel?=" , "Mark Brown" Date: Sun, 11 Nov 2018 19:49:05 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.16 057/366] regulator: max8998: Fix platform data retrieval. In-Reply-To: X-SA-Exim-Connect-IP: 192.168.4.242 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.16.61-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: Paweł Chmiel commit c1472737914fe5246a672fef6e85c9455de8473f upstream. 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 Signed-off-by: Mark Brown Signed-off-by: Ben Hutchings --- drivers/regulator/max8998.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/regulator/max8998.c +++ b/drivers/regulator/max8998.c @@ -309,8 +309,7 @@ static int max8998_set_voltage_buck_sel( 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;