Commit fea2021c authored by Axel Lin's avatar Axel Lin Committed by Dmitry Torokhov

Input: lifebook - make dmi callback functions return 1

We only care about if there is a successful match from the table (or
no match at all), so let's make dmi_check_system return immediately
instead of iterating thorough the whole table.
Signed-off-by: default avatarAxel Lin <axel.lin@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent c388b2c6
...@@ -33,7 +33,7 @@ static const char *desired_serio_phys; ...@@ -33,7 +33,7 @@ static const char *desired_serio_phys;
static int lifebook_limit_serio3(const struct dmi_system_id *d) static int lifebook_limit_serio3(const struct dmi_system_id *d)
{ {
desired_serio_phys = "isa0060/serio3"; desired_serio_phys = "isa0060/serio3";
return 0; return 1;
} }
static bool lifebook_use_6byte_proto; static bool lifebook_use_6byte_proto;
...@@ -41,7 +41,7 @@ static bool lifebook_use_6byte_proto; ...@@ -41,7 +41,7 @@ static bool lifebook_use_6byte_proto;
static int lifebook_set_6byte_proto(const struct dmi_system_id *d) static int lifebook_set_6byte_proto(const struct dmi_system_id *d)
{ {
lifebook_use_6byte_proto = true; lifebook_use_6byte_proto = true;
return 0; return 1;
} }
static const struct dmi_system_id __initconst lifebook_dmi_table[] = { static const struct dmi_system_id __initconst lifebook_dmi_table[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment