diff --git a/tmp/ynl_build-tmp.YYBogO/old-code/dpll-user.c b/tmp/ynl_build-tmp.YYBogO/new-code/dpll-user.c index e73a37476605..a1e6f55aa65f 100644 --- a/tmp/ynl_build-tmp.YYBogO/old-code/dpll-user.c +++ b/tmp/ynl_build-tmp.YYBogO/new-code/dpll-user.c @@ -732,6 +732,8 @@ int dpll_device_set(struct ynl_sock *ys, struct dpll_device_set_req *req) if (req->_present.id) ynl_attr_put_u32(nlh, DPLL_A_ID, req->id); + if (req->_present.mode) + ynl_attr_put_u32(nlh, DPLL_A_MODE, req->mode); if (req->_present.phase_offset_monitor) ynl_attr_put_u32(nlh, DPLL_A_PHASE_OFFSET_MONITOR, req->phase_offset_monitor); if (req->_present.phase_offset_avg_factor) diff --git a/tmp/ynl_build-tmp.YYBogO/old-code/dpll-user.h b/tmp/ynl_build-tmp.YYBogO/new-code/dpll-user.h index 98b1e258c9c9..fb497a033d1a 100644 --- a/tmp/ynl_build-tmp.YYBogO/old-code/dpll-user.h +++ b/tmp/ynl_build-tmp.YYBogO/new-code/dpll-user.h @@ -318,11 +318,13 @@ void dpll_device_get_ntf_free(struct dpll_device_get_ntf *rsp); struct dpll_device_set_req { struct { __u32 id:1; + __u32 mode:1; __u32 phase_offset_monitor:1; __u32 phase_offset_avg_factor:1; } _present; __u32 id; + enum dpll_mode mode; enum dpll_feature_state phase_offset_monitor; __u32 phase_offset_avg_factor; }; @@ -340,6 +342,13 @@ dpll_device_set_req_set_id(struct dpll_device_set_req *req, __u32 id) req->id = id; } static inline void +dpll_device_set_req_set_mode(struct dpll_device_set_req *req, + enum dpll_mode mode) +{ + req->_present.mode = 1; + req->mode = mode; +} +static inline void dpll_device_set_req_set_phase_offset_monitor(struct dpll_device_set_req *req, enum dpll_feature_state phase_offset_monitor) {