ms5637.c (07498719bedecc8be1ecc62ea50315e91a668cac) ms5637.c (649ef114a0a05541f9241442fa6b9c9bef457bb4)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * ms5637.c - Support for Measurement-Specialties MS5637, MS5805
4 * MS5837 and MS8607 pressure & temperature sensor
5 *
6 * Copyright (c) 2015 Measurement-Specialties
7 *
8 * (7-bit I2C slave address 0x76)

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

195 return devm_iio_device_register(&client->dev, indio_dev);
196}
197
198static const struct ms_tp_hw_data ms5637_hw_data = {
199 .prom_len = 7,
200 .max_res_index = 5
201};
202
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * ms5637.c - Support for Measurement-Specialties MS5637, MS5805
4 * MS5837 and MS8607 pressure & temperature sensor
5 *
6 * Copyright (c) 2015 Measurement-Specialties
7 *
8 * (7-bit I2C slave address 0x76)

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

195 return devm_iio_device_register(&client->dev, indio_dev);
196}
197
198static const struct ms_tp_hw_data ms5637_hw_data = {
199 .prom_len = 7,
200 .max_res_index = 5
201};
202
203static const struct ms_tp_hw_data ms5803_hw_data = {
204 .prom_len = 8,
205 .max_res_index = 4
206};
207
203static const struct ms_tp_data ms5637_data = { .name = "ms5637", .hw = &ms5637_hw_data };
204
208static const struct ms_tp_data ms5637_data = { .name = "ms5637", .hw = &ms5637_hw_data };
209
210static const struct ms_tp_data ms5803_data = { .name = "ms5803", .hw = &ms5803_hw_data };
211
205static const struct ms_tp_data ms5805_data = { .name = "ms5805", .hw = &ms5637_hw_data };
206
207static const struct ms_tp_data ms5837_data = { .name = "ms5837", .hw = &ms5637_hw_data };
208
209static const struct ms_tp_data ms8607_data = {
210 .name = "ms8607-temppressure",
211 .hw = &ms5637_hw_data,
212};

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

217 {"ms5837", (kernel_ulong_t)&ms5837_data },
218 {"ms8607-temppressure", (kernel_ulong_t)&ms8607_data },
219 {}
220};
221MODULE_DEVICE_TABLE(i2c, ms5637_id);
222
223static const struct of_device_id ms5637_of_match[] = {
224 { .compatible = "meas,ms5637", .data = &ms5637_data },
212static const struct ms_tp_data ms5805_data = { .name = "ms5805", .hw = &ms5637_hw_data };
213
214static const struct ms_tp_data ms5837_data = { .name = "ms5837", .hw = &ms5637_hw_data };
215
216static const struct ms_tp_data ms8607_data = {
217 .name = "ms8607-temppressure",
218 .hw = &ms5637_hw_data,
219};

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

224 {"ms5837", (kernel_ulong_t)&ms5837_data },
225 {"ms8607-temppressure", (kernel_ulong_t)&ms8607_data },
226 {}
227};
228MODULE_DEVICE_TABLE(i2c, ms5637_id);
229
230static const struct of_device_id ms5637_of_match[] = {
231 { .compatible = "meas,ms5637", .data = &ms5637_data },
232 { .compatible = "meas,ms5803", .data = &ms5803_data },
225 { .compatible = "meas,ms5805", .data = &ms5805_data },
226 { .compatible = "meas,ms5837", .data = &ms5837_data },
227 { .compatible = "meas,ms8607-temppressure", .data = &ms8607_data },
228 { },
229};
230MODULE_DEVICE_TABLE(of, ms5637_of_match);
231
232static struct i2c_driver ms5637_driver = {

--- 14 unchanged lines hidden ---
233 { .compatible = "meas,ms5805", .data = &ms5805_data },
234 { .compatible = "meas,ms5837", .data = &ms5837_data },
235 { .compatible = "meas,ms8607-temppressure", .data = &ms8607_data },
236 { },
237};
238MODULE_DEVICE_TABLE(of, ms5637_of_match);
239
240static struct i2c_driver ms5637_driver = {

--- 14 unchanged lines hidden ---