aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/dock.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/dock.c')
-rw-r--r--drivers/acpi/dock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index b3dec2101e2e..307cef65c247 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -686,7 +686,7 @@ static ssize_t show_docked(struct device *dev,
686 return snprintf(buf, PAGE_SIZE, "%d\n", dock_present(dock_station)); 686 return snprintf(buf, PAGE_SIZE, "%d\n", dock_present(dock_station));
687 687
688} 688}
689DEVICE_ATTR(docked, S_IRUGO, show_docked, NULL); 689static DEVICE_ATTR(docked, S_IRUGO, show_docked, NULL);
690 690
691/* 691/*
692 * show_flags - read method for flags file in sysfs 692 * show_flags - read method for flags file in sysfs
@@ -697,7 +697,7 @@ static ssize_t show_flags(struct device *dev,
697 return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags); 697 return snprintf(buf, PAGE_SIZE, "%d\n", dock_station->flags);
698 698
699} 699}
700DEVICE_ATTR(flags, S_IRUGO, show_flags, NULL); 700static DEVICE_ATTR(flags, S_IRUGO, show_flags, NULL);
701 701
702/* 702/*
703 * write_undock - write method for "undock" file in sysfs 703 * write_undock - write method for "undock" file in sysfs
@@ -713,7 +713,7 @@ static ssize_t write_undock(struct device *dev, struct device_attribute *attr,
713 ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST); 713 ret = handle_eject_request(dock_station, ACPI_NOTIFY_EJECT_REQUEST);
714 return ret ? ret: count; 714 return ret ? ret: count;
715} 715}
716DEVICE_ATTR(undock, S_IWUSR, NULL, write_undock); 716static DEVICE_ATTR(undock, S_IWUSR, NULL, write_undock);
717 717
718/* 718/*
719 * show_dock_uid - read method for "uid" file in sysfs 719 * show_dock_uid - read method for "uid" file in sysfs
@@ -729,7 +729,7 @@ static ssize_t show_dock_uid(struct device *dev,
729 729
730 return snprintf(buf, PAGE_SIZE, "%lx\n", lbuf); 730 return snprintf(buf, PAGE_SIZE, "%lx\n", lbuf);
731} 731}
732DEVICE_ATTR(uid, S_IRUGO, show_dock_uid, NULL); 732static DEVICE_ATTR(uid, S_IRUGO, show_dock_uid, NULL);
733 733
734/** 734/**
735 * dock_add - add a new dock station 735 * dock_add - add a new dock station