mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-22 07:53:11 -05:00
22e5c7ae12
Panels using a PWM-controlled backlight source do not have a standard way to communicate their valid PWM ranges. On x86 the ranges are read from ACPI through driver-specific tables. The built-in ranges are not necessarily correct, or may grow stale if an older device can be retrofitted with newer panels. Add a quirk infrastructure with which the minimum valid backlight value can be maintained as part of the kernel. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Tested-by: Dustin L. Howett <dustin@howett.net> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241111-amdgpu-min-backlight-quirk-v7-1-f662851fda69@weissschuh.net
23 lines
592 B
C
23 lines
592 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Function prototypes for misc. drm utility functions.
|
|
* Specifically this file is for function prototypes for functions which
|
|
* may also be used outside of drm code (e.g. in fbdev drivers).
|
|
*
|
|
* Copyright (C) 2017 Hans de Goede <hdegoede@redhat.com>
|
|
*/
|
|
|
|
#ifndef __DRM_UTILS_H__
|
|
#define __DRM_UTILS_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_edid;
|
|
|
|
int drm_get_panel_orientation_quirk(int width, int height);
|
|
|
|
int drm_get_panel_min_brightness_quirk(const struct drm_edid *edid);
|
|
|
|
signed long drm_timeout_abs_to_jiffies(int64_t timeout_nsec);
|
|
|
|
#endif
|