Skip to content

Commit

Permalink
samples: sensor: mpr: Convert to use new dts macros
Browse files Browse the repository at this point in the history
Convert DT_INST_0_HONEYWELL_MPR_LABEL to
DT_LABEL(DT_INST(0, honeywell_mpr))

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information
galak authored and MaureenHelm committed Apr 30, 2020
1 parent 50750bf commit 4524242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/sensor/mpr/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4524242

Please sign in to comment.