Re: [PATCH] staging: fbtft: replace -1 with proper error codes
From: Greg KH
Date: Mon Mar 09 2026 - 12:37:34 EST
On Sun, Mar 01, 2026 at 01:57:01AM +0530, Soham Kute wrote:
> Replace return -1 with proper kernel error codes:
> - -ENODEV when SPI device is NULL
> - -EINVAL when display size or buffer is invalid
> - -EOPNOTSUPP for unimplemented functions
>
> Signed-off-by: Soham Kute <officialsohamkute@xxxxxxxxx>
> ---
> drivers/staging/fbtft/fb_ra8875.c | 4 ++--
> drivers/staging/fbtft/fbtft-bus.c | 4 ++--
> drivers/staging/fbtft/fbtft-io.c | 4 ++--
> 3 files changed, 6 insertions(+), 6 deletions(-)
Some of these functions are not called anywhere, so please remove them
instead entirely, and then fix up the remaining ones (after verifying
that the callers can handle the changed values you have made here.)
That can be a patch series.
thanks,
greg k-h