Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102653814
D34285.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
635 B
Referenced Files
None
Subscribers
None
D34285.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D34285: linuxkpi: Add backlight_device_set_brightness
Attached
Detach File
Event Timeline
Log In to Comment