mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
LinuxKPI: ath10k: adjust for led changes to keep ath10k compiling
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
Add the conditional compile time option defaulting to off as we do not support leds in LinuxKPI to ath10k for the new file. Add empty struct gpio_led to LinuxKPI. MFC after: 3 days
This commit is contained in:
parent
9954217599
commit
fe7b6fc324
2 changed files with 10 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*-
|
||||
* Copyright (c) 2022 Bjoern A. Zeeb
|
||||
* Copyright (c) 2022-2025 Bjoern A. Zeeb
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
|
|
@ -38,4 +38,7 @@ struct led_classdev {
|
|||
void (*led_set)(struct led_classdev *, enum led_brightness);
|
||||
};
|
||||
|
||||
struct gpio_led {
|
||||
};
|
||||
|
||||
#endif /* _LINUXKPI_LINUX_LEDS_H */
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ DEVATH10KDIR= ${SRCTOP}/sys/contrib/dev/athk/ath10k
|
|||
.PATH: ${DEVATH10KDIR}
|
||||
|
||||
WITH_CONFIG_FWLOG= 1
|
||||
WITH_LEDS= 0
|
||||
|
||||
KMOD= if_ath10k
|
||||
|
||||
|
|
@ -22,6 +23,11 @@ SRCS+= fwlog.c
|
|||
CFLAGS+= -DCONFIG_FWLOG=${WITH_CONFIG_FWLOG}
|
||||
.endif
|
||||
|
||||
.if defined(WITH_LEDS) && ${WITH_LEDS} > 0
|
||||
CFLAGS+= -DCONFIG_ATH10K_LEDS
|
||||
SRCS+= leds.c
|
||||
.endif
|
||||
|
||||
CFLAGS+= -DKBUILD_MODNAME='"ath10k"'
|
||||
|
||||
CFLAGS+= -I${DEVATH10KDIR}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue