[PATCH] Staging: lustre: file.c: fix coding style

2015-03-18 Thread py
Several warnings and errors of coding style rules corrected.
Compile tested.

Signed-off-by: Pierre-Yves Péneau 
---
 drivers/staging/lustre/lustre/llite/file.c |7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/lustre/lustre/llite/file.c 
b/drivers/staging/lustre/lustre/llite/file.c
index 6dab3ba..5c13b9a 100644
--- a/drivers/staging/lustre/lustre/llite/file.c
+++ b/drivers/staging/lustre/lustre/llite/file.c
@@ -270,7 +270,7 @@ static int ll_md_close(struct obd_export *md_exp, struct 
inode *inode,
int lockmode;
__u64 flags = LDLM_FL_BLOCK_GRANTED | LDLM_FL_TEST_LOCK;
struct lustre_handle lockh;
-   ldlm_policy_data_t policy = {.l_inodebits = {MDS_INODELOCK_OPEN}};
+   ldlm_policy_data_t policy = { .l_inodebits = {MDS_INODELOCK_OPEN} };
int rc = 0;
 
/* clear group lock, if present */
@@ -640,7 +640,8 @@ restart:
   result in a deadlock */
mutex_unlock(&lli->lli_och_mutex);
it->it_create_mode |= M_CHECK_STALE;
-   rc = ll_intent_file_open(file->f_path.dentry, NULL, 0, 
it);
+   rc = ll_intent_file_open(file->f_path.dentry,
+   NULL, 0, it);
it->it_create_mode &= ~M_CHECK_STALE;
if (rc)
goto out_openerr;
@@ -2682,7 +2683,7 @@ ll_file_flock(struct file *file, int cmd, struct 
file_lock *file_lock)
};
struct md_op_data *op_data;
struct lustre_handle lockh = {0};
-   ldlm_policy_data_t flock = {{0}};
+   ldlm_policy_data_t flock = { {0} };
__u64 flags = 0;
int rc;
int rc2 = 0;
-- 
1.7.9.5

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Coding style fix - quoted string split across lines for fbtft_device.c

2017-07-13 Thread PY
Hello,

I found some coding style warnings for fbtft_device.c
I fixed it in the patch.

Best regards,
Yurii Pavlenko
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


[PATCH] Coding style fix - quoted string split across lines

2017-07-13 Thread PY
From: Pavlenko Yurii 

---
 drivers/staging/fbtft/fbtft_device.c | 16 
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/fbtft/fbtft_device.c 
b/drivers/staging/fbtft/fbtft_device.c
index 0d97473..c2d5dbb 100644
--- a/drivers/staging/fbtft/fbtft_device.c
+++ b/drivers/staging/fbtft/fbtft_device.c
@@ -898,14 +898,14 @@ static void adafruit18_green_tab_set_addr_win(struct 
fbtft_par *par,
{ "dc", 25 },
{},
},
-   .gamma ="0 2 2 2 2 2 2 2 "
-   "2 2 2 2 2 2 2 2 "
-   "2 2 2 2 2 2 2 2 "
-   "2 2 2 2 2 2 2 3 "
-   "3 3 3 3 3 3 3 3 "
-   "3 3 3 3 3 3 3 3 "
-   "3 3 3 4 4 4 4 4 "
-   "4 4 4 4 4 4 4"
+   .gamma = "0 2 2 2 2 2 2 2 " /
+"2 2 2 2 2 2 2 2 " /
+"2 2 2 2 2 2 2 2 " /
+"2 2 2 2 2 2 2 3 " /
+"3 3 3 3 3 3 3 3 " /
+"3 3 3 3 3 3 3 3 " /
+"3 3 3 4 4 4 4 4 " /
+"4 4 4 4 4 4 4"
}
}
}, {
-- 
1.9.1

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel