Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/udl: Remove udl_fb.c

The remaining code in udl_fb.c is unused. Remove the file entirely.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191210084905.5570-10-tzimmermann@suse.de

+1 -52
+1 -1
drivers/gpu/drm/udl/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 - udl-y := udl_drv.o udl_modeset.o udl_connector.o udl_main.o udl_fb.o udl_transfer.o udl_gem.o 2 + udl-y := udl_drv.o udl_modeset.o udl_connector.o udl_main.o udl_transfer.o udl_gem.o 3 3 4 4 obj-$(CONFIG_DRM_UDL) := udl.o
-51
drivers/gpu/drm/udl/udl_fb.c
··· 1 - // SPDX-License-Identifier: GPL-2.0-only 2 - /* 3 - * Copyright (C) 2012 Red Hat 4 - * 5 - * based in parts on udlfb.c: 6 - * Copyright (C) 2009 Roberto De Ioris <roberto@unbit.it> 7 - * Copyright (C) 2009 Jaya Kumar <jayakumar.lkml@gmail.com> 8 - * Copyright (C) 2009 Bernie Thompson <bernie@plugable.com> 9 - */ 10 - 11 - #include <linux/moduleparam.h> 12 - 13 - #include "udl_drv.h" 14 - 15 - /** Read the red component (0..255) of a 32 bpp colour. */ 16 - #define DLO_RGB_GETRED(col) (uint8_t)((col) & 0xFF) 17 - 18 - /** Read the green component (0..255) of a 32 bpp colour. */ 19 - #define DLO_RGB_GETGRN(col) (uint8_t)(((col) >> 8) & 0xFF) 20 - 21 - /** Read the blue component (0..255) of a 32 bpp colour. */ 22 - #define DLO_RGB_GETBLU(col) (uint8_t)(((col) >> 16) & 0xFF) 23 - 24 - /** Return red/green component of a 16 bpp colour number. */ 25 - #define DLO_RG16(red, grn) (uint8_t)((((red) & 0xF8) | ((grn) >> 5)) & 0xFF) 26 - 27 - /** Return green/blue component of a 16 bpp colour number. */ 28 - #define DLO_GB16(grn, blu) (uint8_t)(((((grn) & 0x1C) << 3) | ((blu) >> 3)) & 0xFF) 29 - 30 - /** Return 8 bpp colour number from red, green and blue components. */ 31 - #define DLO_RGB8(red, grn, blu) ((((red) << 5) | (((grn) & 3) << 3) | ((blu) & 7)) & 0xFF) 32 - 33 - #if 0 34 - static uint8_t rgb8(uint32_t col) 35 - { 36 - uint8_t red = DLO_RGB_GETRED(col); 37 - uint8_t grn = DLO_RGB_GETGRN(col); 38 - uint8_t blu = DLO_RGB_GETBLU(col); 39 - 40 - return DLO_RGB8(red, grn, blu); 41 - } 42 - 43 - static uint16_t rgb16(uint32_t col) 44 - { 45 - uint8_t red = DLO_RGB_GETRED(col); 46 - uint8_t grn = DLO_RGB_GETGRN(col); 47 - uint8_t blu = DLO_RGB_GETBLU(col); 48 - 49 - return (DLO_RG16(red, grn) << 8) + DLO_GB16(grn, blu); 50 - } 51 - #endif