Skip to content

Commit 783bf02

Browse files
newearth-ssopsiff
authored andcommitted
gpio:phytium: Add driver version messages
This patch add driver version information, which will be used to synchronize and manage driver patches in the future. Mainline: Open-Source Signed-off-by: Cui Fulong <cuifulong2112@phytium.com.cn> Signed-off-by: Li Yuze <liyuze@phytium.com.cn> Signed-off-by: Wang Yinfeng <wangyinfeng@phytium.com.cn>
1 parent 0883cc1 commit 783bf02

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

drivers/gpio/gpio-phytium-core.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#define NGPIO_MAX 32
3434
#define GPIO_PORT_STRIDE (GPIO_EXT_PORTB - GPIO_EXT_PORTA)
3535

36+
#define PHYTIUM_GPIO_DRIVER_VERSION "1.1.1"
37+
3638
struct pin_loc {
3739
unsigned int port;
3840
unsigned int offset;

drivers/gpio/gpio-phytium-pci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,4 @@ module_pci_driver(phytium_gpio_pci_driver);
197197
MODULE_LICENSE("GPL");
198198
MODULE_AUTHOR("Cheng Quan <chengquan@phytium.com.cn>");
199199
MODULE_DESCRIPTION("Phytium GPIO PCI Driver");
200+
MODULE_VERSION(PHYTIUM_GPIO_DRIVER_VERSION);

drivers/gpio/gpio-phytium-platform.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,4 @@ module_platform_driver(phytium_gpio_driver);
214214
MODULE_LICENSE("GPL");
215215
MODULE_AUTHOR("Chen Baozi <chenbaozi@phytium.com.cn>");
216216
MODULE_DESCRIPTION("Phytium GPIO driver");
217+
MODULE_VERSION(PHYTIUM_GPIO_DRIVER_VERSION);

drivers/gpio/gpio-phytium-sgpio.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
#define GPIO_OFFSET(x) ((x) & GENMASK(5, 0))
5050
#define GPIO_BIT(x) BIT(GPIO_OFFSET(x) >> 1)
5151

52+
#define GPIO_SGPIO_DRIVER_VERSION "1.1.0"
53+
5254
struct phytium_sgpio {
5355
struct gpio_chip gc;
5456
void __iomem *regs;
@@ -317,3 +319,4 @@ module_platform_driver(phytium_sgpio_driver);
317319
MODULE_AUTHOR("Chen Baozi <chenbaozi@phytium.com.cn>");
318320
MODULE_DESCRIPTION("Phytium SGPIO driver");
319321
MODULE_LICENSE("GPL");
322+
MODULE_VERSION(GPIO_SGPIO_DRIVER_VERSION);

0 commit comments

Comments
 (0)