Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp623665pxv; Thu, 15 Jul 2021 11:48:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhEotnOsv82Qh2wOxD4IlvhMsxQ8edImDfcZk87NHqvlxFw8yZuqFKHY4T4YTA2ONZ7S5B X-Received: by 2002:a05:6e02:66e:: with SMTP id l14mr3525637ilt.211.1626374938314; Thu, 15 Jul 2021 11:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626374938; cv=none; d=google.com; s=arc-20160816; b=JkUxO6pbNG25dcUWMGWC5M1pkHkRA6GMcNKmkIP465seYfP8s5Z+P1gNCNto1K964d OmwHoVm+oU2wTcsjI+BveXUABW3gNtyEnL0FQbrAAwb9Du19ES52dj8kDQ9sxpXkmext 8rYiDDJb4vfOKDLTzrzAkQSwHdsj/5Jhwz+EyuT0iLwNHqu4Jb6sC1BIe7cg94DNe+ec QIJIkZwHtMm6HxEnhViTMu6IQb2RZbVc2MZKuRCyiNjHdHgtDKXfThWI2SDzgeYOzc4X fEFaJFGWwQPFMnWsPKP/i8nYACIsmjD15J61TlaMzzNgJTL6BTRnyAuLVIpS+PMfZThn rdUg== 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=fkCiKAsFJACKS1ngIltfc+hXSiiZdvhQkR0/XzdEx3sv5kNBpwrbmme77BlzFXNJdP G2YTQ1RAPp0dMc8FBWN6hHWDqq5dowrw719RoG4kCZOr9z3Sym/tBzn7eqdjyP36kutK NZt/xnOMzW2OqpXcOWwRB1MmT79zmih6XEKSXCgvi3+rsb2ha0g7ylZFX+P8FU7lopS5 FuKnx7UMHTRWhGBKnHvuheTv0xSSn40jC2OiUw2/x7lk/WiSpprNCAFWKO6ykGc6RzXE pq1ppzDLAoYRycREN/rW0emWTKzbovafxB2pVPYGLOD3NsnfYsszg0/XvnH1ecLvcw1a czKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=O5BxrZGZ; 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 t11si8631910jan.92.2021.07.15.11.48.45; Thu, 15 Jul 2021 11:48:58 -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=O5BxrZGZ; 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 S239672AbhGOSuH (ORCPT + 99 others); Thu, 15 Jul 2021 14:50:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:49216 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238865AbhGOSrb (ORCPT ); Thu, 15 Jul 2021 14:47:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1B0B2613D0; Thu, 15 Jul 2021 18:44:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626374677; bh=bQ6o2NIi3EfTjmaHCOFG+RzRJtr0dJpoXEu17KBfHcQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O5BxrZGZ09yEb4Qn61LoWqurgbykae8Upt3hHVqeuhXx5YS7SHhxVFA99OZbl6pqL 8yeaNzLTZP4dvtv3nuH12nrVCHBzZixwN6wbtFSSOWtSu8dtAIRO6nNz26UH17acKk ulbxBKOvNzRQAKELIX2fHQaYvkqWudeU/C5+6olE= 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.4 100/122] power: supply: ab8500: Fix an old bug Date: Thu, 15 Jul 2021 20:39:07 +0200 Message-Id: <20210715182518.680080720@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182448.393443551@linuxfoundation.org> References: <20210715182448.393443551@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;