Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp216809pxb; Tue, 2 Feb 2021 03:28:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJztRB85EKy8aHE2IueiCXqW+JzcVCnHZkJauabI4aeqRbhN0VwT009GZRYSPYw4ZdYoWiY5 X-Received: by 2002:a17:906:b219:: with SMTP id p25mr21093054ejz.430.1612265319050; Tue, 02 Feb 2021 03:28:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612265319; cv=none; d=google.com; s=arc-20160816; b=vKFw3kNU/MD8kZD1d/JJEZurjG3j+sqR9NMHERlPrl4ltgZ/KgCPIe+dLE+SL43rzi o6SGMSSs8E80PlEpHV3m8TH7Z97ksMEI/lxgrcVHFfLW3YcscUnAdy4zXE93sFTNjlPU M4/OH0+Yfl7f0G62seDWocRDBmpKztO060MXHFdb4v5Am415Xm/uhaa8OKkgIvFtf9ay MP6xM79NXtjCubA30ObPxzITOFBQn2Tu0dBL2gNHszn7KYe2n+ZQE/kkaRU3ssRIB3o7 2SS2T/sG1oJCwKdxRkVxUP6nsEW6ljXHV5j5tdqFyTBuPht7hrQ7U/ll3eUPSes3ZvJ2 bW5Q== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=uk/oQQ0OqZp/fan2E8T4K0nco4PVu9Fb7/UjoE3s3WA=; b=gTTdW+Be4mzp1LJyD0+H1qfbKya4cgB59VP2z77Jqv6AuU3Ru45K5oMiR4D2G7yT9g exIUJgjpHiBoDJ+vXX8TrM1P2Jyf9KhsIeauRxzMMJDlrISNITevT87fuBKJvNdcVC+F 9jK1RS82fPZenERwKIgtQdI5E+VSsI4Fq/clH/ePzTtKSvp2jZVkaJlXNZhNyKhoY4Mm 0XL8rAY/vQiggi4qa8wcYJYjCA1vvxQljFglDINdwnNgViSwP40zuVoF9i5n4XL1YMDq PLk5Buo9YOrgv7o2Jui07vSGlD730vchCerU/RtjtN+zpP9peR6OON4bGzCKGvF13WSa LIdg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k9si2260783edx.173.2021.02.02.03.28.15; Tue, 02 Feb 2021 03:28:39 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230248AbhBBL1g (ORCPT + 99 others); Tue, 2 Feb 2021 06:27:36 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:40417 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230184AbhBBLXX (ORCPT ); Tue, 2 Feb 2021 06:23:23 -0500 X-Originating-IP: 86.202.109.140 Received: from localhost (lfbn-lyo-1-13-140.w86-202.abo.wanadoo.fr [86.202.109.140]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id EFBDE40009; Tue, 2 Feb 2021 11:22:37 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org, Alessandro Zummo , Alexandre Belloni Cc: linux-kernel@vger.kernel.org Subject: [PATCH 11/21] rtc: pcf85063: quiet maybe-unused variable warnings Date: Tue, 2 Feb 2021 12:22:08 +0100 Message-Id: <20210202112219.3610853-12-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210202112219.3610853-1-alexandre.belloni@bootlin.com> References: <20210202112219.3610853-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pcf85063a_config and rv8263_config are only referenced by pcf85063_of_match, move them in the #ifdef CONFIG_OF section. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-pcf85063.c | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/drivers/rtc/rtc-pcf85063.c b/drivers/rtc/rtc-pcf85063.c index f7e7c9eb0781..aef6c1ee8bb0 100644 --- a/drivers/rtc/rtc-pcf85063.c +++ b/drivers/rtc/rtc-pcf85063.c @@ -501,15 +501,6 @@ static struct clk *pcf85063_clkout_register_clk(struct pcf85063 *pcf85063) } #endif -static const struct pcf85063_config pcf85063a_config = { - .regmap = { - .reg_bits = 8, - .val_bits = 8, - .max_register = 0x11, - }, - .has_alarms = 1, -}; - static const struct pcf85063_config pcf85063tp_config = { .regmap = { .reg_bits = 8, @@ -518,16 +509,6 @@ static const struct pcf85063_config pcf85063tp_config = { }, }; -static const struct pcf85063_config rv8263_config = { - .regmap = { - .reg_bits = 8, - .val_bits = 8, - .max_register = 0x11, - }, - .has_alarms = 1, - .force_cap_7000 = 1, -}; - static int pcf85063_probe(struct i2c_client *client) { struct pcf85063 *pcf85063; @@ -611,6 +592,25 @@ static int pcf85063_probe(struct i2c_client *client) } #ifdef CONFIG_OF +static const struct pcf85063_config pcf85063a_config = { + .regmap = { + .reg_bits = 8, + .val_bits = 8, + .max_register = 0x11, + }, + .has_alarms = 1, +}; + +static const struct pcf85063_config rv8263_config = { + .regmap = { + .reg_bits = 8, + .val_bits = 8, + .max_register = 0x11, + }, + .has_alarms = 1, + .force_cap_7000 = 1, +}; + static const struct of_device_id pcf85063_of_match[] = { { .compatible = "nxp,pcf85063", .data = &pcf85063tp_config }, { .compatible = "nxp,pcf85063tp", .data = &pcf85063tp_config }, -- 2.29.2