aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2013-12-13 02:26:34 -0500
committerMatthew Garrett <matthew.garrett@nebula.com>2014-01-21 08:44:17 -0500
commit04b73387419942a6ba3e6a10327b72f43b760979 (patch)
tree1f778eea406ef57457d7f1ea7fb3563a96b0155f /drivers/platform
parentba5194f18637a95692b5d146004d1aa8be08c525 (diff)
drivers: platform: Mark functions as static in hp_accel.c
This patch marks the functions lis3lv02d_acpi_init(), lis3lv02d_acpi_read() and lis3lv02d_acpi_write() as static in x86/hp_accel.c because they are not used outside this file. Thus, it also eliminates the following warnings in x86/hp_accel.c: drivers/platform/x86/hp_accel.c:91:5: warning: no previous prototype for ‘lis3lv02d_acpi_init’ [-Wmissing-prototypes] drivers/platform/x86/hp_accel.c:109:5: warning: no previous prototype for ‘lis3lv02d_acpi_read’ [-Wmissing-prototypes] drivers/platform/x86/hp_accel.c:132:5: warning: no previous prototype for ‘lis3lv02d_acpi_write’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/hp_accel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c
index a8e43cf70fac..01b619eca38e 100644
--- a/drivers/platform/x86/hp_accel.c
+++ b/drivers/platform/x86/hp_accel.c
@@ -88,7 +88,7 @@ MODULE_DEVICE_TABLE(acpi, lis3lv02d_device_ids);
88 * 88 *
89 * Returns 0 on success. 89 * Returns 0 on success.
90 */ 90 */
91int lis3lv02d_acpi_init(struct lis3lv02d *lis3) 91static int lis3lv02d_acpi_init(struct lis3lv02d *lis3)
92{ 92{
93 struct acpi_device *dev = lis3->bus_priv; 93 struct acpi_device *dev = lis3->bus_priv;
94 if (acpi_evaluate_object(dev->handle, METHOD_NAME__INI, 94 if (acpi_evaluate_object(dev->handle, METHOD_NAME__INI,
@@ -106,7 +106,7 @@ int lis3lv02d_acpi_init(struct lis3lv02d *lis3)
106 * 106 *
107 * Returns 0 on success. 107 * Returns 0 on success.
108 */ 108 */
109int lis3lv02d_acpi_read(struct lis3lv02d *lis3, int reg, u8 *ret) 109static int lis3lv02d_acpi_read(struct lis3lv02d *lis3, int reg, u8 *ret)
110{ 110{
111 struct acpi_device *dev = lis3->bus_priv; 111 struct acpi_device *dev = lis3->bus_priv;
112 union acpi_object arg0 = { ACPI_TYPE_INTEGER }; 112 union acpi_object arg0 = { ACPI_TYPE_INTEGER };
@@ -129,7 +129,7 @@ int lis3lv02d_acpi_read(struct lis3lv02d *lis3, int reg, u8 *ret)
129 * 129 *
130 * Returns 0 on success. 130 * Returns 0 on success.
131 */ 131 */
132int lis3lv02d_acpi_write(struct lis3lv02d *lis3, int reg, u8 val) 132static int lis3lv02d_acpi_write(struct lis3lv02d *lis3, int reg, u8 val)
133{ 133{
134 struct acpi_device *dev = lis3->bus_priv; 134 struct acpi_device *dev = lis3->bus_priv;
135 unsigned long long ret; /* Not used when writting */ 135 unsigned long long ret; /* Not used when writting */