summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-02-17 14:11:49 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-26 14:59:44 -0800
commit7098d3743105f7d522c5bb6c9763e30028039b26 (patch)
tree099793a39f7e0f3fb7dbb5c044b5561a943ccc9d /include/net/aligned_data.h
parent778f326af79f5028aa67938f6d9c2c79fcf94418 (diff)
gpio: amd-fch: ionly return allowed values from amd_fch_gpio_get()
[ Upstream commit fbd03587ba732c612b8a569d1cf5bed72bd3a27c ] As of 86ef402d805d ("gpiolib: sanitize the return value of gpio_chip::get()") gpiolib requires drivers implementing GPIOs to only return 0, 1 or negative error for the get() callbacks. Ensure that amd-fch complies with this requirement. Fixes: 86ef402d805d ("gpiolib: sanitize the return value of gpio_chip::get()") Reported-and-tested-by: Tj <tj.iam.tj@proton.me> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Link: https://patch.msgid.link/aZTlwnvHt2Gho4yN@google.com Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions