[PATCH] Leds: made enum led_brightness into typedef

2021-03-03 Thread Antoni Przybylik
In TODO it was written: * Get rid of enum led_brightness It is really an integer, as maximum is configurable. Get rid of it, or make it into typedef or something. So I made it into typedef. Signed-off-by: Antoni Przybylik --- drivers/leds/TODO | 5 drivers/leds/blink

[PATCH] Leds: made enum led_brightness into typedef

2021-03-02 Thread Antoni Przybylik
In TODO it was written: * Get rid of enum led_brightness It is really an integer, as maximum is configurable. Get rid of it, or make it into typedef or something. So I made it into typedef. Signed-off-by: Antoni Przybylik --- drivers/leds/TODO | 5 drivers/leds/blink

[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 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] 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