Fix coding style issues

This commit is contained in:
Werner Sembach 2022-09-21 18:14:54 +02:00
parent 640369f05e
commit 6aacbedc25

View file

@ -22,6 +22,7 @@
#include <linux/types.h> #include <linux/types.h>
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/leds.h>
enum clevo_kb_backlight_types { enum clevo_kb_backlight_types {
CLEVO_KB_BACKLIGHT_TYPE_NONE = 0x00, CLEVO_KB_BACKLIGHT_TYPE_NONE = 0x00,
@ -34,7 +35,7 @@ enum clevo_kb_backlight_types {
int clevo_leds_init(struct platform_device *dev); int clevo_leds_init(struct platform_device *dev);
int clevo_leds_remove(struct platform_device *dev); int clevo_leds_remove(struct platform_device *dev);
enum clevo_kb_backlight_types clevo_leds_get_backlight_type(void); enum clevo_kb_backlight_types clevo_leds_get_backlight_type(void);
void clevo_leds_set_brightness_extern(u32 brightness); void clevo_leds_set_brightness_extern(enum led_brightness brightness);
void clevo_leds_set_color_extern(u32 color); void clevo_leds_set_color_extern(u32 color);
// TODO The following should go into a seperate .c file, but for this to work more reworking is required in the tuxedo_keyboard structure. // TODO The following should go into a seperate .c file, but for this to work more reworking is required in the tuxedo_keyboard structure.
@ -43,7 +44,6 @@ void clevo_leds_set_color_extern(u32 color);
#include "clevo_interfaces.h" #include "clevo_interfaces.h"
#include <linux/leds.h>
#include <linux/led-class-multicolor.h> #include <linux/led-class-multicolor.h>
#define CLEVO_KBD_BRIGHTNESS_MIN 0x00 #define CLEVO_KBD_BRIGHTNESS_MIN 0x00
@ -346,7 +346,7 @@ enum clevo_kb_backlight_types clevo_leds_get_backlight_type() {
} }
EXPORT_SYMBOL(clevo_leds_get_backlight_type); EXPORT_SYMBOL(clevo_leds_get_backlight_type);
void clevo_leds_set_brightness_extern(u32 brightness) { void clevo_leds_set_brightness_extern(enum led_brightness brightness) {
if (clevo_kb_backlight_type == CLEVO_KB_BACKLIGHT_TYPE_FIXED_COLOR) { if (clevo_kb_backlight_type == CLEVO_KB_BACKLIGHT_TYPE_FIXED_COLOR) {
clevo_led_cdev.brightness_set(&clevo_led_cdev, brightness); clevo_led_cdev.brightness_set(&clevo_led_cdev, brightness);
} }