mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
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:
parent
e7bb7d44c3
commit
314c45e39e
|
|
@ -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
|
||||
|
|
|
|||
8
drivers/gpu/drm/sysfb/drm_sysfb.c
Normal file
8
drivers/gpu/drm/sysfb/drm_sysfb.c
Normal 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");
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
Loading…
Reference in New Issue
Block a user