diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-04-08 18:38:46 +0300 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2022-04-22 19:50:51 +0300 |
commit | 09f688f0718f57f9cf68ee1aa94490f641e759ba (patch) | |
tree | 983767f3a2806606c1a081d13f88d62672fa9020 /scripts/gdb/linux/proc.py | |
parent | d7b4408374b69dbc246c59c29e3077920b9f03eb (diff) | |
download | linux-09f688f0718f57f9cf68ee1aa94490f641e759ba.tar.xz |
pwm: raspberrypi-poe: Fix endianness in firmware struct
The reg member of struct raspberrypi_pwm_prop is a little endian 32 bit
quantity. Explicitly convert the (native endian) value to little endian
on assignment as is already done in raspberrypi_pwm_set_property().
This fixes the following sparse warning:
drivers/pwm/pwm-raspberrypi-poe.c:69:24: warning: incorrect type in initializer (different base types)
drivers/pwm/pwm-raspberrypi-poe.c:69:24: expected restricted __le32 [usertype] reg
drivers/pwm/pwm-raspberrypi-poe.c:69:24: got unsigned int [usertype] reg
Fixes: 79caa362eab6 ("pwm: Add Raspberry Pi Firmware based PWM bus")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions