From: Sergio Paracuellos Date: Fri, 4 May 2018 04:16:22 +0000 (+0200) Subject: staging: ks7010: change some casts from uint8_t to u8 in ks_hostif header X-Git-Tag: v4.19~841^2~361 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d3d2e7ab02188bee967767d5161a784423cb06f;p=platform%2Fkernel%2Flinux-rpi.git staging: ks7010: change some casts from uint8_t to u8 in ks_hostif header This commit changes some type cast in rate related preprocessor definitions included in ks_hostif header file to use preferred u8 type. Signed-off-by: Sergio Paracuellos Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_hostif.h index d576341..ca7dc8f 100644 --- a/drivers/staging/ks7010/ks_hostif.h +++ b/drivers/staging/ks7010/ks_hostif.h @@ -498,20 +498,20 @@ struct hostif_mic_failure_request { #define TX_RATE_FIXED 5 /* 11b rate */ -#define TX_RATE_1M (uint8_t)(10 / 5) /* 11b 11g basic rate */ -#define TX_RATE_2M (uint8_t)(20 / 5) /* 11b 11g basic rate */ -#define TX_RATE_5M (uint8_t)(55 / 5) /* 11g basic rate */ -#define TX_RATE_11M (uint8_t)(110 / 5) /* 11g basic rate */ +#define TX_RATE_1M (u8)(10 / 5) /* 11b 11g basic rate */ +#define TX_RATE_2M (u8)(20 / 5) /* 11b 11g basic rate */ +#define TX_RATE_5M (u8)(55 / 5) /* 11g basic rate */ +#define TX_RATE_11M (u8)(110 / 5) /* 11g basic rate */ /* 11g rate */ -#define TX_RATE_6M (uint8_t)(60 / 5) /* 11g basic rate */ -#define TX_RATE_12M (uint8_t)(120 / 5) /* 11g basic rate */ -#define TX_RATE_24M (uint8_t)(240 / 5) /* 11g basic rate */ -#define TX_RATE_9M (uint8_t)(90 / 5) -#define TX_RATE_18M (uint8_t)(180 / 5) -#define TX_RATE_36M (uint8_t)(360 / 5) -#define TX_RATE_48M (uint8_t)(480 / 5) -#define TX_RATE_54M (uint8_t)(540 / 5) +#define TX_RATE_6M (u8)(60 / 5) /* 11g basic rate */ +#define TX_RATE_12M (u8)(120 / 5) /* 11g basic rate */ +#define TX_RATE_24M (u8)(240 / 5) /* 11g basic rate */ +#define TX_RATE_9M (u8)(90 / 5) +#define TX_RATE_18M (u8)(180 / 5) +#define TX_RATE_36M (u8)(360 / 5) +#define TX_RATE_48M (u8)(480 / 5) +#define TX_RATE_54M (u8)(540 / 5) static inline bool is_11b_rate(u8 rate) {