From patchwork Thu May 20 04:41:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 443154 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp1946935jac; Wed, 19 May 2021 21:41:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2lk4hbAlfdXEnU1ywTo2oY4jQZnQAhuFY0DFt1eDrSX7OZHN2vWDcOWZZ5Z+m1pXspTSv X-Received: by 2002:a17:906:68c:: with SMTP id u12mr2656561ejb.470.1621485695226; Wed, 19 May 2021 21:41:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621485695; cv=none; d=google.com; s=arc-20160816; b=ecImC0/KI3KOs2TBlGliUVjYYSM/04z2d37z316xwVLQCAWgPWWQ4ghrwuAzLra13N LRgUTyIFkfZ08aiKwkAsnwoD1O1t+Kd+95IlRDg0A9y8I4S5oaZZvBrlPcyv08gzUlIO ckOkUZp5nFizZxrLQY/wdQm7z/1nMD40NZxM3aGtQ2i04WprirSevlCMyOWsb+W4Mci+ 0nt0YgL//np1cvoBqDYCP42Z5SCekondkGOeTPPEV2pyio2nHfNvCBLroD6gj1rNX7Fu dYNekk87IWuxeu1bazmz60o5wz3qiovewxQfqOft9vv91fdIv9SqxgFrMQQrhLEffghQ T9CA== 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=nekcyqt8slKf0il2RVdbXCValEx/1aJ6m5AGD2qejqc=; b=0KW9doAQAlPaEv87iTTLwmoruhhY5UQaCvOzmMVKvx10UMQWhwpPe2Cei8F14IWGP4 Tyjz3VcBOA48aTMGmCplWRBrNrCdpMfmbuQmNCU+m5FWqgy5S/PIbqZIbmqviKBC/OQ/ Eshvah1XyOV4haUqv+95hJ5+xnHGk2PZ8GF04c5S9XdsoMgtLJpGpjcW5CJ9vEkC8qbk CmJhkyhtshyM/pTecfeZMn5v9BNrkYJm6kWbptt0aOATJ6zA5tm83EHHKKcmA4XAwnzN SY2mkdidTqcgCx8nOWAnLyzirqDFtObbf5F8RIsQq4Fk4usfLV09BspRCpcJi9jWybAK IxFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="S59sn/Id"; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 jg13si2236710ejc.192.2021.05.19.21.41.35; Wed, 19 May 2021 21:41:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-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="S59sn/Id"; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S229458AbhETEmy (ORCPT + 8 others); Thu, 20 May 2021 00:42:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbhETEmy (ORCPT ); Thu, 20 May 2021 00:42:54 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E26E9C06175F for ; Wed, 19 May 2021 21:41:33 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id e15so1658643plh.1 for ; Wed, 19 May 2021 21:41:33 -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=nekcyqt8slKf0il2RVdbXCValEx/1aJ6m5AGD2qejqc=; b=S59sn/IdnGlOHJ+pk7c/Vc1FAGzbIRCuqBZ+5tVlRsEKCRucH6zw8WcnFhDqEq8n9E Eq8UXNTlgHYX0Y/p7X+nTRard8TUK2d9FatfoOAyPG5NPU22DN2qsWmiSUTcHbaOkYHK mm2SZVBezhrdhZkUkva3XHLtM1ZJbV2fS9RYNphViMzxqKt/+lT1sBP1xhxs4ClO9Tt9 a+VmbWG8m61BDFA/CZDvy7JlUxBBmR81OuqzxmsEf8fQfVuvezuGAMTv4Q8i7NUIoI/u 6K+AekbwRfLzJya0ld66603RqcDlnWRcmAY/5fO2Xx/FS/jhpZx6f0FKgv2wGM0X9U7u IybQ== 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=nekcyqt8slKf0il2RVdbXCValEx/1aJ6m5AGD2qejqc=; b=fEGom6f2bdKyNd3alYhQSL6LJLcDYHw3fO/Fywa1cbHiGMsjOv/XCBNdyi32uJA8Sm cY2JMKLKfFJpJFZsa7CqDTmNQwbl8uD9dRJeXSqBWYr8byYW5rH++lUPtNmcqSNT9+2v dcRK7+iU+Olr372B0/cZPltu4uE7DeApKPrJ4T27PwqbxL0CRRRUGjzj96hn7OWQ56zC XkuSjZhgroyl2d2VrjZjTYxlyq/SGTL3NGV1vrYH2G9Ru0Pc0h9aBEjadjHiH+ztI71F kwR45TqsIhwT1uG2lvvFR3YeXbt9fUnKGZMq3uGgaWvqKOG2jkfPvmMyNq3kpxXB9rdg GxMw== X-Gm-Message-State: AOAM533Qn7KFmGmQGKLqeSIH7ZDmjGvvk8HG2Iv1iNzCTw3yn2HouThr l0PBkLkg0uaMtTaCgKwdQOok/g== X-Received: by 2002:a17:902:7847:b029:ef:4421:6a2e with SMTP id e7-20020a1709027847b02900ef44216a2emr3564340pln.44.1621485693039; Wed, 19 May 2021 21:41:33 -0700 (PDT) Received: from localhost ([136.185.154.93]) by smtp.gmail.com with ESMTPSA id n11sm842295pff.96.2021.05.19.21.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 21:41:32 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar Cc: linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: dt: Rename black/white-lists Date: Thu, 20 May 2021 10:11:28 +0530 Message-Id: <3741541ed1162033394663894de2f8d8554334f1.1621485236.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Rename them in accordance with the coding guidelines. Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq-dt-platdev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.31.1.272.g89b43f80a514 Reviewed-by: Rafael J. Wysocki diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index 0bb10402f02c..bef7528aecd3 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -15,7 +15,7 @@ * Machines for which the cpufreq device is *always* created, mostly used for * platforms using "operating-points" (V1) property. */ -static const struct of_device_id whitelist[] __initconst = { +static const struct of_device_id allowlist[] __initconst = { { .compatible = "allwinner,sun4i-a10", }, { .compatible = "allwinner,sun5i-a10s", }, { .compatible = "allwinner,sun5i-a13", }, @@ -100,7 +100,7 @@ static const struct of_device_id whitelist[] __initconst = { * Machines for which the cpufreq device is *not* created, mostly used for * platforms using "operating-points-v2" property. */ -static const struct of_device_id blacklist[] __initconst = { +static const struct of_device_id blocklist[] __initconst = { { .compatible = "allwinner,sun50i-h6", }, { .compatible = "arm,vexpress", }, @@ -179,13 +179,13 @@ static int __init cpufreq_dt_platdev_init(void) if (!np) return -ENODEV; - match = of_match_node(whitelist, np); + match = of_match_node(allowlist, np); if (match) { data = match->data; goto create_pdev; } - if (cpu0_node_has_opp_v2_prop() && !of_match_node(blacklist, np)) + if (cpu0_node_has_opp_v2_prop() && !of_match_node(blocklist, np)) goto create_pdev; of_node_put(np);