Re: [PATCH v2 2/2] spmi: fix some coding style issues at the spmi core
From: Marc Gonzalez
Date: Tue Sep 29 2020 - 05:22:37 EST
On 29/09/2020 08:22, Mauro Carvalho Chehab wrote:
> @@ -487,7 +489,7 @@ static void of_spmi_register_devices(struct spmi_controller *ctrl)
> continue;
>
> sdev->dev.of_node = node;
> - sdev->usid = (u8) reg[0];
> + sdev->usid = (u8)reg[0];
typeof(sdev->usid) is u8.
What is the point of this cast?
Does GCC warn that u32 is being truncated to u8?
Regards.