Skip to content

Commit

Permalink
drivers: gf3208: Fix goodix fingerprint"
Browse files Browse the repository at this point in the history
Thanks to @imzf
  • Loading branch information
adrian1234a authored and zainarbani committed Nov 7, 2019
1 parent 538f578 commit 25c2437
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/input/fingerprint/gf3208/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int gf_parse_dts(struct gf_dev* gf_dev)
int rc = 0;

#if 1
gf_dev->pwr_gpio = of_get_named_gpio(gf_dev->spi->dev.of_node, "goodix, gpio_ldo", 0);
gf_dev->pwr_gpio = of_get_named_gpio(gf_dev->spi->dev.of_node, "goodix,gpio_ldo", 0);
if (!gpio_is_valid(gf_dev->pwr_gpio)) {
pr_info("gpio ldo is invalid\n");
return -1;
Expand All @@ -44,7 +44,7 @@ int gf_parse_dts(struct gf_dev* gf_dev)
msleep(11);
printk("gf3208 msleep 11ms\n");

gf_dev->reset_gpio = of_get_named_gpio(gf_dev->spi->dev.of_node, "goodix, gpio_reset", 0);
gf_dev->reset_gpio = of_get_named_gpio(gf_dev->spi->dev.of_node, "goodix,gpio_reset", 0);
if (!gpio_is_valid(gf_dev->reset_gpio)) {
pr_info("RESET GPIO is invalid.\n");
return -1;
Expand All @@ -60,7 +60,7 @@ int gf_parse_dts(struct gf_dev* gf_dev)
gpio_free(gf_dev->reset_gpio);
#endif
}
gf_dev->irq_gpio = of_get_named_gpio(gf_dev->spi->dev.of_node, "goodix, gpio_irq", 0);
gf_dev->irq_gpio = of_get_named_gpio(gf_dev->spi->dev.of_node, "goodix,gpio_irq", 0);
if (!gpio_is_valid(gf_dev->irq_gpio)) {
pr_info("IRQ GPIO is invalid.\n");
return -1;
Expand Down

0 comments on commit 25c2437

Please sign in to comment.