From patchwork Thu Jul 15 18:39:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 477454 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp580989jao; Thu, 15 Jul 2021 12:15:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQ+ApS3CqpFsahvpJPL35iVAE695FFwWZraXrquK3vTKf0BdKqzSgCVRwSETn7jiMxMSZZ X-Received: by 2002:a02:6946:: with SMTP id e67mr5418424jac.4.1626376501966; Thu, 15 Jul 2021 12:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626376501; cv=none; d=google.com; s=arc-20160816; b=sUP4KrV8nal6Gth/Rs1XQpc5ZilDoztPPIlwYloIrnLGveKMRKeGfKx2MK8sYLMvbM KGKjtMONAdqrFnNLDC5s/pCKQLJw/KH0PgRMs4MyiXFCfAebXUz2HieZ4ohTKUp8PvsU 1WT2T9ZAarx7cp8Ac5qwwTVY+GQBIpFGyka1JWgIz2wt4iOuEvgN3hdmMeJ/6r3VCvSx puseqEOZbscznbPTT9n8OZ03XhdfUzD2TdyNA6br3Ewr90LlpWRVB2xg+SCbTa2QNhE/ L7JxXnKr16McP2GP9zWvnAfsES9XQLxQXLsA+1TibN2qpPWNP63g3vL+CAb76j+QRs3i nTpQ== 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=DGv6E2xAYml37hYULo83Znz0XyK0fuFsi/asWeRsrj0=; b=GX2HZJ1gbpJ3j3WLedzmpqFAbyeGYEh8N1lMbmVDsdO56W72gQM1eTrWaUYS+E69IO DWN4iZ0K0yTLtOaPh4+kWE1M76xVrB9WE7of8krlZ6CT30AHaLlVVkCQTzg93gscJ1GI 8KgAwrCg1Kt1XRK6dvE2Hl/qJ5g4UZZuVblwzmPaoANkgEunvooT1yDja+zRA0ag/Yfd GPOd9o70TRp22bEIeBAjR5eFcxzYQiMTwt2jBbUU/NryLRcuvo4sYadO/Su32ba3cuRH 7Il2NnZk2BB4o6OT7FdnCunPCPgq5x8i3MCJ49HBfEYr2fOuppipx5ku2zHdB/zJYy3I Zk+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bSiHZRuq; 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 g24si7800996jaq.119.2021.07.15.12.15.01; Thu, 15 Jul 2021 12:15:01 -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=bSiHZRuq; 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 S244187AbhGOTRw (ORCPT + 12 others); Thu, 15 Jul 2021 15:17:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:51040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243330AbhGOTPt (ORCPT ); Thu, 15 Jul 2021 15:15:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B6A45610C7; Thu, 15 Jul 2021 19:12:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376330; bh=ZnShKhnKx7U28so4TBiNlozoEwrVKGgiIzuBSsmiHnw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bSiHZRuqLvO2YUzUVIPVK+dcgBbD+Xdw+t+SJCBt29S4tExPa/shq4Efx24m+ZO1b ASBVFDLuMOtNMhDyjGfmlll5JJB0knvDvt0LAVSfvLkFC3DcQsdJAr14VwP/88J3D2 19IAekleaGKWsz8RSOkY/kd4tgqHZnntgVVXdtFk= 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.13 225/266] power: supply: ab8500: Fix an old bug Date: Thu, 15 Jul 2021 20:39:40 +0200 Message-Id: <20210715182648.864429638@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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 --- drivers/power/supply/ab8500-chargalg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/power/supply/ab8500-chargalg.h +++ b/drivers/power/supply/ab8500-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;