Skip to content

Commit bf7a396

Browse files
gmarullnashif
authored andcommitted
drivers: sensor: remove usage of device_pm_control_nop
device_pm_control_nop is now deprecated in favour of NULL. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent cc35750 commit bf7a396

File tree

78 files changed

+79
-79
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+79
-79
lines changed

drivers/sensor/adt7420/adt7420.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,6 @@ static const struct adt7420_dev_config adt7420_config = {
230230
#endif
231231
};
232232

233-
DEVICE_DT_INST_DEFINE(0, adt7420_init, device_pm_control_nop, &adt7420_driver,
233+
DEVICE_DT_INST_DEFINE(0, adt7420_init, NULL, &adt7420_driver,
234234
&adt7420_config, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY,
235235
&adt7420_driver_api);

drivers/sensor/adxl345/adxl345.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,6 @@ static const struct adxl345_dev_config adxl345_config = {
190190
.i2c_addr = DT_INST_REG_ADDR(0),
191191
};
192192

193-
DEVICE_DT_INST_DEFINE(0, adxl345_init, device_pm_control_nop,
193+
DEVICE_DT_INST_DEFINE(0, adxl345_init, NULL,
194194
&adxl345_data, &adxl345_config, POST_KERNEL,
195195
CONFIG_SENSOR_INIT_PRIORITY, &adxl345_api_funcs);

drivers/sensor/adxl362/adxl362.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,6 @@ static const struct adxl362_config adxl362_config = {
818818
#endif
819819
};
820820

821-
DEVICE_DT_INST_DEFINE(0, adxl362_init, device_pm_control_nop,
821+
DEVICE_DT_INST_DEFINE(0, adxl362_init, NULL,
822822
&adxl362_data, &adxl362_config, POST_KERNEL,
823823
CONFIG_SENSOR_INIT_PRIORITY, &adxl362_api_funcs);

drivers/sensor/adxl372/adxl372.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,6 @@ static const struct adxl372_dev_config adxl372_config = {
10241024
.op_mode = ADXL372_FULL_BW_MEASUREMENT,
10251025
};
10261026

1027-
DEVICE_DT_INST_DEFINE(0, adxl372_init, device_pm_control_nop,
1027+
DEVICE_DT_INST_DEFINE(0, adxl372_init, NULL,
10281028
&adxl372_data, &adxl372_config, POST_KERNEL,
10291029
CONFIG_SENSOR_INIT_PRIORITY, &adxl372_api_funcs);

drivers/sensor/ak8975/ak8975.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ int ak8975_init(const struct device *dev)
170170

171171
struct ak8975_data ak8975_data;
172172

173-
DEVICE_DT_INST_DEFINE(0, ak8975_init, device_pm_control_nop,
173+
DEVICE_DT_INST_DEFINE(0, ak8975_init, NULL,
174174
&ak8975_data,
175175
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY,
176176
&ak8975_driver_api);

drivers/sensor/amg88xx/amg88xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static const struct amg88xx_config amg88xx_config = {
153153
#endif
154154
};
155155

156-
DEVICE_DT_INST_DEFINE(0, amg88xx_init, device_pm_control_nop,
156+
DEVICE_DT_INST_DEFINE(0, amg88xx_init, NULL,
157157
&amg88xx_driver, &amg88xx_config,
158158
POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY,
159159
&amg88xx_driver_api);

drivers/sensor/ams_iAQcore/iAQcore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,6 @@ static int iaq_core_init(const struct device *dev)
114114

115115
static struct iaq_core_data iaq_core_driver;
116116

117-
DEVICE_DT_INST_DEFINE(0, iaq_core_init, device_pm_control_nop,
117+
DEVICE_DT_INST_DEFINE(0, iaq_core_init, NULL,
118118
&iaq_core_driver, NULL, POST_KERNEL,
119119
CONFIG_SENSOR_INIT_PRIORITY, &iaq_core_driver_api);

drivers/sensor/bma280/bma280.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,6 @@ int bma280_init(const struct device *dev)
163163

164164
struct bma280_data bma280_driver;
165165

166-
DEVICE_DT_INST_DEFINE(0, bma280_init, device_pm_control_nop, &bma280_driver,
166+
DEVICE_DT_INST_DEFINE(0, bma280_init, NULL, &bma280_driver,
167167
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY,
168168
&bma280_driver_api);

drivers/sensor/bmc150_magn/bmc150_magn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,6 @@ static const struct bmc150_magn_config bmc150_magn_config = {
607607

608608
static struct bmc150_magn_data bmc150_magn_data;
609609

610-
DEVICE_DT_INST_DEFINE(0, bmc150_magn_init, device_pm_control_nop,
610+
DEVICE_DT_INST_DEFINE(0, bmc150_magn_init, NULL,
611611
&bmc150_magn_data, &bmc150_magn_config, POST_KERNEL,
612612
CONFIG_SENSOR_INIT_PRIORITY, &bmc150_magn_api_funcs);

drivers/sensor/bme680/bme680.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,6 @@ static const struct sensor_driver_api bme680_api_funcs = {
428428

429429
static struct bme680_data bme680_data;
430430

431-
DEVICE_DT_INST_DEFINE(0, bme680_init, device_pm_control_nop, &bme680_data,
431+
DEVICE_DT_INST_DEFINE(0, bme680_init, NULL, &bme680_data,
432432
NULL, POST_KERNEL, CONFIG_SENSOR_INIT_PRIORITY,
433433
&bme680_api_funcs);

0 commit comments

Comments
 (0)