drm/sysfb: Split source file

Split drm_sysfb_helper.c into two source files. There's now one
source file for the mode-setting pipeline and one source file for
module meta data. Prepares for adding additional source code to
sysfb helpers.

v2:
- fix typo in commit message (Javier)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20250410083834.10810-2-tzimmermann@suse.de
This commit is contained in:
Thomas Zimmermann 2025-04-10 10:37:23 +02:00
parent e7bb7d44c3
commit 314c45e39e
4 changed files with 16 additions and 4 deletions

View File

@ -1,5 +1,8 @@
# SPDX-License-Identifier: GPL-2.0-only
drm_sysfb_helper-y := \
drm_sysfb.o \
drm_sysfb_modeset.o
obj-$(CONFIG_DRM_SYSFB_HELPER) += drm_sysfb_helper.o
obj-$(CONFIG_DRM_EFIDRM) += efidrm.o

View File

@ -0,0 +1,8 @@
// SPDX-License-Identifier: GPL-2.0-only
#include <linux/module.h>
#include "drm_sysfb_helper.h"
MODULE_DESCRIPTION("Helpers for DRM sysfb drivers");
MODULE_LICENSE("GPL");

View File

@ -11,6 +11,11 @@
#include <drm/drm_modes.h>
struct drm_format_info;
struct drm_scanout_buffer;
/*
* Display modes
*/
struct drm_display_mode drm_sysfb_mode(unsigned int width,
unsigned int height,

View File

@ -2,7 +2,6 @@
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
@ -20,9 +19,6 @@
#include "drm_sysfb_helper.h"
MODULE_DESCRIPTION("Helpers for DRM sysfb drivers");
MODULE_LICENSE("GPL");
struct drm_display_mode drm_sysfb_mode(unsigned int width,
unsigned int height,
unsigned int width_mm,