drm: Include <video/cmdline.h> for mode parsing
Include <video/cmdline.h> in drm_connector.c to get video_get_options() and avoid the dependency on <linux/fb.h>. The replaced function fb_get_options() is just a tiny wrapper around video_get_opions(). No functional changes. Include <linux/property.h> to get fwnode_handle_put(), which had been provided via <linux/fb.h>. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230209135509.7786-11-tzimmermann@suse.de
This commit is contained in:
@@ -33,9 +33,11 @@
|
||||
#include <drm/drm_sysfs.h>
|
||||
#include <drm/drm_utils.h>
|
||||
|
||||
#include <linux/fb.h>
|
||||
#include <linux/property.h>
|
||||
#include <linux/uaccess.h>
|
||||
|
||||
#include <video/cmdline.h>
|
||||
|
||||
#include "drm_crtc_internal.h"
|
||||
#include "drm_internal.h"
|
||||
|
||||
@@ -154,9 +156,10 @@ EXPORT_SYMBOL(drm_get_connector_type_name);
|
||||
static void drm_connector_get_cmdline_mode(struct drm_connector *connector)
|
||||
{
|
||||
struct drm_cmdline_mode *mode = &connector->cmdline_mode;
|
||||
char *option = NULL;
|
||||
const char *option;
|
||||
|
||||
if (fb_get_options(connector->name, &option))
|
||||
option = video_get_options(connector->name);
|
||||
if (!option)
|
||||
return;
|
||||
|
||||
if (!drm_mode_parse_command_line_for_connector(option,
|
||||
|
||||
Reference in New Issue
Block a user