]> www.infradead.org Git - users/jedix/linux-maple.git/commit
thunderbolt: debugfs: Use FIELD_GET()
authorAapo Vienamo <aapo.vienamo@linux.intel.com>
Tue, 21 May 2024 08:02:13 +0000 (11:02 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 19 Jun 2024 04:30:20 +0000 (07:30 +0300)
commit49056c95df448c1fa870c8688f34e5d1abffb154
tree4f8ab8d01d5e39b8c4b13ce7094b1e1de7fac04c
parentff6ab055e070d819f51196622e08f8941b6d2a4b
thunderbolt: debugfs: Use FIELD_GET()

Use the FIELD_GET() macro instead of open coding the masks and shifts.
This makes the code more compact and improves readability as it avoids
the need to wrap excessively long lines.

Signed-off-by: Aapo Vienamo <aapo.vienamo@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Yehezkel Bernat <YehezkelShB@gmail.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/debugfs.c
drivers/thunderbolt/sb_regs.h