Commit 6fa7db83 authored by Supriya Karanth's avatar Supriya Karanth Committed by Greg Kroah-Hartman
Browse files

staging: sm750fb: Add void to function definition with no arguments



Found by checkpatch.pl - ERROR: Bad function definition

A function with no arguments allows for variadic arguments. Add
void in between the empty parentheses to indicate that the function
takes no arguments.

changes made using coccinelle script:
@@
type T;
identifier f;
@@
T f(
+void
 ) {
...
}

Signed-off-by: default avatarSupriya Karanth <iskaranth@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d6b0d6de
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -11,7 +11,7 @@ typedef struct _pllcalparam{
pllcalparam;
pllcalparam;




logical_chip_type_t getChipType()
logical_chip_type_t getChipType(void)
{
{
	unsigned short physicalID;
	unsigned short physicalID;
	char physicalRev;
	char physicalRev;
@@ -91,7 +91,7 @@ unsigned int getPllValue(clock_type_t clockType, pll_value_t *pPLL)
}
}




unsigned int getChipClock()
unsigned int getChipClock(void)
{
{
    pll_value_t pll;
    pll_value_t pll;
#if 1
#if 1
@@ -232,7 +232,7 @@ void setMasterClock(unsigned int frequency)
}
}




unsigned int ddk750_getVMSize()
unsigned int ddk750_getVMSize(void)
{
{
	unsigned int reg;
	unsigned int reg;
	unsigned int data;
	unsigned int data;
+1 −1
Original line number Original line Diff line number Diff line
@@ -273,7 +273,7 @@ void ddk750_setLogicalDispOut(disp_output_t output)
}
}




int ddk750_initDVIDisp()
int ddk750_initDVIDisp(void)
{
{
    /* Initialize DVI. If the dviInit fail and the VendorID or the DeviceID are
    /* Initialize DVI. If the dviInit fail and the VendorID or the DeviceID are
       not zeroed, then set the failure flag. If it is zeroe, it might mean
       not zeroed, then set the failure flag. If it is zeroe, it might mean
+2 −2
Original line number Original line Diff line number Diff line
@@ -62,7 +62,7 @@ int dviInit(
 *  Output:
 *  Output:
 *      Vendor ID
 *      Vendor ID
 */
 */
unsigned short dviGetVendorID()
unsigned short dviGetVendorID(void)
{
{
    dvi_ctrl_device_t *pCurrentDviCtrl;
    dvi_ctrl_device_t *pCurrentDviCtrl;


@@ -82,7 +82,7 @@ unsigned short dviGetVendorID()
 *  Output:
 *  Output:
 *      Device ID
 *      Device ID
 */
 */
unsigned short dviGetDeviceID()
unsigned short dviGetDeviceID(void)
{
{
    dvi_ctrl_device_t *pCurrentDviCtrl;
    dvi_ctrl_device_t *pCurrentDviCtrl;


+1 −1
Original line number Original line Diff line number Diff line
@@ -15,7 +15,7 @@ void ddk750_setDPMS(DPMS_t state)
	}
	}
}
}


unsigned int getPowerMode()
unsigned int getPowerMode(void)
{
{
	if(getChipType() == SM750LE)
	if(getChipType() == SM750LE)
		return 0;
		return 0;
+7 −7
Original line number Original line Diff line number Diff line
@@ -34,7 +34,7 @@ static char *gDviCtrlChipName = "Silicon Image SiI 164";
 *  Output:
 *  Output:
 *      Vendor ID
 *      Vendor ID
 */
 */
unsigned short sii164GetVendorID()
unsigned short sii164GetVendorID(void)
{
{
    unsigned short vendorID;
    unsigned short vendorID;


@@ -51,7 +51,7 @@ unsigned short sii164GetVendorID()
 *  Output:
 *  Output:
 *      Device ID
 *      Device ID
 */
 */
unsigned short sii164GetDeviceID()
unsigned short sii164GetDeviceID(void)
{
{
    unsigned short deviceID;
    unsigned short deviceID;


@@ -264,7 +264,7 @@ long sii164InitChip(
 *  sii164ResetChip
 *  sii164ResetChip
 *      This function resets the DVI Controller Chip.
 *      This function resets the DVI Controller Chip.
 */
 */
void sii164ResetChip()
void sii164ResetChip(void)
{
{
    /* Power down */
    /* Power down */
    sii164SetPower(0);
    sii164SetPower(0);
@@ -277,7 +277,7 @@ void sii164ResetChip()
 *      This function returns a char string name of the current DVI Controller chip.
 *      This function returns a char string name of the current DVI Controller chip.
 *      It's convenient for application need to display the chip name.
 *      It's convenient for application need to display the chip name.
 */
 */
char *sii164GetChipString()
char *sii164GetChipString(void)
{
{
    return gDviCtrlChipName;
    return gDviCtrlChipName;
}
}
@@ -375,7 +375,7 @@ void sii164EnableHotPlugDetection(
 *      0   - Not Connected
 *      0   - Not Connected
 *      1   - Connected
 *      1   - Connected
 */
 */
unsigned char sii164IsConnected()
unsigned char sii164IsConnected(void)
{
{
    unsigned char hotPlugValue;
    unsigned char hotPlugValue;


@@ -394,7 +394,7 @@ unsigned char sii164IsConnected()
 *      0   - No interrupt
 *      0   - No interrupt
 *      1   - Interrupt occurs
 *      1   - Interrupt occurs
 */
 */
unsigned char sii164CheckInterrupt()
unsigned char sii164CheckInterrupt(void)
{
{
    unsigned char detectReg;
    unsigned char detectReg;


@@ -409,7 +409,7 @@ unsigned char sii164CheckInterrupt()
 *  sii164ClearInterrupt
 *  sii164ClearInterrupt
 *      Clear the hot plug interrupt.
 *      Clear the hot plug interrupt.
 */
 */
void sii164ClearInterrupt()
void sii164ClearInterrupt(void)
{
{
    unsigned char detectReg;
    unsigned char detectReg;


Loading