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

Staging: sm750fb: Remove unused functions

The functions dviGetDeviceID and dviGetVendorID are not used anywhere in
the kernel so remove them. Also, remove their function prototypes.
Grepped to find occurences.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Bhumika Goyal and committed by
Greg Kroah-Hartman
ce7e581e 69988ba2

-41
-38
drivers/staging/sm750fb/ddk750_dvi.c
··· 53 53 return -1; /* error */ 54 54 } 55 55 56 - 57 - /* 58 - * dviGetVendorID 59 - * This function gets the vendor ID of the DVI controller chip. 60 - * 61 - * Output: 62 - * Vendor ID 63 - */ 64 - unsigned short dviGetVendorID(void) 65 - { 66 - dvi_ctrl_device_t *pCurrentDviCtrl; 67 - 68 - pCurrentDviCtrl = g_dcftSupportedDviController; 69 - if (pCurrentDviCtrl != (dvi_ctrl_device_t *)0) 70 - return pCurrentDviCtrl->pfnGetVendorId(); 71 - 72 - return 0x0000; 73 - } 74 - 75 - 76 - /* 77 - * dviGetDeviceID 78 - * This function gets the device ID of the DVI controller chip. 79 - * 80 - * Output: 81 - * Device ID 82 - */ 83 - unsigned short dviGetDeviceID(void) 84 - { 85 - dvi_ctrl_device_t *pCurrentDviCtrl; 86 - 87 - pCurrentDviCtrl = g_dcftSupportedDviController; 88 - if (pCurrentDviCtrl != (dvi_ctrl_device_t *)0) 89 - return pCurrentDviCtrl->pfnGetDeviceId(); 90 - 91 - return 0x0000; 92 - } 93 - 94 56 #endif 95 57 96 58
-3
drivers/staging/sm750fb/ddk750_dvi.h
··· 55 55 unsigned char pllFilterValue 56 56 ); 57 57 58 - unsigned short dviGetVendorID(void); 59 - unsigned short dviGetDeviceID(void); 60 - 61 58 #endif 62 59