Replace references to get_ds() in wifi drivers

See 736706bee3298208343a76096370e4f6a5c55915 get rid of legacy 'get_ds()' function
This commit is contained in:
Ryan Sundberg 2019-04-05 15:22:50 +00:00
parent d92109b7f2
commit 5b01e3b4d9
3 changed files with 9 additions and 9 deletions

View file

@ -355468,7 +355468,7 @@ index 0000000..a9748ed
+ ret = PTR_ERR(fp);
+ }
+ else {
+ oldfs = get_fs(); set_fs(get_ds());
+ oldfs = get_fs(); set_fs(KERNEL_DS);
+
+ if(1!=readFile(fp, &buf, 1))
+ ret = PTR_ERR(fp);
@ -355496,7 +355496,7 @@ index 0000000..a9748ed
+ if( 0 == (ret=openFile(&fp,path, O_RDONLY, 0)) ){
+ DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp);
+
+ oldfs = get_fs(); set_fs(get_ds());
+ oldfs = get_fs(); set_fs(KERNEL_DS);
+ ret=readFile(fp, buf, sz);
+ set_fs(oldfs);
+ closeFile(fp);
@ -355530,7 +355530,7 @@ index 0000000..a9748ed
+ if( 0 == (ret=openFile(&fp, path, O_CREAT|O_WRONLY, 0666)) ) {
+ DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp);
+
+ oldfs = get_fs(); set_fs(get_ds());
+ oldfs = get_fs(); set_fs(KERNEL_DS);
+ ret=writeFile(fp, buf, sz);
+ set_fs(oldfs);
+ closeFile(fp);

View file

@ -347539,7 +347539,7 @@ index 00000000..585dab16
+ ret = PTR_ERR(fp);
+ }
+ else {
+ oldfs = get_fs(); set_fs(get_ds());
+ oldfs = get_fs(); set_fs(KERNEL_DS);
+
+ if(1!=readFile(fp, &buf, 1))
+ ret = PTR_ERR(fp);
@ -347567,7 +347567,7 @@ index 00000000..585dab16
+ if( 0 == (ret=openFile(&fp,path, O_RDONLY, 0)) ){
+ DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp);
+
+ oldfs = get_fs(); set_fs(get_ds());
+ oldfs = get_fs(); set_fs(KERNEL_DS);
+ ret=readFile(fp, buf, sz);
+ set_fs(oldfs);
+ closeFile(fp);
@ -347601,7 +347601,7 @@ index 00000000..585dab16
+ if( 0 == (ret=openFile(&fp, path, O_CREAT|O_WRONLY, 0666)) ) {
+ DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp);
+
+ oldfs = get_fs(); set_fs(get_ds());
+ oldfs = get_fs(); set_fs(KERNEL_DS);
+ ret=writeFile(fp, buf, sz);
+ set_fs(oldfs);
+ closeFile(fp);

View file

@ -397138,7 +397138,7 @@ index 0000000..7079096
+ ret = PTR_ERR(fp);
+ }
+ else {
+ oldfs = get_fs(); set_fs(get_ds());
+ oldfs = get_fs(); set_fs(KERNEL_DS);
+
+ if(1!=readFile(fp, &buf, 1))
+ ret = PTR_ERR(fp);
@ -397166,7 +397166,7 @@ index 0000000..7079096
+ if( 0 == (ret=openFile(&fp,path, O_RDONLY, 0)) ){
+ DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp);
+
+ oldfs = get_fs(); set_fs(get_ds());
+ oldfs = get_fs(); set_fs(KERNEL_DS);
+ ret=readFile(fp, buf, sz);
+ set_fs(oldfs);
+ closeFile(fp);
@ -397200,7 +397200,7 @@ index 0000000..7079096
+ if( 0 == (ret=openFile(&fp, path, O_CREAT|O_WRONLY, 0666)) ) {
+ DBG_871X("%s openFile path:%s fp=%p\n",__FUNCTION__, path ,fp);
+
+ oldfs = get_fs(); set_fs(get_ds());
+ oldfs = get_fs(); set_fs(KERNEL_DS);
+ ret=writeFile(fp, buf, sz);
+ set_fs(oldfs);
+ closeFile(fp);