projects
/
openwrt
/
staging
/
ansuel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63a9218
)
kernel: leds-ws2812b: remove sub 6.6 support
author
Rosen Penev
<rosenp@gmail.com>
Thu, 26 Sep 2024 20:09:19 +0000
(13:09 -0700)
committer
Robert Marko
<robimarko@gmail.com>
Sun, 6 Oct 2024 10:21:51 +0000
(12:21 +0200)
5.15 and 6.1 are gone.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link:
https://github.com/openwrt/openwrt/pull/16587
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/kernel/leds-ws2812b/src/leds-ws2812b.c
patch
|
blob
|
history
diff --git
a/package/kernel/leds-ws2812b/src/leds-ws2812b.c
b/package/kernel/leds-ws2812b/src/leds-ws2812b.c
index 69bc575ba28bc8cd443a5c09a139e958e2007566..d061ee9dceaad03286a58a1b53b671d6de2a7864 100644
(file)
--- a/
package/kernel/leds-ws2812b/src/leds-ws2812b.c
+++ b/
package/kernel/leds-ws2812b/src/leds-ws2812b.c
@@
-189,19
+189,11
@@
ERR_UNREG_LEDS:
return ret;
}
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,18,0)
static void ws2812b_remove(struct spi_device *spi)
-#else
-static int ws2812b_remove(struct spi_device *spi)
-#endif
{
struct ws2812b_priv *priv = spi_get_drvdata(spi);
mutex_destroy(&priv->mutex);
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5,18,0)
- return 0;
-#endif
}
static const struct spi_device_id ws2812b_spi_ids[] = {