Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3771328pxv; Mon, 19 Jul 2021 08:22:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLs2aGyfKbrRC2j/D3+S+6XeW+PxrCQv5SwuwxgAN9SdN+TNx3wcr8Ra3tRkfpyCjIJgri X-Received: by 2002:a50:cb8c:: with SMTP id k12mr35447250edi.386.1626708142758; Mon, 19 Jul 2021 08:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626708142; cv=none; d=google.com; s=arc-20160816; b=Tw53F+eUQjwNP/0HfA/04ODSkD6JM4hxyYsDts2qxOBM76JJV/t6aKayxuHhrEn/Tc M8zcXx5X1JuLbFdwzTNNrU+lD5h1/8U8SYJDSxFptfhG+OxSGCPV5mHMyTMH7c0qvuMm QHetssaFAUImETBi9CzE1JQtTetFjZ7I2/Lo2TbOeAIdqODPg88YWavxrBU8tTmgTyUD 8pxLCJJDRhZxTrzU45RwTtOEv61Bgeubjc7dpecSuTt7xg37jLpGD+2rhC3AiOJ+dSFl D0Yz06iV94P9tSUwI2JPSOc1+xD5/wtqrRpfWHp6cdYI+ajEvCLjbSoP2MyzmAIkO130 3iHg== 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=E64W2RwqWswGMmdIGAqLhsIH+EJy3OvXtsF+U/B6YQbWWRstvy3tRc5lDWVajZowK2 GolqKu+UIHRpy8KBj27KSL0qLYk21cxeNH92jsQY1p/RpERKEfRP/JTmGbEpvXp1ewDC CJnGG47yhs4gGdidplD08jG7YoamIJXygsH3IxreZHG6X71PRqzvoJNw9ALzQNJ4vjWh CoiSB9TDfTSs4G3oKxcnH7JfRyLpS8rfX5MpN4chQZDW3MF/HjVEMdJrcmFnlThcv0Pc Q4iR3jtu3JVtcMti8B7cRAlhRpKESWS3Hq/z/yddiJ4tCwQGZtLj6YQAqrqT70isAWKu cjBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=o3rgX1NZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 a1si20941384edv.415.2021.07.19.08.22.00; Mon, 19 Jul 2021 08:22:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=o3rgX1NZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S243646AbhGSOkU (ORCPT + 99 others); Mon, 19 Jul 2021 10:40:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:45642 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245048AbhGSOaO (ORCPT ); Mon, 19 Jul 2021 10:30:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2490460551; Mon, 19 Jul 2021 15:10:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626707453; bh=bQ6o2NIi3EfTjmaHCOFG+RzRJtr0dJpoXEu17KBfHcQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o3rgX1NZNz1JLpfLSz4n/VZej6RsjOQFLpLLoo1XvHFR0cb4xZkjzLoE5SaaVvjn0 eQ7l5SWq0py3TrOx9UyJpsEVI6hHVPjMUB8eVVMvmYtjyjp2eiH5JQRcnAgBTJLtcS BlhvrX8591EBcdbUY8fGxiEq+WJm565dMXOZHG3c= 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 4.9 169/245] power: supply: ab8500: Fix an old bug Date: Mon, 19 Jul 2021 16:51:51 +0200 Message-Id: <20210719144945.869636730@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.288257948@linuxfoundation.org> References: <20210719144940.288257948@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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;