From patchwork Sat Jan 23 22:19:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 369467 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp2688153jam; Sat, 23 Jan 2021 14:21:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8DA5xvuf5E/DgqbVHcxE0EQ8gsgJIxKz4Ongn2S+qjJyw7mI4ntqCywqvf9GTjW4smul9 X-Received: by 2002:a05:6402:70a:: with SMTP id w10mr2226326edx.184.1611440519624; Sat, 23 Jan 2021 14:21:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611440519; cv=none; d=google.com; s=arc-20160816; b=qmmmZzIeAOd7ZkX5FZ0OnZLNSHHdlvTk0c+enrXKCP37ge1I74gzQSezqp3c7VpAuG wsp45bVojn9RiCHIdzqzKwn0hVVNv8fx+wW6WV647YnV13wO9oxNmaDmj6fOUoxrog5Y YaEd0DHv0nCci6SPI+G9EhFWIX2wIZZH/F6HuY0Rcb+tg5ANE5vnFza6kk+BK7BimWEO tlW2IMWRBymVMNlyuKswPYRo77r7kTF+1kmEBna+PriMsqkZqpdgIoI30aU529fxLucZ zXv8LK1RK5Oo9Ujb8XLui49OccGI/PGcqQx2do7IJB/vOh4e53fybnxHyArfSPcPVLzN tthA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=28GEYQroX9iLNa89d1Np8JOfxiq6yVf6jznvYobgB2M=; b=aTcW1S/QlK4Y6ousnzGob7fG9b2bBnXXWn30cQthYXCIQcw5BBRbc6JFJ9bMa29lVD /x/VSs6foPE1GZ1VqxQHbitm+UU45jOaBSnWAowh5XR02LI9MmvYLkOsamVt21OeSf0v UR+y3utAv3wvIz9aoalLjiGkrZJG8P/mUI+UeixNQb4XUq3KnE0zbMrkFCflSdRUklsV ySDJRuPvFiqNruOSXU/cjWxu1gKioyVop0cMu8xO7stX+d/44THS1Jv/E3+ntOIANr6B QIFNegVQTuDcGVJho5nFfJF5VYiSNIq2U/grOHpFDtgPjU+3G2QcBehA4Bk8l58sLykS kFWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BTxKVf6x; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw11si4392384ejb.414.2021.01.23.14.21.59; Sat, 23 Jan 2021 14:21:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BTxKVf6x; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726309AbhAWWUo (ORCPT + 7 others); Sat, 23 Jan 2021 17:20:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726334AbhAWWUm (ORCPT ); Sat, 23 Jan 2021 17:20:42 -0500 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59FF5C061351 for ; Sat, 23 Jan 2021 14:19:34 -0800 (PST) Received: by mail-lj1-x22a.google.com with SMTP id i17so10808777ljn.1 for ; Sat, 23 Jan 2021 14:19:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=28GEYQroX9iLNa89d1Np8JOfxiq6yVf6jznvYobgB2M=; b=BTxKVf6x9tkaiDII85SLMqC5J5Az/1TLxrjxydQ9GYNYmCdAGFiQBXTYte9V+OI+fy 9VdGs9TcBDAhxJ+5D6nzq3iowB2hV6IjdlKjQIoKWaEGHoAf6Risro8n4rOdXMZz9zQs p7sD2juSc/O5lXj9GhHNuIYTgb7hw8izL0jYddJgX0YVNNFCiPC35jm8pbTTE1OU/bga 1GvwRehRyqhAJ46geb/JXng9QBp7u3ZAmA1qi9eGeNf55tcLauECnM7qd+l6S2fAEmb3 HK1/Vf0Djs3SfJ+JKD9YuWpdqe67KuYsEi+8Ictd7Yy6HNvS6t1AamrklqMe+3CIFqd0 C0Rg== 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=28GEYQroX9iLNa89d1Np8JOfxiq6yVf6jznvYobgB2M=; b=mV5m2w9JvyUpbN8nkyoWq4qCUr451z8UtURr474xVMmmO8be1Hk9yp/5QLe61MLfBC sp+ILkXvpQID07PAuSocyfFwE4dw6bzv/FpEICeo3r1YgDGQV43JBBVuzlDuNcXCY9R+ GSHBYOnyKk9+XZZV0Moe3vRrm8Jgx7m/CZ815JHW/cp6eNzYruiQJplmQMhyeBFC/81R 1vrpLp6AX0uyCtLmrIQBuwNjPLKRvl8y6NvtsKaOgPkr/s8aKa9/gtuLDDOZk08FIyEL l+5Datcfr7ypE6SZNeAaesBsqQKa6u9ErysZ7e9TSLGyyfGx8kRNVmSCrL/ETiptGCbU gN3Q== X-Gm-Message-State: AOAM531e6mZzzatvmwa19r8EEn4huBKLG36Yjm0X1W7hQ4Y7EI5FYMWP OcbCmeFjqQsE5yuYpoh5Gl6BvA== X-Received: by 2002:a2e:3201:: with SMTP id y1mr1442981ljy.12.1611440372881; Sat, 23 Jan 2021 14:19:32 -0800 (PST) Received: from localhost.localdomain (c-92d7225c.014-348-6c756e10.bbcust.telenor.se. [92.34.215.146]) by smtp.gmail.com with ESMTPSA id x17sm1313956lfg.0.2021.01.23.14.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Jan 2021 14:19:32 -0800 (PST) From: Linus Walleij To: Sebastian Reichel , Lee Jones , Marcus Cooper Cc: linux-pm@vger.kernel.org, Linus Walleij Subject: [PATCH 10/10] power: supply: ab8500_bmdata: Use standard phandle Date: Sat, 23 Jan 2021 23:19:08 +0100 Message-Id: <20210123221908.2993388-11-linus.walleij@linaro.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210123221908.2993388-1-linus.walleij@linaro.org> References: <20210123221908.2993388-1-linus.walleij@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Look up the battery using the "monitored-battery" phandle as is nowadays a standard DT binding. The actual bindings for these charger elements are not upstream so let's sort out this mess by conforming to the standard. Signed-off-by: Linus Walleij --- drivers/power/supply/ab8500_bmdata.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.29.2 diff --git a/drivers/power/supply/ab8500_bmdata.c b/drivers/power/supply/ab8500_bmdata.c index c2b8c0bb77e2..258f399eaf37 100644 --- a/drivers/power/supply/ab8500_bmdata.c +++ b/drivers/power/supply/ab8500_bmdata.c @@ -499,8 +499,7 @@ int ab8500_bm_of_probe(struct device *dev, const char *btech; int i; - /* get phandle to 'battery-info' node */ - battery_node = of_parse_phandle(np, "battery", 0); + battery_node = of_parse_phandle(np, "monitored-battery", 0); if (!battery_node) { dev_err(dev, "battery node or reference missing\n"); return -EINVAL;