mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
![Jacek Anaszewski](/assets/img/avatar_default.png)
LED subsystem supports POLLPRI on "brightness_hw_changed" sysfs file of LED class devices. This tool demonstrates how to use the feature. Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Pavel Machek <pavel@ucw.cz>
13 lines
232 B
Makefile
13 lines
232 B
Makefile
# Makefile for LEDs tools
|
|
|
|
CC = $(CROSS_COMPILE)gcc
|
|
CFLAGS = -Wall -Wextra -g -I../../include/uapi
|
|
|
|
all: uledmon led_hw_brightness_mon
|
|
%: %.c
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
clean:
|
|
$(RM) uledmon led_hw_brightness_mon
|
|
|
|
.PHONY: all clean
|