zephyr: Update for refactored zephyr device structures.

Updates the zephyr port to use refactored device structures introduced in
zephyr 2.3.
This commit is contained in:
Maureen Helm 2020-05-14 08:07:49 -05:00 committed by Damien George
parent 8b061f2d79
commit db02cb061d
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ typedef struct _machine_hard_i2c_obj_t {
STATIC void machine_hard_i2c_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {
machine_hard_i2c_obj_t *self = self_in;
mp_printf(print, "%s", self->dev->config->name);
mp_printf(print, "%s", self->dev->name);
}
mp_obj_t machine_hard_i2c_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *all_args) {