[PATCH] leds: led-core: Get rid of enum led_brightness

2020-12-11 Thread Abanoub Sameh
This gets rid of enum led_brightness in the main led files, because it is deprecated, and an unsigned int can be used instead. We can get rid of led_brightness completely and patches can also be supplied for the other drivers' files. Signed-off-by: Abanoub Sameh --- drivers/leds/led-class.c

[PATCH] leds: led-core: Get rid of enum led_brightness

2020-12-10 Thread Abanoub Sameh
This gets rid of enum led_brightness in the main led files, because it is deprecated, and an int can be used instead, or maybe even a uint8_t since it only goes up to 255. Next we can also patch the other files to get rid of it completely. Signed-off-by: Abanoub Sameh Reported-by: kernel test

[PATCH] leds: led-core: Get rid of enum led_brightness

2020-12-10 Thread Abanoub Sameh
This gets rid of enum led_brightness in the main led files, because it is deprecated, and an int can be used instead, or maybe even a uint8_t since it only goes up to 255. Next we can also patch the other files to get rid of it completely. Signed-off-by: Abanoub Sameh --- drivers/leds/led

[PATCH 1/2] gpio: gpio-sch.c: changed every 'unsigned' to 'unsigned int'

2020-07-21 Thread Abanoub Sameh
Changed 'unsigned' to 'unsigned int'. This makes the code more uniform, and compliant with the kernel coding style. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-sch.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/gpio-sch.c b

[PATCH 3/4] gpio: gpio-msic.c: fixed coding style issues

2020-07-21 Thread Abanoub Sameh
Added a lined between declarations and other statements according to the kenel coding style. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-msic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio-msic.c b/drivers/gpio/gpio-msic.c index 0bef1a5a9b70..84e00e0ab953

[PATCH 1/4] gpio: gpio-msic.c: changed every 'unsigned' to 'unsigned int'

2020-07-21 Thread Abanoub Sameh
Changed 'unsigned' to 'unsigned int'. This makes the code more uniform, and compliant with the kernel coding style. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-msic.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/gpio-msic.c b

[PATCH 2/2] gpio: gpio-pch.c: fixed coding style issue

2020-07-21 Thread Abanoub Sameh
Added a lined between a declaration and other statements according to the kenel coding style. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-pch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c index 71dde7ceb7af..039822978eaf 100644

[PATCH 4/4] gpio: gpio-msic.c: fixed a coding style error

2020-07-21 Thread Abanoub Sameh
Removed space before comma to fix coding style error. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-msic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-msic.c b/drivers/gpio/gpio-msic.c index 84e00e0ab953..37664e7b3ddd 100644 --- a/drivers/gpio/gpio

[PATCH 2/2] gpio: gpio-sch.c: fixed coding style issue

2020-07-21 Thread Abanoub Sameh
Added a lined between a declaration and other statements according to the kenel coding style. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-sch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-sch.c b/drivers/gpio/gpio-sch.c index d7cade67717b..3a1b1adb08c6 100644

[PATCH 1/2] gpio: gpio-pch.c: changed every 'unsigned' to 'unsigned int'

2020-07-21 Thread Abanoub Sameh
Changed 'unsigned' to 'unsigned int'. This makes the code more uniform, and compliant with the kernel coding style. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-pch.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio

[PATCH 2/4] gpio: gpio-msic.c: fixed style of a block comment

2020-07-21 Thread Abanoub Sameh
Added asterisk to each line of a block and fixed and moved the ending to the next line. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-msic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-msic.c b/drivers/gpio/gpio-msic.c index ea5ff2c84a26

[PATCH 1/3] gpio: gpio-intel-mid.c: changed every 'unsigned' to 'unsigned int'

2020-07-21 Thread Abanoub Sameh
Changed 'unsigned' to 'unsigned int'. This makes the code more uniform, and compliant with the kernel coding style. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-intel-mid.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/gpio-intel

[PATCH 2/3] gpio: gpio-intel-mid.c: fixed alignment of a block comment

2020-07-21 Thread Abanoub Sameh
A small to the coding style of a comment to make it compliant with the coding style. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-intel-mid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-intel-mid.c b/drivers/gpio/gpio-intel-mid.c index

[PATCH 2/2] gpio: gpio-ml-ioh.c: fixed a coding style issue

2020-07-21 Thread Abanoub Sameh
Added a line after a declaration to fix a coding style issue. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-ml-ioh.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c index f1b754b60413..7007621a5b55 100644 --- a/drivers/gpio/gpio

