diff options
author | 2020-04-19 15:05:14 +0000 | |
---|---|---|
committer | 2020-04-19 15:05:14 +0000 | |
commit | 247c8e67a5392fb306c89d31d4ff2209d79c66fd (patch) | |
tree | 8aaef1e317ef22ce9e85df04b9ebe5c6c82e7d0d /sys/dev/fdt/bcm2711_rng.c | |
parent | Add bcmclock, a driver for the BCM283X CPRMAN clock controller. (diff) | |
download | wireguard-openbsd-247c8e67a5392fb306c89d31d4ff2209d79c66fd.tar.xz wireguard-openbsd-247c8e67a5392fb306c89d31d4ff2209d79c66fd.zip |
Move logic to change brightness level in reasonable steps from acpivout(4)
into wsdisplay(4). This code is now exposed through
wsdisplay_brightness_{step,zero,cycle} functions that can be called by
any driver that handles brightnes "hotkeys". These functions take
a wsdisplay(4) device pointer as their first argument, which should be
provided if a clear association between events and a particular display
exist. This is used in wskbd(4). Otherwise NULL can be passed and
the code will direct the request at the first wsdisplay(4) that
implements brightness adjustment.
Tested by many. Fixes brightness keys on x395 and other thinkpads with
AMD graphics.
ok patrick@
Diffstat (limited to 'sys/dev/fdt/bcm2711_rng.c')
0 files changed, 0 insertions, 0 deletions