summaryrefslogtreecommitdiff
path: root/drm/nouveau/Kbuild
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@free.fr>2016-08-25 03:57:07 +0300
committerBen Skeggs <bskeggs@redhat.com>2016-11-04 17:17:05 +1000
commitc1c76f9e13d5ec8902b67146b58b36b747eb625e (patch)
tree294e7814deee556a0a0998d8146cc0b30fede4a8 /drm/nouveau/Kbuild
parent38a7c22c9a9719a3936faa29c466614d958391d8 (diff)
downloadnouveau-c1c76f9e13d5ec8902b67146b58b36b747eb625e.tar.gz
drm/nouveau: add a LED driver for the NVIDIA logo
We received a donation of a Titan which has this useless feature allowing users to control the brightness of the LED behind the logo of NVIDIA. In the true spirit of open source, let's expose that to the users of very expensive cards! This patch hooks up this LED/PWM to the LED subsystem which allows blinking it in sync with cpu/disk/network/whatever activity (heartbeat is quite nice!). Users may also implement some breathing effect or morse code support in the userspace if they feel like it. v2: - surround the use of the LED framework with ifdef CONFIG_LEDS_CLASS v3: - avoid using ifdefs everywhere, follow the recommendations of /doc/Documentation/CodingStyle. Suggested by Emil Velikov. v4 (Ben): - squashed series of fixes from ml Signed-off-by: Martin Peres <martin.peres@free.fr> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/nouveau/Kbuild')
-rw-r--r--drm/nouveau/Kbuild1
1 files changed, 1 insertions, 0 deletions
diff --git a/drm/nouveau/Kbuild b/drm/nouveau/Kbuild
index 2527bf4ca..fde6e3656 100644
--- a/drm/nouveau/Kbuild
+++ b/drm/nouveau/Kbuild
@@ -22,6 +22,7 @@ nouveau-$(CONFIG_DEBUG_FS) += nouveau_debugfs.o
nouveau-y += nouveau_drm.o
nouveau-y += nouveau_hwmon.o
nouveau-$(CONFIG_COMPAT) += nouveau_ioc32.o
+nouveau-$(CONFIG_LEDS_CLASS) += nouveau_led.o
nouveau-y += nouveau_nvif.o
nouveau-$(CONFIG_NOUVEAU_PLATFORM_DRIVER) += nouveau_platform.o
nouveau-y += nouveau_usif.o # userspace <-> nvif