Page MenuHomeFreeBSD

D34285.diff
No OneTemporary

D34285.diff

diff --git a/sys/compat/linuxkpi/common/include/linux/backlight.h b/sys/compat/linuxkpi/common/include/linux/backlight.h
--- a/sys/compat/linuxkpi/common/include/linux/backlight.h
+++ b/sys/compat/linuxkpi/common/include/linux/backlight.h
@@ -91,6 +91,16 @@
bd->props.brightness = bd->ops->get_brightness(bd);
}
+static inline int
+backlight_device_set_brightness(struct backlight_device *bd, int brightness)
+{
+
+ if (brightness > bd->props.max_brightness)
+ return (EINVAL);
+ bd->props.brightness = brightness;
+ return (bd->ops->update_status(bd));
+}
+
static inline int
backlight_enable(struct backlight_device *bd)
{

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 9:45 AM (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14656744
Default Alt Text
D34285.diff (635 B)

Event Timeline