| Subject | Re: [PATCH v12 02/17] counter: Return error code on invalid modes | From | David Lechner <> | Date | Fri, 9 Jul 2021 12:40:49 -0500 |
| |
On 7/5/21 3:18 AM, William Breathitt Gray wrote: > 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 cases for the sake of making the > intent of the code clear. > > Cc: Kamel Bouhara <kamel.bouhara@bootlin.com> > Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com> > Cc: Alexandre Torgue <alexandre.torgue@st.com> > Cc: David Lechner <david@lechnology.com> > Acked-by: Syed Nayyar Waris <syednwaris@gmail.com> > Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> > Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com> > ---
Acked-by: David Lechner <david@lechnology.com>
|