[PATCH 1/2] gpio: gpio-ml-ioh.c: changed every 'unsigned' to 'unsigned int'

2020-07-21 Thread Abanoub Sameh
Changed 'unsigned' to 'unsigned int'. This makes the code more uniform, and compliant with the kernel coding style. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-ml-ioh.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers

[PATCH 3/3] gpio: gpio-intel-mid.c: fixed a coding style issue

2020-07-21 Thread Abanoub Sameh
Added an empty line after a declaration to fix a coding style issue. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-intel-mid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpio/gpio-intel-mid.c b/drivers/gpio/gpio-intel-mid.c index a9cef06b813b..a609964645c1 100644

[PATCH] gpio: gpio-ich.c: changed every 'unsigned' to 'unsigned int'

2020-07-21 Thread Abanoub Sameh
Changed 'unsigned' to 'unsigned int'. This makes the code more uniform, and compliant with the kernel coding style. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-ich.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/gpio/gpio-ich.c b

[PATCH] gpio: gpio-crystalcove.c: changed every 'unsigned' to 'unsigned int'

2020-07-21 Thread Abanoub Sameh
Changed 'unsigned' to 'unsigned int'. This makes the code more uniform, and compliant with the kernel coding style. Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-crystalcove.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-crystalcove.c b

[PATCH] gpio: fixed some coding style issues in gpiolib files

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpiolib-acpi.c | 3 ++- drivers/gpio/gpiolib-devres.c | 16 drivers/gpio/gpiolib-legacy.c | 6 +++--- drivers/gpio/gpiolib-of.c | 3 +-- drivers/gpio/gpiolib.c| 34 +- 5 files changed

[PATCH] gpio: fixed some coding style issues in gpiolib files

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpiolib-acpi.c | 3 ++- drivers/gpio/gpiolib-devres.c | 16 drivers/gpio/gpiolib-legacy.c | 6 +++--- drivers/gpio/gpiolib-of.c | 3 +-- drivers/gpio/gpiolib.c| 34 +- 5 files changed

[PATCH 5/7] gpio: fixed coding style issues in gpio-msic.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-msic.c | 31 +-- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/drivers/gpio/gpio-msic.c b/drivers/gpio/gpio-msic.c index 7e3c96e4ab2c..37664e7b3ddd 100644 --- a/drivers/gpio/gpio-msic.c +++ b/drivers

[PATCH 6/7] gpio: fixed coding style issues in gpio-pch.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-pch.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-pch.c b/drivers/gpio/gpio-pch.c index e96d28bf43b4..039822978eaf 100644 --- a/drivers/gpio/gpio-pch.c +++ b/drivers/gpio/gpio-pch.c @@ -95,7

[PATCH 7/7] gpio: fixed coding style issues in gpio-sch.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-sch.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/gpio/gpio-sch.c b/drivers/gpio/gpio-sch.c index c65f35b68202..3a1b1adb08c6 100644 --- a/drivers/gpio/gpio-sch.c +++ b/drivers/gpio/gpio

[PATCH 1/7] gpio: fixed coding style issues in gpio-crystalcove.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-crystalcove.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-crystalcove.c b/drivers/gpio/gpio-crystalcove.c index 14d1f4c933b6..9391722ec107 100644 --- a/drivers/gpio/gpio-crystalcove.c +++ b

[PATCH 2/7] gpio: fixed coding style issues in gpio-ich.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-ich.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/gpio/gpio-ich.c b/drivers/gpio/gpio-ich.c index 9960bb8b0f5b..de56c013a658 100644 --- a/drivers/gpio/gpio-ich.c +++ b/drivers/gpio

[PATCH 4/7] gpio: fixed coding style issues in gpio-ml-ioh.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-ml-ioh.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-ml-ioh.c b/drivers/gpio/gpio-ml-ioh.c index 92b6e958cfed..7007621a5b55 100644 --- a/drivers/gpio/gpio-ml-ioh.c +++ b/drivers/gpio/gpio-ml

[PATCH 3/7] gpio: fixed coding style issues in gpio-intel-mid.c

2020-07-21 Thread Abanoub Sameh
Signed-off-by: Abanoub Sameh --- drivers/gpio/gpio-intel-mid.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/drivers/gpio/gpio-intel-mid.c b/drivers/gpio/gpio-intel-mid.c index 86a10c808ef6..a609964645c1 100644 --- a/drivers/gpio/gpio-intel-mid.c