WSL2-Linux-Kernel/drivers/leds/simple
Hans de Goede 8b43ef06ff leds: simatic-ipc-leds: Don't directly deref ioremap_resource() returned ptr
Sparse (rightly) currently gives the following warning:

drivers/leds/simple/simatic-ipc-leds.c:155:40:
 sparse: sparse: incorrect type in assignment (different address spaces)
 expected void *static [toplevel] simatic_ipc_led_memory
 got void [noderef] __iomem *

Fix this by changing the type of simatic_ipc_led_memory to void __iomem *
and use readl()/writel() to access it.

Cc: Henning Schild <henning.schild@siemens.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Gerd Haeussler <gerd.haeussler.ext@siemens.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
2022-02-17 12:25:30 +01:00
..
Kconfig leds: simatic-ipc-leds: add new driver for Siemens Industial PCs 2021-12-23 18:09:13 +01:00
Makefile leds: simatic-ipc-leds: add new driver for Siemens Industial PCs 2021-12-23 18:09:13 +01:00
simatic-ipc-leds.c leds: simatic-ipc-leds: Don't directly deref ioremap_resource() returned ptr 2022-02-17 12:25:30 +01:00