mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
Move sysfs attribute file managment from .h to .c
It's specific to our compilation unit, nothing to export
This commit is contained in:
parent
4d57e59887
commit
1ce4d04425
|
@ -200,6 +200,18 @@ static ssize_t set_mode_fs(struct device *child, struct device_attribute *attr,
|
|||
// Sysfs Interface for if the keyboard has extra region
|
||||
static ssize_t show_hasextra_fs(struct device *child,
|
||||
struct device_attribute *attr, char *buffer);
|
||||
|
||||
// Sysfs device Attributes
|
||||
static DEVICE_ATTR(state, 0644, show_state_fs, set_state_fs);
|
||||
static DEVICE_ATTR(color_left, 0644, show_color_left_fs, set_color_left_fs);
|
||||
static DEVICE_ATTR(color_center, 0644, show_color_center_fs,
|
||||
set_color_center_fs);
|
||||
static DEVICE_ATTR(color_right, 0644, show_color_right_fs, set_color_right_fs);
|
||||
static DEVICE_ATTR(color_extra, 0644, show_color_extra_fs, set_color_extra_fs);
|
||||
static DEVICE_ATTR(brightness, 0644, show_brightness_fs, set_brightness_fs);
|
||||
static DEVICE_ATTR(mode, 0644, show_mode_fs, set_mode_fs);
|
||||
static DEVICE_ATTR(extra, 0444, show_hasextra_fs, NULL);
|
||||
|
||||
// Sysfs Interface for the keyboard state (ON / OFF)
|
||||
static ssize_t
|
||||
show_state_fs(struct device *child, struct device_attribute *attr, char *buffer)
|
||||
|
|
|
@ -80,15 +80,4 @@
|
|||
|
||||
|
||||
|
||||
// Sysfs device Attributes
|
||||
static DEVICE_ATTR(state, 0644, show_state_fs, set_state_fs);
|
||||
static DEVICE_ATTR(color_left, 0644, show_color_left_fs, set_color_left_fs);
|
||||
static DEVICE_ATTR(color_center, 0644, show_color_center_fs,
|
||||
set_color_center_fs);
|
||||
static DEVICE_ATTR(color_right, 0644, show_color_right_fs, set_color_right_fs);
|
||||
static DEVICE_ATTR(color_extra, 0644, show_color_extra_fs, set_color_extra_fs);
|
||||
static DEVICE_ATTR(brightness, 0644, show_brightness_fs, set_brightness_fs);
|
||||
static DEVICE_ATTR(mode, 0644, show_mode_fs, set_mode_fs);
|
||||
static DEVICE_ATTR(extra, 0444, show_hasextra_fs, NULL);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue