usb: typec: tcpci: use GENMASK() for TCPC_ROLE_CTRL_RP_VAL
authorAndré Draszik <andre.draszik@linaro.org>
Wed, 10 Jul 2024 10:36:12 +0000 (11:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Aug 2024 10:49:30 +0000 (12:49 +0200)
commit46b1e0f87ba89f0a06ffbde5fe8d13c5af93f94e
treea9de25b7901d4ad64803ec0c6234258061ad34c2
parent83b254c13ac093810e1058d9cb1bbb4b7ef9c246
usb: typec: tcpci: use GENMASK() for TCPC_ROLE_CTRL_RP_VAL

Align the last remaining field TCPC_ROLE_CTRL_RP_VAL with the other
fields in the TCPC_ROLE_CTRL register by using GENMASK() and
FIELD_PREP().

Signed-off-by: André Draszik <andre.draszik@linaro.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20240710-tcpc-cleanup-v1-5-0ec1f41f4263@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpci.c
drivers/usb/typec/tcpm/tcpci_rt1711h.c
include/linux/usb/tcpci.h