Re: [PATCH v8 10/22] counter: Standardize to ERANGE for limit exceeded errors

From: David Lechner
Date: Sat Feb 20 2021 - 11:49:53 EST


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@xxxxxxxxx>
Cc: Fabrice Gasnier <fabrice.gasnier@xxxxxx>
Cc: Maxime Coquelin <mcoquelin.stm32@xxxxxxxxx>
Cc: Alexandre Torgue <alexandre.torgue@xxxxxx>
Signed-off-by: William Breathitt Gray <vilhelm.gray@xxxxxxxxx>
---

Reviewed-by: David Lechner <david@xxxxxxxxxxxxxx>

(I agree with William's assessment that this use of ERANGE
is consistent with other uses in the kernel.)