Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp9539246rwp; Thu, 20 Jul 2023 06:30:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlGYP5MZMu0Z0uHcJ9RFUBPO5Hmgu47LClAEYyc5dhtljISwpVZt9S2fzomazPz5uXuqII3g X-Received: by 2002:a17:902:bb89:b0:1b8:1b79:a76d with SMTP id m9-20020a170902bb8900b001b81b79a76dmr17118045pls.44.1689859802223; Thu, 20 Jul 2023 06:30:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689859802; cv=none; d=google.com; s=arc-20160816; b=0CWcRxOlZBfjkbeRRQidvCMuBrsjyn3iLOzV06exUfAj4rOtBWcmwVACvHRD0Ss5dk 0BtjLHwppBOjyNYtqD2OK3cvop1P4MMImJoRoWxe/TkqXeY+Fm25MzGlCkt9diQgWgfz nRUVi+wzAY4CuGdgAT5GLC157Ka6mNeqAjlx8fYD3+TjRNbfz7FwPiFhmniU9FWegGYM h57NJS1P2e2wHVAIhR8TnL9P9F5J5yJl66QAGbAi0XLK5G9fTuRsHARYFi3i/he7Jysj 9XKQ6y0mw2xAR4IatqLHFtd3jG/qgJ75e4Ao/VWSuFYezLEHBirgVSKnZu7eaoS6o2us e33A== 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=00TBgGs9/x2395DFaQcI1ejZAz1FlgitzxZyGoIQYBo=; fh=m0bzHLtgdfjg+FU/Gk5u4Ltx7z4/sfpttix35jugvNk=; b=No5E3qBsRTkja6Sqo1doEfqJd7MnGSXV8UExtChzVURxDN4iZtnNN7XwJrqhYK0mtx VdQ9o3GeiGvcNmsCHY3tQzQ1r9aA3V8/ujID2tfglUAHfvbO6DX8Jccd7CJHfIR+zQuJ rNtzQyfnuR9Fcp4QmUtGdyuomnz3+i+cWfK2RwttDvPH+Ryicu1olti2QF6tQngmF4VM f4ULXMY2OUx8uAuvbCBdw9hd2NMpyOFgjbhK9RJLqzuSI9Mqf+KGWaXx1EDJwOvCynaC ys/IYEihkZQH0FGvigOfBdSwFWSTCutl3YSlIDdss1x+m1p+8oK762Ik5clB3GGv/c7p zggA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=b9nmxZy6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y9-20020a17090322c900b001b87ecb0e5csi1029514plg.126.2023.07.20.06.29.48; Thu, 20 Jul 2023 06:30:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=b9nmxZy6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229885AbjGTMda (ORCPT + 99 others); Thu, 20 Jul 2023 08:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229724AbjGTMd3 (ORCPT ); Thu, 20 Jul 2023 08:33:29 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 171F5A2; Thu, 20 Jul 2023 05:33:28 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-4fb7373dd35so2415619e87.1; Thu, 20 Jul 2023 05:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689856406; x=1690461206; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=00TBgGs9/x2395DFaQcI1ejZAz1FlgitzxZyGoIQYBo=; b=b9nmxZy6KVcznno15iMSw8WsAHn9FeWVx1/TB89iEhUO4keTXVQqlhbPQJt0Rg6VzM LZXw6KkF+Rdkfnud3nxa14JcoyWllCyHhKtoR8ZlJ0tQXbwKb8Vr+5vu5DUNq7qv0STb H5RQtCoPB6pYfgFoEZhsYv1L4PJ9S2AkPiQKzrG3PbOTwvml7EGbZ26D/8W22VFVtEDJ ubNnafFWdxu5b1HSnCgqFzROgQNYigRtLtyiuCGjYWitvJrq0xXj2Xg6/JkxuXV8u55J GbRwfP/ZoMnEw5v/NHbY1F4mMvoLJI5tfNgsy5Ox5FiftQLLkQOxZHE9po5wVNQbAw+7 r7zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689856406; x=1690461206; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=00TBgGs9/x2395DFaQcI1ejZAz1FlgitzxZyGoIQYBo=; b=F3f+17MV/HNzG2dMH3GyhUYql9chkEAT+l1nJbXq7r6J9HMsv1OVsNHqPVE405bnuF J0yATHiavlX8dw/0QMo/tF55J+hodjHufMQmzSmQcGnY0YCUdHEfYzFYWmpZ1Yw36L5E piyk9BX0sN6tEpkV82EEj9nyM9L59z/2mdR/JiDdWuO7extK0xdmFXm8DYGHfyVsIAoj 0xoCZFVYXV54LybElVGrfdSBI9swL1cwBvVax+sn3fwCsVI7vshtZP3tEhtfycJa4CkJ wEMmzSSpaIC6D+kfkQnfRVzeUgq5+IVFhQYyE7Zzi9hiHUVQUrcaRjVCLM//KYQH0/U/ 0fRA== X-Gm-Message-State: ABy/qLaw94IZG35xa5fMxvKPTbUFpBRmyHMsGnaI43RLxIdC2lOM8K4Q AkSD9Nxf5bZnZ+kCMyWhkXKBFzr35T0Aig== X-Received: by 2002:a2e:8ec4:0:b0:2b6:d0c1:7cd0 with SMTP id e4-20020a2e8ec4000000b002b6d0c17cd0mr973716ljl.22.1689856406159; Thu, 20 Jul 2023 05:33:26 -0700 (PDT) Received: from wro1-ldl-p01774.synapse.com ([94.42.83.62]) by smtp.gmail.com with ESMTPSA id z5-20020a19f705000000b004ec84d24818sm182767lfe.282.2023.07.20.05.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jul 2023 05:33:25 -0700 (PDT) From: Przemyslaw To: hdegoede@redhat.com, krzysztof.kozlowski@linaro.org, m.szyprowski@samsung.com, sebastian.krzyszkowiak@puri.sm, kernel@puri.sm, sre@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: lukas.bulwahn@gmail.com, Przemyslaw Chwiala Subject: [PATCH] power: supply: max17042_battery: Do not use CONFIG_ prefix in regular C code Date: Thu, 20 Jul 2023 14:31:02 +0200 Message-Id: <20230720123102.154699-1-przemekchwiala@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Przemyslaw Chwiala Using CONFIG_ prefix for macros is not a good practice. Use CONFIG_ prefix in Kconfig only. Signed-off-by: Przemyslaw Chwiala --- drivers/power/supply/max17042_battery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/max17042_battery.c b/drivers/power/supply/max17042_battery.c index 17ac2ab78c4e..e7d37e422c3f 100644 --- a/drivers/power/supply/max17042_battery.c +++ b/drivers/power/supply/max17042_battery.c @@ -36,7 +36,7 @@ #define STATUS_BR_BIT (1 << 15) /* Interrupt mask bits */ -#define CONFIG_ALRT_BIT_ENBL (1 << 2) +#define CFG_ALRT_BIT_ENBL (1 << 2) #define VFSOC0_LOCK 0x0000 #define VFSOC0_UNLOCK 0x0080 @@ -1116,8 +1116,8 @@ static int max17042_probe(struct i2c_client *client) chip); if (!ret) { regmap_update_bits(chip->regmap, MAX17042_CONFIG, - CONFIG_ALRT_BIT_ENBL, - CONFIG_ALRT_BIT_ENBL); + CFG_ALRT_BIT_ENBL, + CFG_ALRT_BIT_ENBL); max17042_set_soc_threshold(chip, 1); } else { client->irq = 0; -- 2.25.1