samples: sensor: mpr: Convert to use new dts macros
Convert DT_INST_0_HONEYWELL_MPR_LABEL to DT_LABEL(DT_INST(0, honeywell_mpr)) Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
50750bfa31
commit
45242422c4
|
@ -11,7 +11,7 @@
|
|||
|
||||
void main(void)
|
||||
{
|
||||
const char *const devname = DT_INST_0_HONEYWELL_MPR_LABEL;
|
||||
const char *const devname = DT_LABEL(DT_INST(0, honeywell_mpr));
|
||||
struct device *dev = device_get_binding(devname);
|
||||
int rc;
|
||||
|
||||
|
|
Loading…
Reference in a new issue