Skip to content

Commit

Permalink
ACPI: ec.c, pci_link.c, video_detec.c: static
Browse files Browse the repository at this point in the history
Sparse asked whether these could be static.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Roel Kluin authored and Len Brown committed Dec 31, 2008
1 parent 4a6908a commit 8a383ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/ec.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ static int acpi_ec_transaction(struct acpi_ec *ec, struct transaction *t,
* Note: samsung nv5000 doesn't work with ec burst mode.
* http://bugzilla.kernel.org/show_bug.cgi?id=4980
*/
int acpi_ec_burst_enable(struct acpi_ec *ec)
static int acpi_ec_burst_enable(struct acpi_ec *ec)
{
u8 d;
struct transaction t = {.command = ACPI_EC_BURST_ENABLE,
Expand All @@ -380,7 +380,7 @@ int acpi_ec_burst_enable(struct acpi_ec *ec)
return acpi_ec_transaction(ec, &t, 0);
}

int acpi_ec_burst_disable(struct acpi_ec *ec)
static int acpi_ec_burst_disable(struct acpi_ec *ec)
{
struct transaction t = {.command = ACPI_EC_BURST_DISABLE,
.wdata = NULL, .rdata = NULL,
Expand Down
2 changes: 1 addition & 1 deletion drivers/acpi/pci_link.c
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ static int __init acpi_irq_nobalance_set(char *str)

__setup("acpi_irq_nobalance", acpi_irq_nobalance_set);

int __init acpi_irq_balance_set(char *str)
static int __init acpi_irq_balance_set(char *str)
{
acpi_irq_balance = 1;
return 1;
Expand Down
4 changes: 2 additions & 2 deletions drivers/acpi/video_detect.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ EXPORT_SYMBOL(acpi_video_display_switch_support);
* To force that backlight or display output switching is processed by vendor
* specific acpi drivers or video.ko driver.
*/
int __init acpi_backlight(char *str)
static int __init acpi_backlight(char *str)
{
if (str == NULL || *str == '\0')
return 1;
Expand All @@ -250,7 +250,7 @@ int __init acpi_backlight(char *str)
}
__setup("acpi_backlight=", acpi_backlight);

int __init acpi_display_output(char *str)
static int __init acpi_display_output(char *str)
{
if (str == NULL || *str == '\0')
return 1;
Expand Down

0 comments on commit 8a383ef

Please sign in to comment.