From patchwork Sat Mar 11 11:15:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 662325 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6459C7618E for ; Sat, 11 Mar 2023 11:17:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbjCKLRY (ORCPT ); Sat, 11 Mar 2023 06:17:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230371AbjCKLQy (ORCPT ); Sat, 11 Mar 2023 06:16:54 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A030985A40 for ; Sat, 11 Mar 2023 03:15:50 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id i34so30692757eda.7 for ; Sat, 11 Mar 2023 03:15:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533339; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Z1ivl38YE2I2SDvE1TdE0gIwBk6FF3/hABoULacrRYE=; b=wMYxFquxhp0t9lKQAOER1JX7CmKUNsOOctHhvaGDOuKSS46NJgvw9/nQzmwmqLlIWo KzP+wNeYjC5LgKCaIagU78wTTmhYCiXXtXgNTSix29J0trMc8t05ipD/aDur7lNZji5F /z2il8ImOTmCHbGl0eKxd1Qpb+Cxthsaz2tIn0EI65oS7o43nYH8NK3NcesV6hDoTvL1 Me1nBTww+cvBNBSEsVyzakbj01KNMV2i1bVi7fyInug8LBrsAkqtsa2H8tcvf40mopiC IWrcfWY8QGrcEpt6hjBCEDPuHrTu2csOUlzU/30u5Nryl7nqy5HmZRXtDi5yfewoOrww RoLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533339; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Z1ivl38YE2I2SDvE1TdE0gIwBk6FF3/hABoULacrRYE=; b=Ioncl04lPBf9rzZqxFYxBpiMOuKT85u7BCFV2fsklLzH0NrgVUS+4BSryd+5mkHZ7q inUAVCg4hami/UaIP2JeN50+x2rvIs/ecsDRaTrJDFM4p9kuXRa245nMTw/Hio5wj9A+ e0Qn7kppMoD7FLMt9ZY/oCeLvOiLmOLJXFjskqynwOUXGJ/V3akpQh5eBzdg8Zxxi3uV EoeFUvukCtM2vr/y+fHC2bKllu2jiY1dpJa97WfW3p0PHpPWzKCXsRYiHuMAmPihTQIC BM+auPqaJytmt+gQ5QBSNeIgJCudSNQJQ2wQ+knmIwdyCVBzfW1lieMz9fv1atfIyTHe 1Gug== X-Gm-Message-State: AO0yUKUIqmn45W2hAqAL4kr4csR3rYMJkdK8rlWnPQHwjKST6xDuFZ7m zzzT9PYSvyw7QUexlrWqui/r1w== X-Google-Smtp-Source: AK7set+UBH/7lfNgSQ5TQ9eY5JIS3egl5tRPqIzcjIcnGzntH5Tf2EsKSNfoJvDIl5VjTTfL2z0d+A== X-Received: by 2002:a05:6402:1352:b0:4fa:3b3:c86c with SMTP id y18-20020a056402135200b004fa03b3c86cmr2059703edw.12.1678533339401; Sat, 11 Mar 2023 03:15:39 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id w15-20020a50c44f000000b004bf28bfc9absm1064150edf.11.2023.03.11.03.15.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:15:39 -0800 (PST) From: Krzysztof Kozlowski To: Sebastian Reichel , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 6/6] power: supply: bq25890_charger: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:15:32 +0100 Message-Id: <20230311111532.251604-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111532.251604-1-krzysztof.kozlowski@linaro.org> References: <20230311111532.251604-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/power/supply/bq25890_charger.c:1625:34: error: ‘bq25890_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/bq25890_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/bq25890_charger.c b/drivers/power/supply/bq25890_charger.c index bfe08d7bfaf3..22cde35eb144 100644 --- a/drivers/power/supply/bq25890_charger.c +++ b/drivers/power/supply/bq25890_charger.c @@ -1622,7 +1622,7 @@ static const struct i2c_device_id bq25890_i2c_ids[] = { }; MODULE_DEVICE_TABLE(i2c, bq25890_i2c_ids); -static const struct of_device_id bq25890_of_match[] = { +static const struct of_device_id bq25890_of_match[] __maybe_unused = { { .compatible = "ti,bq25890", }, { .compatible = "ti,bq25892", }, { .compatible = "ti,bq25895", },