gpio-hisi.c (762f99f4f3cb41a775b5157dd761217beba65873) | gpio-hisi.c (80280df758c1498485988b30cf6887fde7796056) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* Copyright (c) 2020 HiSilicon Limited. */ 3#include <linux/gpio/driver.h> 4#include <linux/module.h> 5#include <linux/mod_devicetable.h> 6#include <linux/platform_device.h> 7#include <linux/property.h> 8 --- 207 unchanged lines hidden (view full) --- 216} 217 218static const struct acpi_device_id hisi_gpio_acpi_match[] = { 219 {"HISI0184", 0}, 220 {} 221}; 222MODULE_DEVICE_TABLE(acpi, hisi_gpio_acpi_match); 223 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* Copyright (c) 2020 HiSilicon Limited. */ 3#include <linux/gpio/driver.h> 4#include <linux/module.h> 5#include <linux/mod_devicetable.h> 6#include <linux/platform_device.h> 7#include <linux/property.h> 8 --- 207 unchanged lines hidden (view full) --- 216} 217 218static const struct acpi_device_id hisi_gpio_acpi_match[] = { 219 {"HISI0184", 0}, 220 {} 221}; 222MODULE_DEVICE_TABLE(acpi, hisi_gpio_acpi_match); 223 |
224static const struct of_device_id hisi_gpio_dts_match[] = { 225 { .compatible = "hisilicon,ascend910-gpio", }, 226 { } 227}; 228MODULE_DEVICE_TABLE(of, hisi_gpio_dts_match); 229 |
|
224static void hisi_gpio_get_pdata(struct device *dev, 225 struct hisi_gpio *hisi_gpio) 226{ 227 struct platform_device *pdev = to_platform_device(dev); 228 struct fwnode_handle *fwnode; 229 int idx = 0; 230 231 device_for_each_child_node(dev, fwnode) { --- 74 unchanged lines hidden (view full) --- 306 307 return 0; 308} 309 310static struct platform_driver hisi_gpio_driver = { 311 .driver = { 312 .name = HISI_GPIO_DRIVER_NAME, 313 .acpi_match_table = hisi_gpio_acpi_match, | 230static void hisi_gpio_get_pdata(struct device *dev, 231 struct hisi_gpio *hisi_gpio) 232{ 233 struct platform_device *pdev = to_platform_device(dev); 234 struct fwnode_handle *fwnode; 235 int idx = 0; 236 237 device_for_each_child_node(dev, fwnode) { --- 74 unchanged lines hidden (view full) --- 312 313 return 0; 314} 315 316static struct platform_driver hisi_gpio_driver = { 317 .driver = { 318 .name = HISI_GPIO_DRIVER_NAME, 319 .acpi_match_table = hisi_gpio_acpi_match, |
320 .of_match_table = hisi_gpio_dts_match, |
|
314 }, 315 .probe = hisi_gpio_probe, 316}; 317 318module_platform_driver(hisi_gpio_driver); 319 320MODULE_LICENSE("GPL"); 321MODULE_AUTHOR("Luo Jiaxing <luojiaxing@huawei.com>"); 322MODULE_DESCRIPTION("HiSilicon GPIO controller driver"); 323MODULE_ALIAS("platform:" HISI_GPIO_DRIVER_NAME); | 321 }, 322 .probe = hisi_gpio_probe, 323}; 324 325module_platform_driver(hisi_gpio_driver); 326 327MODULE_LICENSE("GPL"); 328MODULE_AUTHOR("Luo Jiaxing <luojiaxing@huawei.com>"); 329MODULE_DESCRIPTION("HiSilicon GPIO controller driver"); 330MODULE_ALIAS("platform:" HISI_GPIO_DRIVER_NAME); |