# Re: \[PATCH V5 3/6\] drivers/auxdisplay: sensehat: Raspberry Pi Sense HAT display driver

- From: Miguel Ojeda \<hidden\>
- Date: 2021-12-11 18:38:45 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2021/12/1604948
- Thread: https://ratatoskr.run/linux-arm-kernel/2021/12/1604527/t.md

```text
Hi Charles, Mwesigwa, Joel, Serge,

On Fri, Dec 10, 2021 at 11:11 PM Charles Mirabile [ref] wrote:
>
> Signed-off-by: Charles Mirabile <redacted>
> Co-developed-by: Mwesigwa Guma <redacted>
> Signed-off-by: Mwesigwa Guma <redacted>
> Co-developed-by: Joel Savitz <redacted>
> Signed-off-by: Joel Savitz <redacted>

The "submitting author" should be the last one, i.e.:

Co-developed-by: Mwesigwa Guma <redacted>
Signed-off-by: Mwesigwa Guma <redacted>
Co-developed-by: Joel Savitz <redacted>
Signed-off-by: Joel Savitz <redacted>
Signed-off-by: Charles Mirabile <redacted>

> +config SENSEHAT_DISPLAY
> +       tristate "Raspberry pi Sense HAT display driver"

pi -> Pi

> +static int sensehat_update_display(struct sensehat *sensehat);

Can the function be directly defined instead?

> +       if (*f_pos >= VMEM_SIZE)
> +               return 0;
> +       if (*f_pos + count > VMEM_SIZE)
> +               count = VMEM_SIZE - *f_pos;

`min` / `min_t`?

> +       if (ret < 0)
> +               dev_err(sensehat->dev,
> +                       "Update to 8x8 LED matrix display failed");

Could this happen a lot of times? Is it expected to happen under some
condition or should never happen?

Cheers,
Miguel

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
