Skip to content

Commit 2e484fc

Browse files
ck-telecomkartben
authored andcommitted
rtc: fix gpio_pin_configure_dt error
GPIO_PULLUP is not in other driver gpio int API, so keep the same Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
1 parent e1d7771 commit 2e484fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/rtc/rtc_pcf8563.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct pcf8563_config {
7272

7373
#ifdef PCF8563_INT1_GPIOS_IN_USE
7474
/* This work will run the user callback function */
75-
void callback_work_handler(struct k_work *work);
75+
static void callback_work_handler(struct k_work *work);
7676
K_WORK_DEFINE(callback_work, callback_work_handler);
7777
#endif
7878

@@ -423,7 +423,7 @@ static int pcf8563_alarm_set_callback(const struct device *dev, uint16_t id,
423423
data->dev = dev;
424424

425425
/* The PCF8563 int pin requires a pull up to work */
426-
ret = gpio_pin_configure_dt(&config->int1, GPIO_INPUT | GPIO_PULL_UP);
426+
ret = gpio_pin_configure_dt(&config->int1, GPIO_INPUT);
427427
if (ret < 0) {
428428
LOG_ERR("Error %d: failed to configure %s pin %d",
429429
ret, config->int1.port->name, config->int1.pin);

0 commit comments

Comments
 (0)