]> www.infradead.org Git - users/jedix/linux-maple.git/commit
misc: lis3lv02d: Fix incorrect of_get_property() usage
authorRob Herring (Arm) <robh@kernel.org>
Wed, 28 Aug 2024 13:18:51 +0000 (08:18 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2024 10:33:42 +0000 (12:33 +0200)
commite807c406a6b405518f420426665e2455f83ad8fc
tree13cb76f2f131f073c42f2dfe7cea12047dafa717
parent62c5a01a5711c8e4be8ae7b6f0db663094615d48
misc: lis3lv02d: Fix incorrect of_get_property() usage

The usage of of_get_property() is wrong. What's returned in "val" is
the property's length, not the value. Fix this by using the preferred
typed of_property_read_u32() function instead.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20240828131851.3631855-1-robh@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/lis3lv02d/lis3lv02d.c