ltc2632.c (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) | ltc2632.c (0f6a2165af72914965fca0990ff11d3aa5a4dd10) |
---|---|
1/* 2 * LTC2632 Digital to analog convertors spi driver 3 * 4 * Copyright 2017 Maxime Roussin-B�langer 5 * 6 * Licensed under the GPL-2. 7 */ 8 --- 261 unchanged lines hidden (view full) --- 270 { "ltc2632-l8", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2632L8] }, 271 { "ltc2632-h12", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2632H12] }, 272 { "ltc2632-h10", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2632H10] }, 273 { "ltc2632-h8", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2632H8] }, 274 {} 275}; 276MODULE_DEVICE_TABLE(spi, ltc2632_id); 277 | 1/* 2 * LTC2632 Digital to analog convertors spi driver 3 * 4 * Copyright 2017 Maxime Roussin-B�langer 5 * 6 * Licensed under the GPL-2. 7 */ 8 --- 261 unchanged lines hidden (view full) --- 270 { "ltc2632-l8", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2632L8] }, 271 { "ltc2632-h12", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2632H12] }, 272 { "ltc2632-h10", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2632H10] }, 273 { "ltc2632-h8", (kernel_ulong_t)<c2632_chip_info_tbl[ID_LTC2632H8] }, 274 {} 275}; 276MODULE_DEVICE_TABLE(spi, ltc2632_id); 277 |
278static struct spi_driver ltc2632_driver = { 279 .driver = { 280 .name = "ltc2632", 281 }, 282 .probe = ltc2632_probe, 283 .id_table = ltc2632_id, 284}; 285module_spi_driver(ltc2632_driver); 286 | |
287static const struct of_device_id ltc2632_of_match[] = { 288 { 289 .compatible = "lltc,ltc2632-l12", 290 .data = <c2632_chip_info_tbl[ID_LTC2632L12] 291 }, { 292 .compatible = "lltc,ltc2632-l10", 293 .data = <c2632_chip_info_tbl[ID_LTC2632L10] 294 }, { --- 8 unchanged lines hidden (view full) --- 303 }, { 304 .compatible = "lltc,ltc2632-h8", 305 .data = <c2632_chip_info_tbl[ID_LTC2632H8] 306 }, 307 {} 308}; 309MODULE_DEVICE_TABLE(of, ltc2632_of_match); 310 | 278static const struct of_device_id ltc2632_of_match[] = { 279 { 280 .compatible = "lltc,ltc2632-l12", 281 .data = <c2632_chip_info_tbl[ID_LTC2632L12] 282 }, { 283 .compatible = "lltc,ltc2632-l10", 284 .data = <c2632_chip_info_tbl[ID_LTC2632L10] 285 }, { --- 8 unchanged lines hidden (view full) --- 294 }, { 295 .compatible = "lltc,ltc2632-h8", 296 .data = <c2632_chip_info_tbl[ID_LTC2632H8] 297 }, 298 {} 299}; 300MODULE_DEVICE_TABLE(of, ltc2632_of_match); 301 |
302static struct spi_driver ltc2632_driver = { 303 .driver = { 304 .name = "ltc2632", 305 .of_match_table = of_match_ptr(ltc2632_of_match), 306 }, 307 .probe = ltc2632_probe, 308 .id_table = ltc2632_id, 309}; 310module_spi_driver(ltc2632_driver); 311 |
|
311MODULE_AUTHOR("Maxime Roussin-Belanger <maxime.roussinbelanger@gmail.com>"); 312MODULE_DESCRIPTION("LTC2632 DAC SPI driver"); 313MODULE_LICENSE("GPL v2"); | 312MODULE_AUTHOR("Maxime Roussin-Belanger <maxime.roussinbelanger@gmail.com>"); 313MODULE_DESCRIPTION("LTC2632 DAC SPI driver"); 314MODULE_LICENSE("GPL v2"); |