summaryrefslogtreecommitdiffstats
path: root/drivers/staging/xgifb
Commit message (Collapse)AuthorAgeFilesLines
* staging: xgifb: enable forcecrt2type as a module parameterAaro Koskinen2011-12-081-0/+8
| | | | | | | Enable forcecrt2type as a module parameter. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: enable forcecrt2type on XG21Aaro Koskinen2011-12-083-12/+25
| | | | | | | | Make "forcecrt2type" to apply also for XG21. The patch enables user to switch LVDS LCD ON/OFF without the need to update the video BIOS. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: delete "userom" optionAaro Koskinen2011-12-082-3/+0
| | | | | | | Delete a redundant option. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_table: delete XGI21_LCDCapListAaro Koskinen2011-12-081-27/+0
| | | | | | | | Delete XGI21_LCDCapList. This data is display specific and does not belong to the driver. It should be provided by the video BIOS. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: move XGI21_LVDSCapStruct into xgifb_video_infoAaro Koskinen2011-12-086-97/+86
| | | | | | | | Move the LVDS data into a device-specific data, and eliminate the global variable usage. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: disable LVDS on XG27Aaro Koskinen2011-12-081-1/+0
| | | | | | | | | XG27 has the second display output already hardcoded to disabled. Just in case, ensure that it has the LVDS code paths disabled. This will simplify the future cleanups. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: delete XGIfb_GetXG21LVDSData()Aaro Koskinen2011-12-081-63/+0
| | | | | | | | Delete XGIfb_GetXG21LVDSData() and code which duplicates xgifb_read_vbios(). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: ReadVBIOSTablData(): rename to xgifb_read_vbios()Aaro Koskinen2011-12-081-3/+2
| | | | | | | Rename the function to xgifb_read_vbios(). Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: ReadVBIOSTablData(): copy only a single LVDS entryAaro Koskinen2011-12-082-32/+27
| | | | | | | Only a single LVDS table entry is needed by the driver. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: ReadVBIOSTablData(): check the BIOS sizeAaro Koskinen2011-12-081-7/+21
| | | | | | | | Check the BIOS size to avoid out of bounds array access. Disable LVDS in case errors are detected. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: use u8 for video BIOS dataAaro Koskinen2011-12-081-3/+3
| | | | | | | Use u8 for video BIOS data. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: delete pjVirtualRomBaseAaro Koskinen2011-12-081-2/+0
| | | | | | | Delete a redundant struct member. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: delete ROMAddrAaro Koskinen2011-12-084-14/+0
| | | | | | | Delete a redundant struct member. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: move video BIOS handling completely to ReadVBIOSTablData()Aaro Koskinen2011-12-082-44/+39
| | | | | | | | We need the video BIOS only on XG21 and only during the init, so let's do everything at the same place. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: XGINew_GetXG21Sense(): eliminate video BIOS accessAaro Koskinen2011-12-081-6/+1
| | | | | | | | Remove video BIOS access from the routine, use the flag instead which is initialized according to the BIOS data. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: ReadVBIOSTablData(): use a pointer to access the arrayAaro Koskinen2011-12-081-26/+19
| | | | | | | Use a pointer variable to make some lines shorter and more readable. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: ReadVBIOSTablData(): rename pVideoMemoryAaro Koskinen2011-12-081-29/+20
| | | | | | | Rename pVideoMemory to vbios, and also remove volatile at the same go. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: ReadVBIOSTablData(): use ARRAY_SIZEAaro Koskinen2011-12-081-3/+1
| | | | | | | Use ARRAY_SIZE. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: ReadVBIOSTablData(): rearrange code to avoid nestingAaro Koskinen2011-12-081-60/+51
| | | | | | | Rearrange code to avoid deep nesting. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: ReadVBIOSTablData(): avoid duplicating codeAaro Koskinen2011-12-081-70/+27
| | | | | | | If the count (j) is 0xff, just do the loop once. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: clean up a single statement ifAaro Koskinen2011-11-281-2/+1
| | | | | | | | | | | | | | | Eliminate the only remaining checkpatch.pl warning: WARNING: braces {} are not necessary for single statement blocks #7463: FILE: staging/xgifb/vb_setmode.c:7463: + if (ModeNo & 0x80) { + ModeNo = ModeNo & 0x7F; + } total: 0 errors, 1 warnings, 0 checks, 7554 lines checked Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: reduce if nesting in XGI_GetVCLK2Ptr()Aaro Koskinen2011-11-281-66/+44
| | | | | | | | Eliminate unnecessary nesting levels by rearranging code and conditions. The resulting code should be still identical. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: reduce if nesting in XGI_SetLockRegs()Aaro Koskinen2011-11-281-29/+16
| | | | | | | | Eliminate unnecessary nesting levels by rearranging code and conditions. The resulting code should be still identical. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: delete empty if statement blocksAaro Koskinen2011-11-281-4/+1
| | | | | | | | | | Delete empty if statement blocks. The patch eliminates following checkpatch.pl warnings: WARNING: suspect code indent for conditional statements (8, 8) Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: delete XGI_VBLongWait()Aaro Koskinen2011-11-281-38/+0
| | | | | | | XGI_VBLongWait() is NOP, so just delete it. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: delete commented-out codeAaro Koskinen2011-11-281-295/+5
| | | | | | | Delete commented-out code. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: inline XGI_SetMiscRegs()Aaro Koskinen2011-11-281-23/+1
| | | | | | | Inline a trivial function. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: eliminate GetVGAType/Set_VGATypeAaro Koskinen2011-11-282-18/+3
| | | | | | | | Eliminate unneeded function and struct field. The same information is available in HwDeviceExtension->jChipType. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: make internal functions staticAaro Koskinen2011-11-282-40/+11
| | | | | | | Make internal functions static. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: make XGI_GetLVDSOEMTableIndex() staticAaro Koskinen2011-11-282-13/+11
| | | | | | | | XGI_GetLVDSOEMTableIndex() can be made static. Move the function, so that forward declaration is not needed. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: make XGI_XG21SetPanelDelay() staticAaro Koskinen2011-11-282-31/+29
| | | | | | | | XGI_XG21SetPanelDelay() can be made static. Move the function, so that forward declaration is not needed. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: make XGI_XG27BLSignalVDD() staticAaro Koskinen2011-11-282-34/+31
| | | | | | | | XGI_XG27BLSignalVDD() can be made static. Move the function, so that forward declaration is not needed. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: make XGI_XG21BLSignalVDD() staticAaro Koskinen2011-11-282-38/+35
| | | | | | | | XGI_XG21BLSignalVDD() can be made static. Move the function, so that forward declaration is not needed. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: make XGI_SetXG27FPBits() staticAaro Koskinen2011-11-282-15/+14
| | | | | | | | XGI_SetXG27FPBits() can be made static. Move the function, so that forward declaration is not needed. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: make XGI_SetXG21FPBits() staticAaro Koskinen2011-11-282-15/+13
| | | | | | | | XGI_SetXG21FPBits() can be made static. Move the function, so that forward declaration is not needed. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: make XGI_GetResInfo() staticAaro Koskinen2011-11-282-18/+14
| | | | | | | | XGI_GetResInfo() can be made static. Move the function, so that forward declaration is not needed. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: vb_setmode: make XGI_LongWait() staticAaro Koskinen2011-11-282-20/+19
| | | | | | | | XGI_LongWait() can be made static. Move the function, so that forward declaration is not needed. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: delete vb_ext.{c,h}Aaro Koskinen2011-11-264-21/+1
| | | | | | | Delete empty files. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: move XGINew_SenseLCD() to vb_init.cAaro Koskinen2011-11-263-45/+44
| | | | | | | | The function is used only in vb_init.c, so move it there and make it static. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: rename XGINew_GetLCDDDCInfo() to XGINew_SenseLCD()Aaro Koskinen2011-11-261-13/+1
| | | | | | | Eliminate an unnecessary wrapper function. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging: xgifb: delete XGI_GetSenseStatus()Aaro Koskinen2011-11-262-377/+0
| | | | | | | | | | | Delete unused function XGI_GetSenseStatus(). Static functions XGINew_Is301B(), XGINew_Sense(), XGINew_GetPanelID(), XGINew_BridgeIsEnable() and XGINew_SenseHiTV() can be deleted as well, since they are not used anymore. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* staging/xgifb: Convert pci_table entries to PCI_DEVICE (if PCI_ANY_ID is used)Peter Huewe2011-11-261-8/+4
| | | | | | | | | | | | | | This patch converts pci_table entries to use the PCI_DEVICE macro, if .subvendor and .subdevice are set to PCI_ANY_ID, and thus improves readability. v2: Since the driver_data field isn't used anywhere we can also drop the assignments for class, class_mask and driver_data. (found by Aaro Koskinen) Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Merge branch 'fbdev-next' of git://github.com/schandinat/linux-2.6Linus Torvalds2011-10-301-18/+7
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'fbdev-next' of git://github.com/schandinat/linux-2.6: (270 commits) video: platinumfb: Add __devexit_p at necessary place drivers/video: fsl-diu-fb: merge diu_pool into fsl_diu_data drivers/video: fsl-diu-fb: merge diu_hw into fsl_diu_data drivers/video: fsl-diu-fb: only DIU modes 0 and 1 are supported drivers/video: fsl-diu-fb: remove unused panel operating mode support drivers/video: fsl-diu-fb: use an enum for the AOI index drivers/video: fsl-diu-fb: add several new video modes drivers/video: fsl-diu-fb: remove broken screen blanking support drivers/video: fsl-diu-fb: move some definitions out of the header file drivers/video: fsl-diu-fb: fix some ioctls video: da8xx-fb: Increased resolution configuration of revised LCDC IP OMAPDSS: picodlp: add missing #include <linux/module.h> fb: fix au1100fb bitrot. mx3fb: fix NULL pointer dereference in screen blanking. video: irq: Remove IRQF_DISABLED smscufx: change edid data to u8 instead of char OMAPDSS: DISPC: zorder support for DSS overlays OMAPDSS: DISPC: VIDEO3 pipeline support OMAPDSS/OMAP_VOUT: Fix incorrect OMAP3-alpha compatibility setting video/omap: fix build dependencies ... Fix up conflicts in: - drivers/staging/xgifb/XGI_main_26.c Changes to XGIfb_pan_var() - drivers/video/omap/{lcd_apollon.c,lcd_ldp.c,lcd_overo.c} Removed (or in the case of apollon.c, merged into the generic DSS panel in drivers/video/omap2/displays/panel-generic-dpi.c)
| * staging: xgifb: use display information in info not in var for panningLaurent Pinchart2011-08-191-16/+6
| | | | | | | | | | | | | | We must not use any information in the passed var besides xoffset, yoffset and vmode as otherwise applications might abuse it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
* | staging: xgifb: clean up 2nd display stateAaro Koskinen2011-10-123-42/+44
| | | | | | | | | | | | | | | | Convert the display type to enum and rename disp_state to display2. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | staging: xgifb: delete CRT1 stateAaro Koskinen2011-10-122-14/+0
| | | | | | | | | | | | | | | | The driver does not need to manage CRT1 state. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | staging: xgifb: make DAC tables constAaro Koskinen2011-10-121-5/+6
| | | | | | | | | | | | | | | | DAC tables are read-only and can be made const. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | staging: xgifb: make RAM type tables constAaro Koskinen2011-10-121-5/+5
| | | | | | | | | | | | | | | | RAM type tables are read-only and can be made const. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | staging: xgifb: move XGINew_DataBusWidth into vb_device_infoAaro Koskinen2011-10-122-17/+16
| | | | | | | | | | | | | | | | Move the memory bus width info to vb_device_info. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* | staging: xgifb: move XGINew_ChannelAB into vb_device_infoAaro Koskinen2011-10-122-26/+27
| | | | | | | | | | | | | | | | Move the memory channel info into vb_device_info. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
OpenPOWER on IntegriCloud