zpa2326_spi.c (2cbfa2128662c6b841f68cd2fe54df199457e38a) zpa2326_spi.c (c8629ec92cb2a2e24bed4509d13c88b0cf5525c4)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Murata ZPA2326 SPI pressure and temperature sensor driver
4 *
5 * Copyright (c) 2016 Parrot S.A.
6 *
7 * Author: Gregor Boirie <gregor.boirie@parrot.com>
8 */

--- 43 unchanged lines hidden (view full) ---

52 err = spi_setup(spi);
53 if (err < 0)
54 return err;
55
56 return zpa2326_probe(&spi->dev, spi_get_device_id(spi)->name,
57 spi->irq, ZPA2326_DEVICE_ID, regmap);
58}
59
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Murata ZPA2326 SPI pressure and temperature sensor driver
4 *
5 * Copyright (c) 2016 Parrot S.A.
6 *
7 * Author: Gregor Boirie <gregor.boirie@parrot.com>
8 */

--- 43 unchanged lines hidden (view full) ---

52 err = spi_setup(spi);
53 if (err < 0)
54 return err;
55
56 return zpa2326_probe(&spi->dev, spi_get_device_id(spi)->name,
57 spi->irq, ZPA2326_DEVICE_ID, regmap);
58}
59
60static void zpa2326_remove_spi(struct spi_device *spi)
60static int zpa2326_remove_spi(struct spi_device *spi)
61{
62 zpa2326_remove(&spi->dev);
61{
62 zpa2326_remove(&spi->dev);
63
64 return 0;
63}
64
65static const struct spi_device_id zpa2326_spi_ids[] = {
66 { "zpa2326", 0 },
67 { },
68};
69MODULE_DEVICE_TABLE(spi, zpa2326_spi_ids);
70

--- 13 unchanged lines hidden (view full) ---

84 .remove = zpa2326_remove_spi,
85 .id_table = zpa2326_spi_ids,
86};
87module_spi_driver(zpa2326_spi_driver);
88
89MODULE_AUTHOR("Gregor Boirie <gregor.boirie@parrot.com>");
90MODULE_DESCRIPTION("SPI driver for Murata ZPA2326 pressure sensor");
91MODULE_LICENSE("GPL v2");
65}
66
67static const struct spi_device_id zpa2326_spi_ids[] = {
68 { "zpa2326", 0 },
69 { },
70};
71MODULE_DEVICE_TABLE(spi, zpa2326_spi_ids);
72

--- 13 unchanged lines hidden (view full) ---

86 .remove = zpa2326_remove_spi,
87 .id_table = zpa2326_spi_ids,
88};
89module_spi_driver(zpa2326_spi_driver);
90
91MODULE_AUTHOR("Gregor Boirie <gregor.boirie@parrot.com>");
92MODULE_DESCRIPTION("SPI driver for Murata ZPA2326 pressure sensor");
93MODULE_LICENSE("GPL v2");
94MODULE_IMPORT_NS(IIO_ZPA2326);