#include <linux/delay.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/unaligned.h>
#include "ms5611.h"
static int ms5611_i2c_reset(struct ms5611_state *st)
{ … }
static int ms5611_i2c_read_prom_word(struct ms5611_state *st, int index,
u16 *word)
{ … }
static int ms5611_i2c_read_adc(struct ms5611_state *st, s32 *val)
{ … }
static int ms5611_i2c_read_adc_temp_and_pressure(struct ms5611_state *st,
s32 *temp, s32 *pressure)
{ … }
static int ms5611_i2c_probe(struct i2c_client *client)
{ … }
static const struct of_device_id ms5611_i2c_matches[] = …;
MODULE_DEVICE_TABLE(of, ms5611_i2c_matches);
static const struct i2c_device_id ms5611_id[] = …;
MODULE_DEVICE_TABLE(i2c, ms5611_id);
static struct i2c_driver ms5611_driver = …;
module_i2c_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_IMPORT_NS(…);