drivers/input/touchscreen/hideep.c:670:3: error: implicit declaration of function 'gpiod_set_value_cansleep'
From: kbuild test robot
Date: Mon Nov 27 2017 - 13:20:04 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
commit: 842ff286166e8512450573f6b6eb5e04e626a07f Input: add support for HiDeep touchscreen
date: 2 weeks ago
config: x86_64-randconfig-s0-11280111 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
git checkout 842ff286166e8512450573f6b6eb5e04e626a07f
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/input/touchscreen/hideep.c: In function 'hideep_power_on':
>> drivers/input/touchscreen/hideep.c:670:3: error: implicit declaration of function 'gpiod_set_value_cansleep' [-Werror=implicit-function-declaration]
gpiod_set_value_cansleep(ts->reset_gpio, 0);
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/input/touchscreen/hideep.c: In function 'hideep_power_off':
>> drivers/input/touchscreen/hideep.c:688:3: error: implicit declaration of function 'gpiod_set_value' [-Werror=implicit-function-declaration]
gpiod_set_value(ts->reset_gpio, 1);
^~~~~~~~~~~~~~~
drivers/input/touchscreen/hideep.c: In function 'hideep_probe':
>> drivers/input/touchscreen/hideep.c:1039:19: error: implicit declaration of function 'devm_gpiod_get_optional' [-Werror=implicit-function-declaration]
ts->reset_gpio = devm_gpiod_get_optional(&client->dev,
^~~~~~~~~~~~~~~~~~~~~~~
>> drivers/input/touchscreen/hideep.c:1040:17: error: 'GPIOD_OUT_HIGH' undeclared (first use in this function)
"reset", GPIOD_OUT_HIGH);
^~~~~~~~~~~~~~
drivers/input/touchscreen/hideep.c:1040:17: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
vim +/gpiod_set_value_cansleep +670 drivers/input/touchscreen/hideep.c
649
650 static int hideep_power_on(struct hideep_ts *ts)
651 {
652 int error = 0;
653
654 error = regulator_enable(ts->vcc_vdd);
655 if (error)
656 dev_err(&ts->client->dev,
657 "failed to enable 'vdd' regulator: %d", error);
658
659 usleep_range(999, 1000);
660
661 error = regulator_enable(ts->vcc_vid);
662 if (error)
663 dev_err(&ts->client->dev,
664 "failed to enable 'vcc_vid' regulator: %d",
665 error);
666
667 msleep(30);
668
669 if (ts->reset_gpio) {
> 670 gpiod_set_value_cansleep(ts->reset_gpio, 0);
671 } else {
672 error = regmap_write(ts->reg, HIDEEP_RESET_CMD, 0x01);
673 if (error)
674 dev_err(&ts->client->dev,
675 "failed to send 'reset' command: %d\n", error);
676 }
677
678 msleep(50);
679
680 return error;
681 }
682
683 static void hideep_power_off(void *data)
684 {
685 struct hideep_ts *ts = data;
686
687 if (ts->reset_gpio)
> 688 gpiod_set_value(ts->reset_gpio, 1);
689
690 regulator_disable(ts->vcc_vid);
691 regulator_disable(ts->vcc_vdd);
692 }
693
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip