[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210106131932.774-1-zhengyongjun3@huawei.com>
Date: Wed, 6 Jan 2021 21:19:32 +0800
From: Zheng Yongjun <zhengyongjun3@...wei.com>
To: <andy@...nel.org>, <sathyanarayanan.kuppuswamy@...ux.intel.com>,
<linus.walleij@...aro.org>, <bgolaszewski@...libre.com>,
<linux-gpio@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: Zheng Yongjun <zhengyongjun3@...wei.com>
Subject: [PATCH -next] gpio: wcove: use resource_size
Use resource_size rather than a verbose computation on
the end and start fields.
Signed-off-by: Zheng Yongjun <zhengyongjun3@...wei.com>
---
drivers/gpio/gpio-wcove.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-wcove.c b/drivers/gpio/gpio-wcove.c
index b5fbba5a783a..97c5f1d01b62 100644
--- a/drivers/gpio/gpio-wcove.c
+++ b/drivers/gpio/gpio-wcove.c
@@ -434,7 +434,7 @@ static int wcove_gpio_probe(struct platform_device *pdev)
wg->chip.get_direction = wcove_gpio_get_direction;
wg->chip.get = wcove_gpio_get;
wg->chip.set = wcove_gpio_set;
- wg->chip.set_config = wcove_gpio_set_config,
+ wg->chip.set_config = wcove_gpio_set_config;
wg->chip.base = -1;
wg->chip.ngpio = WCOVE_VGPIO_NUM;
wg->chip.can_sleep = true;
--
2.22.0
Powered by blists - more mailing lists