usb: typec: tcpci: Refactor tcpc_presenting_cc1_rd macro
authorBadhri Jagan Sridharan <badhri@google.com>
Wed, 10 Mar 2021 22:35:36 +0000 (14:35 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Mar 2021 14:31:48 +0000 (15:31 +0100)
commitaecb1e452d9e9de593b58330eb0279671be04436
tree8f84e1d9bdb0b79edca9924187ad4310f5f10336
parent60a35ba9141f06b67150ce3544bc595d049b0d83
usb: typec: tcpci: Refactor tcpc_presenting_cc1_rd macro

Defining one macro instead of two for tcpc_presenting_*_rd.
This is a follow up of the comment left by Heikki Krogerus.

https://patchwork.kernel.org/project/linux-usb/patch/
20210304070931.1947316-1-badhri@google.com/

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Link: https://lore.kernel.org/r/20210310223536.3471243-1-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpci.c