From: Johan Hovold Date: Wed, 11 Nov 2015 09:07:08 +0000 (+0100) Subject: greybus: svc: use bit-macro for cport flags X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f6c6c1388ad3ea9adc0ec2652d2b5ef9ad4ae166;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: svc: use bit-macro for cport flags Use BIT-macro for cport flags. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c index acf08e774791..6c1a157c10c5 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/staging/greybus/svc.c @@ -12,9 +12,9 @@ #include "greybus.h" -#define CPORT_FLAGS_E2EFC (1) -#define CPORT_FLAGS_CSD_N (2) -#define CPORT_FLAGS_CSV_N (4) +#define CPORT_FLAGS_E2EFC BIT(0) +#define CPORT_FLAGS_CSD_N BIT(1) +#define CPORT_FLAGS_CSV_N BIT(2) enum gb_svc_state { GB_SVC_STATE_RESET,