From patchwork Sat Jun 26 23:47:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 467461 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp2773575jao; Sat, 26 Jun 2021 16:50:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzftrXa++9KFCVv/H+LuL4pPNxKAXz92zb5fowncrquu9Lv6Z+FBzgIctRgi+MvYiOzbLtF X-Received: by 2002:a02:620a:: with SMTP id d10mr16186982jac.22.1624751400456; Sat, 26 Jun 2021 16:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624751400; cv=none; d=google.com; s=arc-20160816; b=uUcnqeYl9AaRXJOZZ4NsfZcBK6eiNa2ETtkxr1TOkkArbGf7vfH9rnnCgZnWsTulf8 l6QyttcYbRwzV1U6FttdQl4mTOsd3RN4f+KoP6x6mYYMH07BrYJJFMK1QDHcXrA3/mKr 4brwQROQBReau96ckXt1GTs7a8H5vjjhqnY6DZ7pXVifkFA/5WHEK2PPUQ9LeY1EoWNt 6glZKTGG3bQP2g8e5MrGfxxVvj9ycZ+AiP+F3h4L40cWG3pcnpDkm1DtEaIETmAfOy6v JtgBapgamjChcw/BADo6AdTzFcdPLNKffrwsXyZ1fmTWr2+xPpP8EuPk6r6GQ+ZgZY02 5lNw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=eISukSxr9S6lVbjbCM2Ot77tr1WgILTAvVDWCUeQenA=; b=wiz2PoR/+0Z/hhBqEWyzWeFyvSsMpkCplIdA8EkmcVUG/G1Hln7vGbTkfyaOuYUmzY 0hFtC9ECxXtBI+Kzzw2nivON809fLX2G4NaUGLuXFizKBbFfFyyXCYgyuJ1xC3au+spu rJPRFG0639gYWLbPbMQhqriA9akufJrOUDyCXA9wBqIP6nNiKwAv+MkJTgL5VDJeewUo JmIB3a0VDr5MlwB0srxX/i/qRHc/lvIQc+HTHF3sjR/VdRU0WUURUjx1VzHeOvMU8SSz qzsztNDVXsWfbAiY91w3xU15QNqeFA6ixAsk9VXPpJ6tNv7Kf6WljdFRSDF3gsWOCqOp 9zMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MYRxi85S; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q10si14788037ilu.60.2021.06.26.16.49.59; Sat, 26 Jun 2021 16:50:00 -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=@linaro.org header.s=google header.b=MYRxi85S; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbhFZXwS (ORCPT + 12 others); Sat, 26 Jun 2021 19:52:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbhFZXwS (ORCPT ); Sat, 26 Jun 2021 19:52:18 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C41FC061766 for ; Sat, 26 Jun 2021 16:49:54 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id q16so9612819lfr.4 for ; Sat, 26 Jun 2021 16:49:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eISukSxr9S6lVbjbCM2Ot77tr1WgILTAvVDWCUeQenA=; b=MYRxi85STBrA6ytlEgiBAF1tE55JOmd5vSToUuFjM1ecNxnCG1UeYEMOrCQTkq3P9X OyesvsV1iezO8e/R1kK3dWuPHNwpgUb5ozCEm7WeNKN+sU4QAE8Zc2gS8OTGn87JNOEv 1IXZ60oXBsTZo03SRlWIU4LQlqeY8bwkF5QYkA2QKQ/VRVhfekQzQ9nhg2fdm4E6mOog O4BNIgp9Tdjg9lF03NjUsW0NvnXYveR4cre3PMGibplazkrOI2nePRsisS1rwhjBLDpk cm1lQopOxUvlIMkUK18EcgjYnLi21hgNNmFy2d6V/hG89cZTbe2iERrSysO7GnCvFwFV TSEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=eISukSxr9S6lVbjbCM2Ot77tr1WgILTAvVDWCUeQenA=; b=Iqy5FjiF0DmEYXuqeT2REKpojauJoV61INvv9YCdy3n7qFR/+2pB47Vtn859cKroj8 jru1V5pgV9Ip3MjeKMLRNwn5H7uMyK6chWeQ58Ce2Ne6CE74REry5VXg+FQiBUz1IA+E cM2nPhbHPbmxX5R99F+mQ7l4tZbdiBArdA5DdAb3IWl/TgeU+7DE7cOshpvFNwbcHprc LCsy/3S7P7sWBS6TvGJxU9pJjwy2IidPKKy6Mf0ERaiBQrOfpXgXPZUEG+KFT7e9niqt kY3PRs/WQX/SyQp5+yM/MYkY+iWy3iCOjF/ASdz24Q3Fxdkf8lImHPaS6ISNdBPi1XYh yRgQ== X-Gm-Message-State: AOAM532c+IyQAVE/97Yy/sKk5OOM2Tm1nTzFm1vHKdJMnf+a5C9a/B/E DMx8QPAY9jwV7N4ByK/6bAApxQ== X-Received: by 2002:a05:6512:610:: with SMTP id b16mr13612599lfe.631.1624751392746; Sat, 26 Jun 2021 16:49:52 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id w17sm893700lft.285.2021.06.26.16.49.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Jun 2021 16:49:52 -0700 (PDT) From: Linus Walleij To: Sebastian Reichel , Marcus Cooper Cc: linux-pm@vger.kernel.org, Linus Walleij , stable@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH] power: supply: ab8500: Fix an old bug Date: Sun, 27 Jun 2021 01:47:49 +0200 Message-Id: <20210626234749.2958991-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org 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 --- drivers/power/supply/ab8500-chargalg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.31.1 diff --git a/drivers/power/supply/ab8500-chargalg.h b/drivers/power/supply/ab8500-chargalg.h index 94a6f9068bc5..07e6ff50084f 100644 --- 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;