提交 f78c589d 编写于 作者: K Karol Kozimor 提交者: Len Brown

ACPI: asus_acpi: support A4G

This patch adds support for Asus A4G.
Originally by Giuseppe Rota.
Signed-off-by: NKarol Kozimor <sziwan@hell.org.pl>
Signed-off-by: NLen Brown <len.brown@intel.com>
上级 c067a789
...@@ -116,6 +116,7 @@ struct asus_hotk { ...@@ -116,6 +116,7 @@ struct asus_hotk {
enum { enum {
A1x = 0, //A1340D, A1300F A1x = 0, //A1340D, A1300F
A2x, //A2500H A2x, //A2500H
A4G, //A4700G
D1x, //D1 D1x, //D1
L2D, //L2000D L2D, //L2000D
L3C, //L3800C L3C, //L3800C
...@@ -175,6 +176,16 @@ static struct model_data model_conf[END_MODEL] = { ...@@ -175,6 +176,16 @@ static struct model_data model_conf[END_MODEL] = {
.display_set = "SDSP", .display_set = "SDSP",
.display_get = "\\INFB"}, .display_get = "\\INFB"},
{
.name = "A4G",
.mt_mled = "MLED",
/* WLED present, but not controlled by ACPI */
.mt_lcd_switch = xxN_PREFIX "_Q10",
.brightness_set = "SPLV",
.brightness_get = "GPLV",
.display_set = "SDSP",
.display_get = "\\ADVG"},
{ {
.name = "D1x", .name = "D1x",
.mt_mled = "MLED", .mt_mled = "MLED",
...@@ -1109,6 +1120,8 @@ static int asus_hotk_get_info(void) ...@@ -1109,6 +1120,8 @@ static int asus_hotk_get_info(void)
hotk->model = S2x; hotk->model = S2x;
else if (strncmp(model->string.pointer, "L5", 2) == 0) else if (strncmp(model->string.pointer, "L5", 2) == 0)
hotk->model = L5x; hotk->model = L5x;
else if (strncmp(model->string.pointer, "A4G", 3) == 0)
hotk->model = A4G;
else if (strncmp(model->string.pointer, "W1N", 3) == 0) else if (strncmp(model->string.pointer, "W1N", 3) == 0)
hotk->model = W1N; hotk->model = W1N;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册