platform/chrome: cros_ec: Do not attempt to register a non-positive IRQ number
authorGwendal Grignou <gwendal@chromium.org>
Tue, 19 Nov 2019 12:45:46 +0000 (13:45 +0100)
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>
Thu, 21 Nov 2019 10:23:15 +0000 (11:23 +0100)
commitda946589b1b9b643c538e6c977ac0f963362ee3c
tree90a4fe24ca41aa68476e281934ee0fe769403ca7
parent05a3c420eaa6857cb20afe7e3a3c39ed94a3b2c1
platform/chrome: cros_ec: Do not attempt to register a non-positive IRQ number

Add a layer of sanity checking to cros_ec_register against attempting to
register IRQ values that are not strictly greater than 0.

Signed-off-by: Enrico Granata <egranata@chromium.org>
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
drivers/platform/chrome/cros_ec.c