aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <[email protected]>2021-08-03 21:06:12 +0900
committerJonathan Cameron <[email protected]>2021-08-09 20:17:36 +0100
commitb11eed1554e8ea33b748094ea73d8b42fa2bbe3b (patch)
tree9fef0018387c91f35cf29b9d8386da362814239f /include
parent728246e8f7269ecd35a2c6e6795323e6d8f48db7 (diff)
counter: Return error code on invalid modes
Only a select set of modes (function, action, etc.) are valid for a given device configuration. This patch ensures that invalid modes result in a return -EINVAL. Such a situation should never occur in reality, but it's good to define a default switch case for the sake of making the intent of the code clear. Cc: Kamel Bouhara <[email protected]> Cc: Maxime Coquelin <[email protected]> Cc: Alexandre Torgue <[email protected]> Acked-by: David Lechner <[email protected]> Acked-by: Syed Nayyar Waris <[email protected]> Reviewed-by: Fabrice Gasnier <[email protected]> Signed-off-by: William Breathitt Gray <[email protected]> Link: https://lore.kernel.org/r/7af82d4e39610da11edce0ee370285fe1cb1eac8.1627990337.git.vilhelm.gray@gmail.com Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions