phonesdk: change function to static function of gns7560
authorlinjh <linjh@rock-chips.com>
Thu, 1 Dec 2011 10:04:08 +0000 (18:04 +0800)
committerlinjh <linjh@rock-chips.com>
Thu, 1 Dec 2011 10:04:08 +0000 (18:04 +0800)
drivers/misc/gps/rk29_gps.c

index 4931123a8b24ff9c2c0ebb128e137bdc116e1866..9b1f2615cf4b6ba076ce912a70a99808fb866d39 100755 (executable)
@@ -110,7 +110,7 @@ static int rk29_gps_gpio_to_uart(int uart_id)
 \r
 }\r
 \r
-int rk29_gps_suspend(struct platform_device *pdev,  pm_message_t state)\r
+static int rk29_gps_suspend(struct platform_device *pdev,  pm_message_t state)\r
 {\r
        struct rk29_gps_data *pdata = pdev->dev.platform_data;\r
 \r
@@ -130,7 +130,7 @@ int rk29_gps_suspend(struct platform_device *pdev,  pm_message_t state)
        return 0;       \r
 }\r
 \r
-int rk29_gps_resume(struct platform_device *pdev)\r
+static int rk29_gps_resume(struct platform_device *pdev)\r
 {\r
        struct rk29_gps_data *pdata = pdev->dev.platform_data;\r
 \r
@@ -170,14 +170,14 @@ static void rk29_gps_delay_power_downup(struct work_struct *work)
        up(&pdata->power_sem);\r
 }\r
 \r
-int rk29_gps_open(struct inode *inode, struct file *filp)\r
+static int rk29_gps_open(struct inode *inode, struct file *filp)\r
 {\r
     DBG("rk29_gps_open\n");\r
 \r
        return 0;\r
 }\r
 \r
-ssize_t rk29_gps_read(struct file *filp, char __user *ptr, size_t size, loff_t *pos)\r
+static ssize_t rk29_gps_read(struct file *filp, char __user *ptr, size_t size, loff_t *pos)\r
 {\r
        if (ptr == NULL)\r
                printk("%s: user space address is NULL\n", __func__);\r
@@ -192,7 +192,7 @@ ssize_t rk29_gps_read(struct file *filp, char __user *ptr, size_t size, loff_t *
        return sizeof(int);\r
 }\r
 \r
-long rk29_gps_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)\r
+static long rk29_gps_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)\r
 {\r
        long ret = 0;\r
        struct rk29_gps_data *pdata = pgps;\r
@@ -237,7 +237,7 @@ long rk29_gps_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 }\r
 \r
 \r
-int rk29_gps_release(struct inode *inode, struct file *filp)\r
+static int rk29_gps_release(struct inode *inode, struct file *filp)\r
 {\r
     DBG("rk29_gps_release\n");\r
     \r