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

staging: sm750fb: remove ddk750_dvi

This file and the code present was unused in the whole
driver, therefore this patch removes the file and unused
reference to the header.

Signed-off-by: Ruben Wauters <rubenru09@aol.com>
Link: https://lore.kernel.org/r/20250418151755.42624-3-rubenru09@aol.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ruben Wauters and committed by
Greg Kroah-Hartman
911ab08c 0dbd55e9

+1 -105
+1 -2
drivers/staging/sm750fb/Makefile
··· 3 3 4 4 sm750fb-objs := sm750.o sm750_hw.o sm750_accel.o sm750_cursor.o \ 5 5 ddk750_chip.o ddk750_power.o ddk750_mode.o \ 6 - ddk750_display.o ddk750_swi2c.o ddk750_dvi.o \ 7 - ddk750_hwi2c.o 6 + ddk750_display.o ddk750_swi2c.o ddk750_hwi2c.o
-1
drivers/staging/sm750fb/ddk750_display.c
··· 3 3 #include "ddk750_chip.h" 4 4 #include "ddk750_display.h" 5 5 #include "ddk750_power.h" 6 - #include "ddk750_dvi.h" 7 6 8 7 static void set_display_control(int ctrl, int disp_state) 9 8 {
-45
drivers/staging/sm750fb/ddk750_dvi.c
··· 1 - // SPDX-License-Identifier: GPL-2.0 2 - #define USE_DVICHIP 3 - #ifdef USE_DVICHIP 4 - #include "ddk750_chip.h" 5 - #include "ddk750_reg.h" 6 - #include "ddk750_dvi.h" 7 - 8 - /* 9 - * This global variable contains all the supported driver and its corresponding 10 - * function API. Please set the function pointer to NULL whenever the function 11 - * is not supported. 12 - */ 13 - 14 - static struct dvi_ctrl_device dcft_supported_dvi_controller[] = { }; 15 - 16 - int dvi_init(unsigned char edge_select, 17 - unsigned char bus_select, 18 - unsigned char dual_edge_clk_select, 19 - unsigned char hsync_enable, 20 - unsigned char vsync_enable, 21 - unsigned char deskew_enable, 22 - unsigned char deskew_setting, 23 - unsigned char continuous_sync_enable, 24 - unsigned char pll_filter_enable, 25 - unsigned char pll_filter_value) 26 - { 27 - struct dvi_ctrl_device *current_dvi_ctrl; 28 - 29 - current_dvi_ctrl = dcft_supported_dvi_controller; 30 - if (current_dvi_ctrl->init) { 31 - return current_dvi_ctrl->init(edge_select, 32 - bus_select, 33 - dual_edge_clk_select, 34 - hsync_enable, 35 - vsync_enable, 36 - deskew_enable, 37 - deskew_setting, 38 - continuous_sync_enable, 39 - pll_filter_enable, 40 - pll_filter_value); 41 - } 42 - return -1; /* error */ 43 - } 44 - 45 - #endif
-57
drivers/staging/sm750fb/ddk750_dvi.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0 */ 2 - #ifndef DDK750_DVI_H__ 3 - #define DDK750_DVI_H__ 4 - 5 - /* dvi chip stuffs structros */ 6 - 7 - typedef long (*PFN_DVICTRL_INIT)(unsigned char edge_select, 8 - unsigned char bus_select, 9 - unsigned char dual_edge_clk_select, 10 - unsigned char hsync_enable, 11 - unsigned char vsync_enable, 12 - unsigned char deskew_enable, 13 - unsigned char deskew_setting, 14 - unsigned char continuous_sync_enable, 15 - unsigned char pll_filter_enable, 16 - unsigned char pll_filter_value); 17 - 18 - typedef void (*PFN_DVICTRL_RESETCHIP)(void); 19 - typedef char* (*PFN_DVICTRL_GETCHIPSTRING)(void); 20 - typedef unsigned short (*PFN_DVICTRL_GETVENDORID)(void); 21 - typedef unsigned short (*PFN_DVICTRL_GETDEVICEID)(void); 22 - typedef void (*PFN_DVICTRL_SETPOWER)(unsigned char power_up); 23 - typedef void (*PFN_DVICTRL_HOTPLUGDETECTION)(unsigned char enable_hot_plug); 24 - typedef unsigned char (*PFN_DVICTRL_ISCONNECTED)(void); 25 - typedef unsigned char (*PFN_DVICTRL_CHECKINTERRUPT)(void); 26 - typedef void (*PFN_DVICTRL_CLEARINTERRUPT)(void); 27 - 28 - /* Structure to hold all the function pointer to the DVI Controller. */ 29 - struct dvi_ctrl_device { 30 - PFN_DVICTRL_INIT init; 31 - PFN_DVICTRL_RESETCHIP reset_chip; 32 - PFN_DVICTRL_GETCHIPSTRING get_chip_string; 33 - PFN_DVICTRL_GETVENDORID get_vendor_id; 34 - PFN_DVICTRL_GETDEVICEID get_device_id; 35 - PFN_DVICTRL_SETPOWER set_power; 36 - PFN_DVICTRL_HOTPLUGDETECTION enable_hot_plug_detection; 37 - PFN_DVICTRL_ISCONNECTED is_connected; 38 - PFN_DVICTRL_CHECKINTERRUPT check_interrupt; 39 - PFN_DVICTRL_CLEARINTERRUPT clear_interrupt; 40 - }; 41 - 42 - #define DVI_CTRL_SII164 43 - 44 - /* dvi functions prototype */ 45 - int dvi_init(unsigned char edge_select, 46 - unsigned char bus_select, 47 - unsigned char dual_edge_clk_select, 48 - unsigned char hsync_enable, 49 - unsigned char vsync_enable, 50 - unsigned char deskew_enable, 51 - unsigned char deskew_setting, 52 - unsigned char continuous_sync_enable, 53 - unsigned char pll_filter_enable, 54 - unsigned char pll_filter_value); 55 - 56 - #endif 57 -