Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp309815imu; Thu, 8 Nov 2018 02:15:39 -0800 (PST) X-Google-Smtp-Source: AJdET5cSzb7ALaeXlGj5y3lhET0K36W0IxlCxlub+GgtvlNPFS/5Vg+pv7aTBpy/JnyTPIvzBXTJ X-Received: by 2002:a63:8e43:: with SMTP id k64mr3271769pge.346.1541672139018; Thu, 08 Nov 2018 02:15:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541672138; cv=none; d=google.com; s=arc-20160816; b=KkoKNdh311ZfO90tM+m7GPc08jp93XdLc6bjf50jdtjESiE/SlgW25uJrBo5yLyyJm vz6jeXDu6szXdLXjvGKlAdxFTLjW37eFQYcJVZmOB6JrFo7Mc66AlO4ry9mM/kHlhYyy cCxETU8S+gzXRpN6IW8V7TwoWXgLgQnalpu9cMjaqz0SjJ8gnQaudfHKtRDkFOtMY9If KnhCMD/YEpRXhFZp2qvYNkJlULxOWKBNNrvQ8S/G0W03c1fJnYSZBSMhGTeKIGijCH2k saGpNHDzi4EwlkF6A9u5PfCLKWvMqU1A5FAlnIqojonfW3pxmYJWn9rfw7ubYwGKoSjK p7Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=vL3eh5LPvKvAKNSnx8kKFmU+loqHiE0yrjacUl9qyFc=; b=trGBpNtEdG9nVU6FYGdvHlAbbALb25x3jxj2pLcwJOsE1uI/rJ0m9Rx21M0byrINw1 6WJZ3U+mqgOQwPKxFvp07zhmbhQkdUm3T/wf5UI35wdO/bAee/n2KqDuDA/n4qLX7H31 U2vH/rxARUNNLDv097eVu1l031B/wNiSu2KEO46/RZQck7z9Ga5iwCGKzsHAFlK8YGj1 sIX/CErpeT7heVGVtL60ne9GWUhymHe1PJx0pNDg6X+uA+mbBEBSWZnFu6vSIzMK4Vhp ujG+fO1NSDkoVhzKKuasPnGZyqwX4HudIYwly/rw1za6y16uCqyP8l23R2tFXITic9ab QW1Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9-v6si4130664plm.284.2018.11.08.02.15.23; Thu, 08 Nov 2018 02:15:38 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727064AbeKHTtA (ORCPT + 99 others); Thu, 8 Nov 2018 14:49:00 -0500 Received: from mx0b-001ae601.pphosted.com ([67.231.152.168]:43720 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726960AbeKHTtA (ORCPT ); Thu, 8 Nov 2018 14:49:00 -0500 Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wA8A9Cej021141; Thu, 8 Nov 2018 04:14:07 -0600 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail4.cirrus.com ([87.246.98.35]) by mx0b-001ae601.pphosted.com with ESMTP id 2nm92cgmv4-1; Thu, 08 Nov 2018 04:14:06 -0600 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail4.cirrus.com (Postfix) with ESMTP id 50BE9611C8B8; Thu, 8 Nov 2018 04:17:17 -0600 (CST) Received: from imbe.wolfsonmicro.main (198.61.95.81) by EX17.ad.cirrus.com (172.20.9.81) with Microsoft SMTP Server id 14.3.408.0; Thu, 8 Nov 2018 10:14:06 +0000 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id wA8AE55t028949; Thu, 8 Nov 2018 10:14:05 GMT From: Charles Keepax To: , , , , , CC: , , , , , , Subject: [PATCH 2/6] regulator: lochnagar: Move driver to binding from DT Date: Thu, 8 Nov 2018 10:14:01 +0000 Message-ID: <20181108101405.14062-3-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181108101405.14062-1-ckeepax@opensource.cirrus.com> References: <20181108101405.14062-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811080089 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Based on review comments on the MFD driver, move the child drivers for the Lochnagar MFD over to binding through device tree. Signed-off-by: Charles Keepax --- Mark, I would maybe hold on merging this one until discussions on this version of the patch chain are done, just incase we decide to go back to the single DT entry. Thanks, Charles drivers/regulator/lochnagar-regulator.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/lochnagar-regulator.c b/drivers/regulator/lochnagar-regulator.c index 182198246479f..d08fe830b39c1 100644 --- a/drivers/regulator/lochnagar-regulator.c +++ b/drivers/regulator/lochnagar-regulator.c @@ -222,7 +222,7 @@ static int lochnagar_regulator_probe(struct platform_device *pdev) struct regulator_dev *rdev; int ret, i; - config.dev = lochnagar->dev; + config.dev = dev; config.regmap = lochnagar->regmap; config.driver_data = lochnagar; @@ -241,9 +241,15 @@ static int lochnagar_regulator_probe(struct platform_device *pdev) return 0; } +static const struct of_device_id lochnagar_of_match[] = { + { .compatible = "cirrus,lochnagar-regulator" }, + {}, +}; + static struct platform_driver lochnagar_regulator_driver = { .driver = { .name = "lochnagar-regulator", + .of_match_table = of_match_ptr(lochnagar_of_match), }, .probe = lochnagar_regulator_probe, -- 2.11.0