Re: [PATCH] HID: sfh: fix address space confusion

2021-01-04 Thread Jiri Kosina
On Sun, 3 Jan 2021, Arnd Bergmann wrote: > From: Arnd Bergmann > > The new driver uses a phys_addr_t to store a DMA address, > which does not work when the two are different size: > > drivers/hid/amd-sfh-hid/amd_sfh_client.c:157:11: error: incompatible pointer > types passing 'phys_addr_t *'

[PATCH] HID: sfh: fix address space confusion

2021-01-03 Thread Arnd Bergmann
From: Arnd Bergmann The new driver uses a phys_addr_t to store a DMA address, which does not work when the two are different size: drivers/hid/amd-sfh-hid/amd_sfh_client.c:157:11: error: incompatible pointer types passing 'phys_addr_t *' (aka 'unsigned int *') to parameter of type 'dma_addr_t