[PATCH v2 1/2] staging: gdm724x: gdm_tty: replaced macro with a function

2020-09-02 Thread Antoni Przybylik
This approach is more elegant and prevents some problems related to macros such as operator precedence in expanded expression. Signed-off-by: Antoni Przybylik --- drivers/staging/gdm724x/gdm_tty.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH v2 2/2] staging: gdm724x: gdm_tty: replaced macro with a function

2020-09-02 Thread Antoni Przybylik
Changed return type to bool and removed inline specifier. Also added static specifier. Signed-off-by: Antoni Przybylik --- drivers/staging/gdm724x/gdm_tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x

[PATCH] staging: gdm724x: gdm_tty: replaced macro with a function v2

2020-09-02 Thread Antoni Przybylik
This approach is more elegant and prevents some problems related to macros such as operator precedence in expanded expression. --- Changed return type to bool and removed inline sepcifier. Signed-off-by: Antoni Przybylik

[PATCH] staging: gdm724x: gdm_tty: replaced macro with a function

2020-09-02 Thread Antoni Przybylik
This approach is more elegant and prevents some problems related to macros such as operator precedence in expanded expression. --- Changed return type to bool and removed inline sepcifier. Signed-off-by: Antoni Przybylik

[PATCH] staging: gdm724x: gdm_tty: replaced macro with a function

2020-09-01 Thread Antoni Przybylik
This approach is more elegant and prevents some problems related to macros such as operator precedence in expanded expression. Signed-off-by: Antoni Przybylik --- drivers/staging/gdm724x/gdm_tty.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH] staging: gdm724x: gdm_tty: replaced macro with a function

2020-09-01 Thread Antoni Przybylik
This approach is more elegant and prevents some problems related to macros such as operator precedence in expanded expression. Signed-off-by: Antoni Przybylik --- drivers/staging/gdm724x/gdm_tty.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH] staging: gdm724x: gdm_tty: replaced macro with an inline function

2020-09-01 Thread Antoni Przybylik
This approach is more elegant and prevents some problems related to macros such as operator precedence in expanded expression. Signed-off-by: Antoni Przybylik --- drivers/staging/gdm724x/gdm_tty.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/drivers