提交 299ed078 编写于 作者: D Daniel Mack 提交者: Eric Miao

[ARM] pxa/raumfeld: fix button name

"on/off button" was recently renamed to remove the slash character.
Follow that change in the pin polarity detection as well.

While at it, fix another cosmetic coding style flaw as well.
Signed-off-by: NDaniel Mack <daniel@caiaq.de>
Signed-off-by: NEric Miao <eric.y.miao@gmail.com>
上级 12145cae
...@@ -983,7 +983,7 @@ static void __init raumfeld_common_init(void) ...@@ -983,7 +983,7 @@ static void __init raumfeld_common_init(void)
int i; int i;
for (i = 0; i < ARRAY_SIZE(gpio_keys_button); i++) for (i = 0; i < ARRAY_SIZE(gpio_keys_button); i++)
if (!strcmp(gpio_keys_button[i].desc, "on/off button")) if (!strcmp(gpio_keys_button[i].desc, "on_off button"))
gpio_keys_button[i].active_low = 1; gpio_keys_button[i].active_low = 1;
} }
...@@ -1009,8 +1009,7 @@ static void __init raumfeld_common_init(void) ...@@ -1009,8 +1009,7 @@ static void __init raumfeld_common_init(void)
gpio_direction_output(GPIO_W2W_PDN, 0); gpio_direction_output(GPIO_W2W_PDN, 0);
/* this can be used to switch off the device */ /* this can be used to switch off the device */
ret = gpio_request(GPIO_SHUTDOWN_SUPPLY, ret = gpio_request(GPIO_SHUTDOWN_SUPPLY, "supply shutdown");
"supply shutdown");
if (ret < 0) if (ret < 0)
pr_warning("Unable to request GPIO_SHUTDOWN_SUPPLY\n"); pr_warning("Unable to request GPIO_SHUTDOWN_SUPPLY\n");
else else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册