In the struct ti_sci_proc the fields proc_id and host_id are declared as
u8 so cannot be set to nor compared with a macro defined with a value
using 16 bits. Change the macro to only use 8 bits to make the code work
as expected.
This issue was found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
#include <linux/soc/ti/ti_sci_protocol.h>
#include "ti_sci_proc.h"
-#define INVALID_ID 0xffff
+#define INVALID_ID 0xff
#define GTC_CNTCR_REG 0x0
#define GTC_CNTFID0_REG 0x20