From patchwork Mon Jul 19 14:51:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 479855 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp4208040jao; Mon, 19 Jul 2021 08:02:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGeSu6tC8xhzD7WQUh5LFsk8JS77PyPNWxUH14KW47PAiWKcrVavwmYSb7728ImPwjM6G7 X-Received: by 2002:a6b:b883:: with SMTP id i125mr19538485iof.104.1626706958470; Mon, 19 Jul 2021 08:02:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626706958; cv=none; d=google.com; s=arc-20160816; b=dJEoBcqBcBAGb2+DJ2R/mmTM1QZa87erdIU5+Kptk2tR32TgrtOkiwvIv277cFhdvO g9bTmWzv++y3ras4SJEGSJU8Zt6U3awEMO76wmABhDZS3BM+6KC2fgDMWaxWqxY36of9 YHqfILIZUQlo1+QOz/WIxofaJsVd5352SmbYFRTO6tfJD/+af1bF0V21XWqpLVXufUDW wsjwnvtdWVIAymI/On22GDYYjmgafTNGTEiJya1Dyown5YMKMaoHTO5cDs4JwhQsNzjz umjYG3r0qlHXdHzuNzvbuARjVjvLHzC3uXtpV09tKup2KliMvBSaA8S6DPo3feZuaiMS CJWg== 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=O6wb6mW7BcyfcMivPD1NhKdsPSmSO8FYPuz3ly6UC2Rmp+d5GjD/dCUbpZsQ66j3YX uwEjO1pwhXgpfxVp6tZJqiO/XWGjY/nhRIKM+pGzNi8GzGcBk/3pWfIkl4SpKb7J1bPQ 6UBTzOz88GiOn0EBl8/U6+LkRHh6anNyzdza2DMNth4RmEpm1k88u2YG1+UFeJTBovTt 8zc7JCjPBaOcfx9jWEymT1lFS1sBswMdKR2PZLUB5cTjSqTMeIykCzqgy3Cf5LPKebBJ 2wNuDevzucwtMH1pHVpLRAgaBoMVXk7VTlIOL/Yk+98iqv0RsSUNQg8rkmiJfEkboDR+ w5NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PJYHvaY2; 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 k25si10193815jan.106.2021.07.19.08.02.38; Mon, 19 Jul 2021 08:02:38 -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=PJYHvaY2; 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 S242619AbhGSOVw (ORCPT + 12 others); Mon, 19 Jul 2021 10:21:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:56252 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242710AbhGSOUf (ORCPT ); Mon, 19 Jul 2021 10:20:35 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 27FC360551; Mon, 19 Jul 2021 15:01:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626706868; bh=bQ6o2NIi3EfTjmaHCOFG+RzRJtr0dJpoXEu17KBfHcQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PJYHvaY2i6bkkBWy4LHKl/jcCPZM/8NlCqeTaq/T1shIJ72N9qb/NAUc68PZKaQ5i +YROnSnFr7OxSWuyMIasz5gOokLc5TJKeggMFyLdj4fAFS3oqyxl0TiltvYdT2OqUO 8LlZVClu4Sq/Qj0Gb4x6i5qSFRU918Mm3b2gxj9k= 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.4 132/188] power: supply: ab8500: Fix an old bug Date: Mon, 19 Jul 2021 16:51:56 +0200 Message-Id: <20210719144940.808576241@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144913.076563739@linuxfoundation.org> References: <20210719144913.076563739@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;