linux/drivers/staging/hikey9xx
Juan Antonio Aldea-Armenteros 1b9419d1f6 staging: trivial: hikey9xx: fix be32<->u32 casting warnings
This patch fixes the following warnings reported by sparse, by adding
missing __force annotations.

drivers/staging/hikey9xx/hisi-spmi-controller.c:164:24: warning: cast to restricted __be32
drivers/staging/hikey9xx/hisi-spmi-controller.c:164:24: warning: cast to restricted __be32
drivers/staging/hikey9xx/hisi-spmi-controller.c:164:24: warning: cast to restricted __be32
drivers/staging/hikey9xx/hisi-spmi-controller.c:164:24: warning: cast to restricted __be32
drivers/staging/hikey9xx/hisi-spmi-controller.c:164:24: warning: cast to restricted __be32
drivers/staging/hikey9xx/hisi-spmi-controller.c:164:24: warning: cast to restricted __be32

drivers/staging/hikey9xx/hisi-spmi-controller.c:239:25: warning: cast from restricted __be32

Rationale for #164:
data is declared as u32, and it is read and then converted by means of
be32_to_cpu(). Said function expects a __be32 but data is u32, therefore
there's a type missmatch here.

Rationale for #239:
Is the dual of #164. This time data going to be  written so it
needs to be converted from cpu to __be32, but writel() expects u32 and the
output of cpu_to_be32 returns a __be32.

Signed-off-by: Juan Antonio Aldea-Armenteros <juant.aldea@gmail.com>
Link: https://lore.kernel.org/r/20201119122737.189675-1-juant.aldea@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-11-23 17:59:51 +01:00
..
hi6421-spmi-pmic.c staging: mfd: hi6421-spmi-pmic: Simplify the compatible string 2020-08-18 17:05:14 +02:00
hi6421v600-regulator.c staging: regulator: hi6421v600-regulator: Remove unused including <linux/version.h> 2020-09-13 09:26:24 +02:00
hisi-spmi-controller.c staging: trivial: hikey9xx: fix be32<->u32 casting warnings 2020-11-23 17:59:51 +01:00
hisilicon,hi6421-spmi-pmic.yaml staging: hikey9xx: update references inside the yaml files 2020-08-28 12:19:15 +02:00
hisilicon,hisi-spmi-controller.yaml staging: hikey9xx: update references inside the yaml files 2020-08-28 12:19:15 +02:00
Kconfig staging: hikey9xx: add build for the Kirin 970 PHY driver 2020-09-17 18:50:25 +02:00
Makefile staging: hikey9xx: add build for the Kirin 970 PHY driver 2020-09-17 18:50:25 +02:00
phy-hi3670-usb3.c staging: hikey9xx: Fix incorrect assignment 2020-09-22 09:51:28 +02:00
phy-hi3670-usb3.yaml staging: hikey9xx: convert phy-kirin970-usb3.txt to yaml 2020-09-17 18:50:26 +02:00
TODO staging: hikey9xx: add a TODO list 2020-08-18 16:15:27 +02:00