altera-a10sr.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | altera-a10sr.c (4ea673e87e50684249223103ccdfef2c0ea83321) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Altera Arria10 DevKit System Resource MFD Driver 4 * 5 * Author: Thor Thayer <tthayer@opensource.altera.com> 6 * 7 * Copyright Intel Corporation (C) 2014-2016. All Rights Reserved 8 * --- 136 unchanged lines hidden (view full) --- 145 146 return ret; 147} 148 149static const struct of_device_id altr_a10sr_spi_of_match[] = { 150 { .compatible = "altr,a10sr" }, 151 { }, 152}; | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Altera Arria10 DevKit System Resource MFD Driver 4 * 5 * Author: Thor Thayer <tthayer@opensource.altera.com> 6 * 7 * Copyright Intel Corporation (C) 2014-2016. All Rights Reserved 8 * --- 136 unchanged lines hidden (view full) --- 145 146 return ret; 147} 148 149static const struct of_device_id altr_a10sr_spi_of_match[] = { 150 { .compatible = "altr,a10sr" }, 151 { }, 152}; |
153MODULE_DEVICE_TABLE(of, altr_a10sr_spi_of_match); |
|
153 | 154 |
155static const struct spi_device_id altr_a10sr_spi_ids[] = { 156 { .name = "a10sr" }, 157 { }, 158}; 159MODULE_DEVICE_TABLE(spi, altr_a10sr_spi_ids); 160 |
|
154static struct spi_driver altr_a10sr_spi_driver = { 155 .probe = altr_a10sr_spi_probe, 156 .driver = { 157 .name = "altr_a10sr", 158 .of_match_table = of_match_ptr(altr_a10sr_spi_of_match), 159 }, | 161static struct spi_driver altr_a10sr_spi_driver = { 162 .probe = altr_a10sr_spi_probe, 163 .driver = { 164 .name = "altr_a10sr", 165 .of_match_table = of_match_ptr(altr_a10sr_spi_of_match), 166 }, |
167 .id_table = altr_a10sr_spi_ids, |
|
160}; 161builtin_driver(altr_a10sr_spi_driver, spi_register_driver) | 168}; 169builtin_driver(altr_a10sr_spi_driver, spi_register_driver) |