diff options
| author | André Draszik <[email protected]> | 2024-07-10 11:36:11 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-08-07 12:49:30 +0200 |
| commit | 83b254c13ac093810e1058d9cb1bbb4b7ef9c246 (patch) | |
| tree | d1880bea97e0a6fb408a6268b91f5bfbc455d120 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | f523aa6d72598bcd2946c7e02d29f33f94806a15 (diff) | |
usb: typec: tcpci: use GENMASK() for TCPC_ROLE_CTRL_CC[12]
All this open-coded shifting and masking is quite hard to read, in
particular the if-statement in tcpci_apply_rc().
Declare TCPC_ROLE_CTRL_CC[12] using GENMASK() which allows using
FIELD_GET() and FIELD_PREP() to arguably make the code more legible.
Signed-off-by: André Draszik <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions