Skip to content

Commit

Permalink
add ayaneo slide
Browse files Browse the repository at this point in the history
  • Loading branch information
honjow authored and Derek J. Clark committed Feb 21, 2024
1 parent 0a2cd16 commit 2a2a4c1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ayaneo-platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ enum ayaneo_model {
geek_1s,
ayaneo_2,
ayaneo_2s,
slide,
};

static enum ayaneo_model model;
Expand Down Expand Up @@ -200,6 +201,13 @@ static const struct dmi_system_id dmi_table[] = {
},
.driver_data = (void *)ayaneo_2s,
},
{
.matches = {
DMI_EXACT_MATCH(DMI_BOARD_VENDOR, "AYANEO"),
DMI_EXACT_MATCH(DMI_BOARD_NAME, "AS01"),
},
.driver_data = (void *)slide,
},
{},
};

Expand Down Expand Up @@ -417,6 +425,7 @@ static void ayaneo_led_mc_take_control(void)
ayaneo_led_mc_off();
break;
case air_plus:
case slide:
ayaneo_led_mc_state(AYANEO_LED_MC_OFF);
break;
default:
Expand Down Expand Up @@ -459,6 +468,7 @@ static void ayaneo_led_mc_brightness_set(struct led_classdev *led_cdev,
ayaneo_led_mc_intensity(color);
break;
case air_plus:
case slide:
ayaneo_led_mc_color(color);
ayaneo_led_mc_enable();
break;
Expand Down

0 comments on commit 2a2a4c1

Please sign in to comment.