diff options
author | Guenter Roeck <[email protected]> | 2024-06-06 11:05:07 -0700 |
---|---|---|
committer | Tzung-Bi Shih <[email protected]> | 2024-06-07 09:59:58 +0000 |
commit | c8a4bdca928debacf49524d1b09dbf27e88e1f18 (patch) | |
tree | ba59341fddc1947e1e8fa885625bc6faaabfc0bb /lib/memory-notifier-error-inject.c | |
parent | 1f72dd046270ff44e5fd43045c4d0bb025f88607 (diff) |
hwmon: (cros_ec) Fix access to restricted __le16
0-day complains:
drivers-hwmon-cros_ec_hwmon.c:sparse:sparse:cast-to-restricted-__le16
Fix by using a __le16 typed variable as parameter to le16_to_cpu().
Fixes: bc3e45258096 ("hwmon: add ChromeOS EC driver")
Cc: Thomas Weißschuh <[email protected]>
Cc: Tzung-Bi Shih <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Acked-by: Thomas Weißschuh <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Tzung-Bi Shih <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions