]> git.baikalelectronics.ru Git - kernel.git/commit
staging: kpc2000: kpc_spi: remove unnecessary cast in [read|write]_reg()
authorGeordan Neukum <gneukum1@gmail.com>
Wed, 5 Jun 2019 01:09:13 +0000 (01:09 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2019 13:05:02 +0000 (15:05 +0200)
commitc8dc2a193142185c2459081db50fb6e9a9f6ef47
tree37c8abf08b44e6f224fef51f81749cc0949d35cb
parentdc708a860c62f23a114e6b78b9ad64054aa0debc
staging: kpc2000: kpc_spi: remove unnecessary cast in [read|write]_reg()

The kpc_spi driver unnecessarily casts from a (u64 __iomem *) to a (void
*) when invoking readq and writeq which both take a (void __iomem *) arg.
There is no need for this cast, and it actually harms us by discarding
the sparse cookie, __iomem. Make the driver stop performing this casting
operation.

Signed-off-by: Geordan Neukum <gneukum1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/kpc2000_spi.c