Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp633313pxv; Thu, 15 Jul 2021 12:03:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpub/DqOalvhmiOx2rs9d+iwqQ5CvR9L9hit/yy6hdTnAaXyFawqGA7U6k34D96e8aJD9s X-Received: by 2002:a92:508:: with SMTP id q8mr3816661ile.89.1626375782220; Thu, 15 Jul 2021 12:03:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375782; cv=none; d=google.com; s=arc-20160816; b=ljENXBJ7LxmCB4/nILNwss/XjuwZ4pxafH8wj1hF5lcpYcuRSntkbwOthHi1Rgjp6Z D8DvxDZZ5h8/wW57h4/cgKj986J/wS59VIChSCq1qteIQGWInNejm2zSIdBgEQWRCTa4 sYa0RSy2+bTH75cmY8M+a9xKbZERmraRIOtIFP8iPyQe/S8xPKEsgQL+cBjoptEdvr5m 6y0+RYYs+AFNX0XdQSrjMNLfDdeOUf+/mGG0HNzdv4GJxIIrHkwIni/ofWZJhpT8y5mM q99vTwkdoPNVMqcnI4nPytmZYgIJ3tKfWTT63239OGbS7g7i7hx9/0SHa0KprBEVAu/E NhAg== 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=ocQNvXQgL8ToMUKAAxX+k0ptQn8NfLIgobrXBHkKvLgSwcbsaSSLOSPIUY28lBq7h6 vzoPUEvFucFWx7SksZlFH1JF0NqB94I7znFdzaXNb17YZbMb8scs37JG0kRr887cQACR b2aKFCxwaNA0aM+ip4C0M3zP/9vDarI8IrLcOPqLH3ltSJz2ozEl0DFiOHnKUJQS7xM+ DGf+TdeLjPo8pxH0F3MwD25RqWpZpx+Fp0pVOLDTMCj3Iek8bTK1/e9mZcGmw0ls2YuR eLkkE+9rVhYuq4q1o62vzt+WxM/IxyJ0lAQyKOqRY9RvlgvOvYHSeOxWasfTUNC+4GXi Wc6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=aUjQ9BUt; 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 x9si7213161jat.100.2021.07.15.12.02.49; Thu, 15 Jul 2021 12:03:02 -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=aUjQ9BUt; 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 S243682AbhGOTEi (ORCPT + 99 others); Thu, 15 Jul 2021 15:04:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:59882 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240890AbhGOSzb (ORCPT ); Thu, 15 Jul 2021 14:55:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 49D97610C7; Thu, 15 Jul 2021 18:52:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375155; bh=bQ6o2NIi3EfTjmaHCOFG+RzRJtr0dJpoXEu17KBfHcQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aUjQ9BUtVm3+QdCfDzVi4wsg6NqV4DrhEoekwjgXaXb+WNXMQomPEq28Ny/nIP8GP /SktuF9TCsH2IoGIhdGMzPtgkCyiJep1ikgAj3g+LDa9F2Y1zCVP8g8m0o1gLYcdGn swwgXnaeLl0g5j2eh2sWsRnGCpiS/RZ6LinUjN/E= 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.10 182/215] power: supply: ab8500: Fix an old bug Date: Thu, 15 Jul 2021 20:39:14 +0200 Message-Id: <20210715182631.491366860@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@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;