[PATCH v8 10/22] counter: Standardize to ERANGE for limit exceeded errors
David Lechner
david at lechnology.com
Sat Feb 20 11:48:45 EST 2021
On 2/12/21 6:13 AM, William Breathitt Gray wrote:
> ERANGE is a semantically better error code to return when an argument
> value falls outside the supported limit range of a device.
>
> Cc: Syed Nayyar Waris <syednwaris at gmail.com>
> Cc: Fabrice Gasnier <fabrice.gasnier at st.com>
> Cc: Maxime Coquelin <mcoquelin.stm32 at gmail.com>
> Cc: Alexandre Torgue <alexandre.torgue at st.com>
> Signed-off-by: William Breathitt Gray <vilhelm.gray at gmail.com>
> ---
Reviewed-by: David Lechner <david at lechnology.com>
(I agree with William's assessment that this use of ERANGE
is consistent with other uses in the kernel.)
More information about the linux-arm-kernel
mailing list