[REFACTOR] rename /un/register_usprobe_my()
authorVyacheslav Cherkashin <v.cherkashin@samsung.com>
Mon, 6 May 2013 11:00:55 +0000 (15:00 +0400)
committerVyacheslav Cherkashin <v.cherkashin@samsung.com>
Mon, 6 May 2013 11:00:55 +0000 (15:00 +0400)
/un/register_usprobe_my() --> sspt_/un/register_usprobe()

driver/sspt/sspt.h
driver/us_proc_inst.c

index 183d8f9..c806219 100644 (file)
@@ -94,12 +94,12 @@ enum US_FLAGS {
        US_DISARM
 };
 
-static inline int register_usprobe_my(struct task_struct *task, struct us_ip *ip)
+static inline int sspt_register_usprobe(struct task_struct *task, struct us_ip *ip)
 {
        return register_usprobe(task, ip);
 }
 
-static inline int unregister_usprobe_my(struct task_struct *task, struct us_ip *ip, enum US_FLAGS flag)
+static inline int sspt_unregister_usprobe(struct task_struct *task, struct us_ip *ip, enum US_FLAGS flag)
 {
        int err = 0;
 
index ef6ef31..48d7268 100644 (file)
@@ -212,7 +212,7 @@ int install_otg_ip(unsigned long addr,
                                        sspt_set_ip_addr(ip, page, file);
 
                                        // TODO: error
-                                       ret = register_usprobe_my(task, ip);
+                                       ret = sspt_register_usprobe(task, ip);
                                        if (ret == 0) {
                                                sspt_page_installed(page);
                                        } else {
@@ -393,7 +393,7 @@ static int register_us_page_probe(struct sspt_page *page,
        sspt_set_all_ip_addr(page, file);
 
        list_for_each_entry_safe(ip, n, &page->ip_list, list) {
-               err = register_usprobe_my(task, ip);
+               err = sspt_register_usprobe(task, ip);
                if (err == -ENOEXEC) {
                        list_del(&ip->list);
                        free_ip(ip);
@@ -422,7 +422,7 @@ int unregister_us_page_probe(struct task_struct *task,
        }
 
        list_for_each_entry(ip, &page->ip_list, list) {
-               err = unregister_usprobe_my(task, ip, flag);
+               err = sspt_unregister_usprobe(task, ip, flag);
                if (err != 0) {
                        //TODO: ERROR
                        break;