Skip to content

Commit 350f06c

Browse files
geertuYuryNorov
authored andcommitted
crypto: qat - convert to common field_get() helper
Drop the driver-specific field_get() macro, in favor of the globally available variant from <linux/bitfield.h>. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
1 parent 0f8407a commit 350f06c

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

drivers/crypto/intel/qat/qat_common/adf_pm_dbgfs_utils.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/* Copyright(c) 2025 Intel Corporation */
3+
#include <linux/bitfield.h>
34
#include <linux/bitops.h>
45
#include <linux/sprintf.h>
56
#include <linux/string_helpers.h>
67

78
#include "adf_pm_dbgfs_utils.h"
89

9-
/*
10-
* This is needed because a variable is used to index the mask at
11-
* pm_scnprint_table(), making it not compile time constant, so the compile
12-
* asserts from FIELD_GET() or u32_get_bits() won't be fulfilled.
13-
*/
14-
#undef field_get
15-
#define field_get(_mask, _reg) (((_reg) & (_mask)) >> (ffs(_mask) - 1))
16-
1710
#define PM_INFO_MAX_KEY_LEN 21
1811

1912
static int pm_scnprint_table(char *buff, const struct pm_status_row *table,

0 commit comments

Comments
 (0)