# Re: \[PATCH\] i2c: cpm: Fix data type

- From: Andi Shyti \<andi.shyti@kernel.org\>
- Date: 2023-12-06 01:48:01 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2023/12/2423098
- Thread: https://ratatoskr.run/linuxppc-dev/2023/12/2422719/t.md

```text
Hi Christophe,

On Tue, Dec 05, 2023 at 07:16:53PM +0100, Christophe Leroy wrote:
> sparse reports an error on some data that gets converted from be32.
> 
> That's because that data is typed u32 instead of __be32.
> 
> Fix it.

the reason for this sparse error is that the data variables is
then parsed with a be32_to_cpup() and I think that's not
necessary.

I think the real fix here is to not use be32_to_cpup().

Andi
```
