Skip to contentSkip to conversation

fujitsu-laptop.c: make 2 functions static

PATCH Applied Adrian Bunk 3 participants 3 messages Oct 24, 2007 – Oct 25, 2007 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fujitsu-laptop.c: make 2 functions static

acpi_fujitsu_{add,remove}() can become static.

---

 drivers/misc/fujitsu-laptop.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

175c8b648a54b625037916a8f6e3851574141532

drivers/misc/fujitsu-laptop.c +2 -2
index d366a6c..d686ba7 100644
@@ -198,7 +198,7 @@ static struct platform_driver fujitsupf_driver = {
 
 /* ACPI device */
 
-int acpi_fujitsu_add(struct acpi_device *device)
+static int acpi_fujitsu_add(struct acpi_device *device)
 {
 	int result = 0;
 	int state = 0;
@@ -229,7 +229,7 @@ int acpi_fujitsu_add(struct acpi_device *device)
 	return result;
 }
 
-int acpi_fujitsu_remove(struct acpi_device *device, int type)
+static int acpi_fujitsu_remove(struct acpi_device *device, int type)
 {
 	ACPI_FUNCTION_TRACE("acpi_fujitsu_remove");
 
#1 lore raw
Quoted 3 lines

acpi_fujitsu_{add,remove}() can become static.

Looks fine. Ack.

jonathan

---
 drivers/misc/fujitsu-laptop.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

175c8b648a54b625037916a8f6e3851574141532

drivers/misc/fujitsu-laptop.c +2 -2
index d366a6c..d686ba7 100644
@@ -198,7 +198,7 @@ static struct platform_driver fujitsupf_driver = {
 
 /* ACPI device */
 
-int acpi_fujitsu_add(struct acpi_device *device)
+static int acpi_fujitsu_add(struct acpi_device *device)
 {
 	int result = 0;
 	int state = 0;
@@ -229,7 +229,7 @@ int acpi_fujitsu_add(struct acpi_device *device)
 	return result;
 }
 
-int acpi_fujitsu_remove(struct acpi_device *device, int type)
+static int acpi_fujitsu_remove(struct acpi_device *device, int type)
 {
 	ACPI_FUNCTION_TRACE("acpi_fujitsu_remove");
 
Applied
#2 lore raw

Applied.

thanks,
-Len

Quoted 44 lines · Jonathan Woithe
Quoted 3 lines

acpi_fujitsu_{add,remove}() can become static.

Looks fine. Ack.

jonathan

---
 drivers/misc/fujitsu-laptop.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

175c8b648a54b625037916a8f6e3851574141532

drivers/misc/fujitsu-laptop.c +2 -3
index d366a6c..d686ba7 100644
@@ -198,7 +198,7 @@ static struct platform_driver fujitsupf_driver = {
 
 /* ACPI device */
 
-int acpi_fujitsu_add(struct acpi_device *device)
+static int acpi_fujitsu_add(struct acpi_device *device)
 {
 	int result = 0;
 	int state = 0;
@@ -229,7 +229,7 @@ int acpi_fujitsu_add(struct acpi_device *device)
 	return result;
 }
 
-int acpi_fujitsu_remove(struct acpi_device *device, int type)
+static int acpi_fujitsu_remove(struct acpi_device *device, int type)
 {
 	ACPI_FUNCTION_TRACE("acpi_fujitsu_remove");
 
 
-

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/