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

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
......@@ -11,7 +11,7 @@ typedef struct _pllcalparam{
pllcalparam;
logical_chip_type_t getChipType()
logical_chip_type_t getChipType(void)
{
unsigned short physicalID;
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;
#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 data;
......
......@@ -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
not zeroed, then set the failure flag. If it is zeroe, it might mean
......
......@@ -62,7 +62,7 @@ int dviInit(
* Output:
* Vendor ID
*/
unsigned short dviGetVendorID()
unsigned short dviGetVendorID(void)
{
dvi_ctrl_device_t *pCurrentDviCtrl;
......@@ -82,7 +82,7 @@ unsigned short dviGetVendorID()
* Output:
* Device ID
*/
unsigned short dviGetDeviceID()
unsigned short dviGetDeviceID(void)
{
dvi_ctrl_device_t *pCurrentDviCtrl;
......
......@@ -15,7 +15,7 @@ void ddk750_setDPMS(DPMS_t state)
}
}
unsigned int getPowerMode()
unsigned int getPowerMode(void)
{
if(getChipType() == SM750LE)
return 0;
......
......@@ -34,7 +34,7 @@ static char *gDviCtrlChipName = "Silicon Image SiI 164";
* Output:
* Vendor ID
*/
unsigned short sii164GetVendorID()
unsigned short sii164GetVendorID(void)
{
unsigned short vendorID;
......@@ -51,7 +51,7 @@ unsigned short sii164GetVendorID()
* Output:
* Device ID
*/
unsigned short sii164GetDeviceID()
unsigned short sii164GetDeviceID(void)
{
unsigned short deviceID;
......@@ -264,7 +264,7 @@ long sii164InitChip(
* sii164ResetChip
* This function resets the DVI Controller Chip.
*/
void sii164ResetChip()
void sii164ResetChip(void)
{
/* Power down */
sii164SetPower(0);
......@@ -277,7 +277,7 @@ void sii164ResetChip()
* This function returns a char string name of the current DVI Controller chip.
* It's convenient for application need to display the chip name.
*/
char *sii164GetChipString()
char *sii164GetChipString(void)
{
return gDviCtrlChipName;
}
......@@ -375,7 +375,7 @@ void sii164EnableHotPlugDetection(
* 0 - Not Connected
* 1 - Connected
*/
unsigned char sii164IsConnected()
unsigned char sii164IsConnected(void)
{
unsigned char hotPlugValue;
......@@ -394,7 +394,7 @@ unsigned char sii164IsConnected()
* 0 - No interrupt
* 1 - Interrupt occurs
*/
unsigned char sii164CheckInterrupt()
unsigned char sii164CheckInterrupt(void)
{
unsigned char detectReg;
......@@ -409,7 +409,7 @@ unsigned char sii164CheckInterrupt()
* sii164ClearInterrupt
* Clear the hot plug interrupt.
*/
void sii164ClearInterrupt()
void sii164ClearInterrupt(void)
{
unsigned char detectReg;
......
......@@ -581,7 +581,7 @@ void hw_sm750_initAccel(struct lynx_share * share)
share->accel.de_init(&share->accel);
}
int hw_sm750le_deWait()
int hw_sm750le_deWait(void)
{
int i=0x10000000;
while(i--){
......@@ -598,7 +598,7 @@ int hw_sm750le_deWait()
}
int hw_sm750_deWait()
int hw_sm750_deWait(void)
{
int i=0x10000000;
while(i--){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment