summaryrefslogtreecommitdiff
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorMarkus Schneider-Pargmann <msp@baylibre.com>2024-02-24 14:45:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-03-07 23:21:53 +0300
commitdef3173d4f17b37cecbd74d7c269a080b0b01598 (patch)
tree6b1a5348f15e617dd6f0e99b536de2fcadb1ca66 /drivers/cdx/controller/cdx_controller.c
parent8ec0faf2572216b4e25d6829cd41cf3ee2dab979 (diff)
downloadlinux-def3173d4f17b37cecbd74d7c269a080b0b01598.tar.xz
nvmem: core: Print error on wrong bits DT property
The algorithms in nvmem core are built with the constraint that bit_offset < 8. If bit_offset is greater the results are wrong. Print an error if the devicetree 'bits' property is outside of the valid range and abort parsing. Signed-off-by: Markus Schneider-Pargmann <msp@baylibre.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20240224114516.86365-12-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions