#include <linux/delay.h>
#include <linux/module.h>
#include <linux/spi/spi.h>
#include <linux/mod_devicetable.h>
#include <asm/unaligned.h>
#include "ms5611.h"
static int ms5611_spi_reset(struct ms5611_state *st)
{ … }
static int ms5611_spi_read_prom_word(struct ms5611_state *st, int index,
u16 *word)
{ … }
static int ms5611_spi_read_adc(struct ms5611_state *st, s32 *val)
{ … }
static int ms5611_spi_read_adc_temp_and_pressure(struct ms5611_state *st,
s32 *temp, s32 *pressure)
{ … }
static int ms5611_spi_probe(struct spi_device *spi)
{ … }
static const struct of_device_id ms5611_spi_matches[] = …;
MODULE_DEVICE_TABLE(of, ms5611_spi_matches);
static const struct spi_device_id ms5611_id[] = …;
MODULE_DEVICE_TABLE(spi, ms5611_id);
static struct spi_driver ms5611_driver = …;
module_spi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);