From patchwork Thu Jul 15 18:39:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 477449 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp570242jao; Thu, 15 Jul 2021 12:03:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygDdtLfvL/fJ1SfyNEcKSvLPQFLGyN/4JWy/NjrZYh/a6DZOfLtjLSXl/qWrvFwLdPBqXO X-Received: by 2002:a92:d44b:: with SMTP id r11mr3698758ilm.217.1626375811818; Thu, 15 Jul 2021 12:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375811; cv=none; d=google.com; s=arc-20160816; b=oYqi4BMm92vch5WgPKtBa8OJvKtYWoRgJNjjk1HA8GopHhn08omfD1FNPUh9O2SnUi /eu0EWEzL3dDpytqe+Qx8xw840NfAX0CwL9ierxA0e+QedElffQmxA4Bsp5xvYUyJxVU EnELbO6j2FeCZxNBjoNYtDlPfG5zwWJZpzq+Qo6R5tWQb9460qdtoWj7YbLGjUGnZNfI +uFIjCGpA+QEIwn2+uINtTA3Og9sLsVB4qS5flsEmMOC/cDTKRoiI7ANH1YD0xXjS5Di GbGMrIzQ/KF1vZ1oAoqWIZmfJ3xYbR3GimxIiM0xzQzy6f+U0oNJVlVea5ZcXpt7m0Ll RaQQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VgfADQygm/5OuJuSkQnV+9c27z0N6M3aFbKN0K0Rp1Q=; b=c60ZACU5szzghTqpNHLFTqLn/isUMuSk0AHuDsNOivqgfZ/mZ6+3RErQ+lAPLdSlXQ Nc6+t2xWbtT7hpdwpjD3K5FJ4Mnos194/x85T58DO0NYVvfwXg8NDbZ84aDzYOnJoyV7 axH4ll8C5spki2PCbXxgtkWonq1xmZJIbX7O3u6PFpCY9D5LhbiBokYEQYIF1QRIEdxu 5UtyrHxegDik69vJ01auR6bEdbyhMmlR6iri2ZxG4DB6eH0Evhyo7h8WRnz9nS5qIYui g9JBQDz/JjQ8xAXjkRYwuEFkvaAnhA2uvRIlodbW148wpVDqx6ek5dm2X7dbZXbS+Tfn xrew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QDA5UzqW; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si7882559jat.56.2021.07.15.12.03.31; Thu, 15 Jul 2021 12:03:31 -0700 (PDT) Received-SPF: pass (google.com: domain of stable-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=@linuxfoundation.org header.s=korg header.b=QDA5UzqW; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241577AbhGOTGT (ORCPT + 12 others); Thu, 15 Jul 2021 15:06:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:38920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241875AbhGOTFb (ORCPT ); Thu, 15 Jul 2021 15:05:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 15275613C0; Thu, 15 Jul 2021 19:01:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375710; bh=bQ6o2NIi3EfTjmaHCOFG+RzRJtr0dJpoXEu17KBfHcQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QDA5UzqWziPYV8WvF3UcdvYg4cZjKmprNG1u/Sc11e2a3xjTE1J6dziTmOPvAtfvj yVMhP7iv4H/1Mm7eDH6Nd/hm/Up0kxa0R1jeCCtYNaOmbbvCwPmvR3V9HPpHG8nZVS /1kyB5W3/uDDKJNIUP6KOcC9arXY/Eio3my6HiGQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Kozlowski , Marcus Cooper , Linus Walleij , Sebastian Reichel Subject: [PATCH 5.12 201/242] power: supply: ab8500: Fix an old bug Date: Thu, 15 Jul 2021 20:39:23 +0200 Message-Id: <20210715182628.646907276@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Linus Walleij commit f1c74a6c07e76fcb31a4bcc1f437c4361a2674ce upstream. Trying to get the AB8500 charging driver working I ran into a bit of bitrot: we haven't used the driver for a while so errors in refactorings won't be noticed. This one is pretty self evident: use argument to the macro or we end up with a random pointer to something else. Cc: stable@vger.kernel.org Cc: Krzysztof Kozlowski Cc: Marcus Cooper Fixes: 297d716f6260 ("power_supply: Change ownership from driver to core") Signed-off-by: Linus Walleij Signed-off-by: Sebastian Reichel Signed-off-by: Greg Kroah-Hartman --- include/linux/mfd/abx500/ux500_chargalg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/mfd/abx500/ux500_chargalg.h +++ b/include/linux/mfd/abx500/ux500_chargalg.h @@ -15,7 +15,7 @@ * - POWER_SUPPLY_TYPE_USB, * because only them store as drv_data pointer to struct ux500_charger. */ -#define psy_to_ux500_charger(x) power_supply_get_drvdata(psy) +#define psy_to_ux500_charger(x) power_supply_get_drvdata(x) /* Forward declaration */ struct ux500_charger;