diff options
author | Tony Lindgren <tony@atomide.com> | 2019-08-30 14:43:12 -0700 |
---|---|---|
committer | Kishon Vijay Abraham I <kishon@ti.com> | 2019-12-26 16:27:53 +0530 |
commit | af5d44de571811a151510bfd1236407b7f551cd9 (patch) | |
tree | a04b3685529ce85ecc43a56d690e92a4653d703e /samples | |
parent | 049226b9fd7442149dcbcf55f15408f5973cceda (diff) |
phy: mapphone-mdm6600: Fix uninitialized status value regression
Only the used bits get cleared with bitmap_zero() when we call
gpiod_get_array_value_cansleep(). We must mask only the bits we're
using for ddata->status as the other bits in the bitmap may not be
initialized.
And let's also drop useless debug code accidentally left over while
at it.
Fixes: b9762bebc633 ("gpiolib: Pass bitmaps, not integer arrays, to get/set array")
Cc: Jacopo Mondi <jacopo@jmondi.org>
Cc: Janusz Krzysztofik <jmkrzyszt@gmail.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Marcel Partap <mpartap@gmx.net>
Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Michael Scott <hashcode0f@gmail.com>
Cc: NeKit <nekit1000@gmail.com>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions