Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3765297imu; Mon, 14 Jan 2019 08:38:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN72AxZnSeDEL4yVaFQQKM7uZOZAgy/gtaiBjJM8/zqgsvfuUAciKx5nPyhVPOZW50LXmTyc X-Received: by 2002:a17:902:bd4a:: with SMTP id b10mr26366836plx.232.1547483936943; Mon, 14 Jan 2019 08:38:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547483936; cv=none; d=google.com; s=arc-20160816; b=hpjzqyWTfi94Y9KcZ629IndRXZPZBvGk5e1RLD+hkGHbPR/4Px7LL7DG7X4eew+N8C 8QB9MVxKS3a7MO8YDvlzUtdA7asETxezPy/ySGyhxOpgz0LFHhh0W8XcVS/o/p2L9RIr qMJHqLB3Z0ke2S1X0AXDQlS97vuc6BAwODp+Fii9OGJyxMzO/sivYT+lLF88vsWOc5uv pqdkUs3ggrUzRxxv1dJRTXyEODgo9+DB/ffB/LvQCAMnrlE+uJdnVZjiYjCl7KPoOC9t gzqsFKOWFfSbLuZW1nL4yVwrzAty3o7Bq1HUjXzvd5ol4svhBJDPOCe0XVTpKHJ2dnT/ uabg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=l9DFr+fvRp4XNuqC48f1qHOGOAXrzlsaBjEr2TKjUhQ=; b=PO+B3BzbBOJZYHiQhW9QIEZg+3OS8NbSFUvjfpHKVUkGsehe2Q3qntGpKYbzeKfIoH rAC2X7uRjEIWqBQM3XMzAz7QLp5MrMLzrXzhx/eMlgZGJKQEQ5PQqzDEbPEy/QPmw23r FT66G62oFIoyl9PlQn4FCfrSCCpYUn23yRdQnk3+R31PH+cI/hIXeGSO9icFijxjCAew 2+FkbJVlI8EjL+TsjREaaUBi0C6E1PnJ56t5mXhS/eTwlf9EYXlZUSf6Xjbq6SZT9qyl tnOaE9GwthOooqU3f4EaXpPM9wBL7zCizQIxqlfiqQybYjZwt2hBs3Wfza3TWQ+lMeAB Znug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YGUVocul; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id 68si716341pgd.437.2019.01.14.08.38.41; Mon, 14 Jan 2019 08:38:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YGUVocul; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1726943AbfANQhK (ORCPT + 99 others); Mon, 14 Jan 2019 11:37:10 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:38748 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726732AbfANQhJ (ORCPT ); Mon, 14 Jan 2019 11:37:09 -0500 Received: by mail-wm1-f68.google.com with SMTP id m22so207256wml.3 for ; Mon, 14 Jan 2019 08:37:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=l9DFr+fvRp4XNuqC48f1qHOGOAXrzlsaBjEr2TKjUhQ=; b=YGUVoculVhQysuFRCsbNQIiuVYcvjY66Xe4LX7+xPF4IZ0rwm+fSRC1vVJOXzj2Uvb f+U8eciraYxPS23uQq3cV+ESE8UN/YkgMGzPPe2JLu+IVaU3VADFmzv8VnRv2LsO3G52 JdjSynt3qW7rv7JphYeUlgzo3OwuufWD8DXdc= 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:in-reply-to :references:in-reply-to:references; bh=l9DFr+fvRp4XNuqC48f1qHOGOAXrzlsaBjEr2TKjUhQ=; b=k6lTC/RHTqkVbnS67KFTrOV7Dlt64528dmsUV7/fsERX8BuONVJN/VtfsGqtSOm1jU 8UI1G6OjShwr+A5iCwqYGEFJsegP/+4iYdnhjJHSuRHtPU5BRlj7ypsEiTFgb0MCBj7v WZY65H0EcB3JbVB5Pu5jWCgQy4bLtVr2EBc+/Lz+9jMRPRZvgMsegAAqJ+aMUkoRUAKI EVmEMcojb3huJI8r0s+HFMR8t/tZAb1YUgggAX8+MO37Fw5FoAPnDtxGtDMZofJnXWvm rAvQdR1oJYy/DTY8Nxwqwsi/TuiiWJ5YL06bnswrQ/Qzw0Sq6Rgmwg6PuJfnfflnPRt9 S++Q== X-Gm-Message-State: AJcUukekC5Tw8CwqrBOxUeo+yZbpjR63CI0ajHUKxWdAsgLUHVo1qrWH wkgJ0Tydzhq6W3X1nJXWWWGtt9as1AI4iA== X-Received: by 2002:a1c:400b:: with SMTP id n11mr12940185wma.85.1547483826284; Mon, 14 Jan 2019 08:37:06 -0800 (PST) Received: from localhost ([49.248.190.171]) by smtp.gmail.com with ESMTPSA id h16sm152392640wrb.62.2019.01.14.08.37.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 08:37:05 -0800 (PST) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: linux-arm-msm@vger.kernel.org, viresh.kumar@linaro.org, edubezval@gmail.com, swboyd@chromium.org, dianders@chromium.org, mka@chromium.org, "Rafael J. Wysocki" , linux-pm@vger.kernel.org Subject: [PATCH v1 03/10] cpufreq: Replace open-coded << with BIT() Date: Mon, 14 Jan 2019 22:04:55 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Minor clean-up to use BIT() and keep checkpatch happy. Clean up the comment formatting while we're at it to make it easier to read. Signed-off-by: Amit Kucheria --- include/linux/cpufreq.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index 70ad02088825..ea303dfd5f05 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -351,14 +351,15 @@ struct cpufreq_driver { }; /* flags */ -#define CPUFREQ_STICKY (1 << 0) /* driver isn't removed even if - all ->init() calls failed */ -#define CPUFREQ_CONST_LOOPS (1 << 1) /* loops_per_jiffy or other - kernel "constants" aren't - affected by frequency - transitions */ -#define CPUFREQ_PM_NO_WARN (1 << 2) /* don't warn on suspend/resume - speed mismatches */ + +/* driver isn't removed even if all ->init() calls failed */ +#define CPUFREQ_STICKY BIT(0) + +/* loops_per_jiffy or other kernel "constants" aren't affected by frequency transitions */ +#define CPUFREQ_CONST_LOOPS BIT(1) + +/* don't warn on suspend/resume speed mismatches */ +#define CPUFREQ_PM_NO_WARN BIT(2) /* * This should be set by platforms having multiple clock-domains, i.e. @@ -366,14 +367,14 @@ struct cpufreq_driver { * be created in cpu/cpu/cpufreq/ directory and so they can use the same * governor with different tunables for different clusters. */ -#define CPUFREQ_HAVE_GOVERNOR_PER_POLICY (1 << 3) +#define CPUFREQ_HAVE_GOVERNOR_PER_POLICY BIT(3) /* * Driver will do POSTCHANGE notifications from outside of their ->target() * routine and so must set cpufreq_driver->flags with this flag, so that core * can handle them specially. */ -#define CPUFREQ_ASYNC_NOTIFICATION (1 << 4) +#define CPUFREQ_ASYNC_NOTIFICATION BIT(4) /* * Set by drivers which want cpufreq core to check if CPU is running at a @@ -382,19 +383,19 @@ struct cpufreq_driver { * from the table. And if that fails, we will stop further boot process by * issuing a BUG_ON(). */ -#define CPUFREQ_NEED_INITIAL_FREQ_CHECK (1 << 5) +#define CPUFREQ_NEED_INITIAL_FREQ_CHECK BIT(5) /* * Set by drivers to disallow use of governors with "dynamic_switching" flag * set. */ -#define CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING (1 << 6) +#define CPUFREQ_NO_AUTO_DYNAMIC_SWITCHING BIT(6) /* * Set by drivers that want the core to automatically register the cpufreq * driver as a thermal cooling device */ -#define CPUFREQ_AUTO_REGISTER_COOLING_DEV (1 << 7) +#define CPUFREQ_AUTO_REGISTER_COOLING_DEV BIT(7) int cpufreq_register_driver(struct cpufreq_driver *driver_data); int cpufreq_unregister_driver(struct cpufreq_driver *driver_data); -- 2.17.1