kxsd9-spi.c (f777316e52e14059a6a1df45cbf39a93ac49a593) | kxsd9-spi.c (cb490b10c3fdd3d700e379d8be8b8d7e4662cff2) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2#include <linux/device.h> 3#include <linux/kernel.h> 4#include <linux/of.h> 5#include <linux/of_device.h> 6#include <linux/spi/spi.h> 7#include <linux/module.h> 8#include <linux/slab.h> --- 38 unchanged lines hidden (view full) --- 47 { .compatible = "kionix,kxsd9" }, 48 { } 49}; 50MODULE_DEVICE_TABLE(of, kxsd9_of_match); 51 52static struct spi_driver kxsd9_spi_driver = { 53 .driver = { 54 .name = "kxsd9", | 1// SPDX-License-Identifier: GPL-2.0-only 2#include <linux/device.h> 3#include <linux/kernel.h> 4#include <linux/of.h> 5#include <linux/of_device.h> 6#include <linux/spi/spi.h> 7#include <linux/module.h> 8#include <linux/slab.h> --- 38 unchanged lines hidden (view full) --- 47 { .compatible = "kionix,kxsd9" }, 48 { } 49}; 50MODULE_DEVICE_TABLE(of, kxsd9_of_match); 51 52static struct spi_driver kxsd9_spi_driver = { 53 .driver = { 54 .name = "kxsd9", |
55 .pm = &kxsd9_dev_pm_ops, | 55 .pm = pm_ptr(&kxsd9_dev_pm_ops), |
56 .of_match_table = kxsd9_of_match, 57 }, 58 .probe = kxsd9_spi_probe, 59 .remove = kxsd9_spi_remove, 60 .id_table = kxsd9_spi_id, 61}; 62module_spi_driver(kxsd9_spi_driver); 63 64MODULE_AUTHOR("Jonathan Cameron <jic23@kernel.org>"); 65MODULE_DESCRIPTION("Kionix KXSD9 SPI driver"); 66MODULE_LICENSE("GPL v2"); 67MODULE_IMPORT_NS(IIO_KXSD9); | 56 .of_match_table = kxsd9_of_match, 57 }, 58 .probe = kxsd9_spi_probe, 59 .remove = kxsd9_spi_remove, 60 .id_table = kxsd9_spi_id, 61}; 62module_spi_driver(kxsd9_spi_driver); 63 64MODULE_AUTHOR("Jonathan Cameron <jic23@kernel.org>"); 65MODULE_DESCRIPTION("Kionix KXSD9 SPI driver"); 66MODULE_LICENSE("GPL v2"); 67MODULE_IMPORT_NS(IIO_KXSD9); |