blob: b76438570a4fd3526bf96bfdb60b238e0bd0e8db [file] [log] [blame] [edit]
// Copyright 2023 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef LIB_DRIVER_DEVICETREE_VISITORS_BIND_PROPERTY_H_
#define LIB_DRIVER_DEVICETREE_VISITORS_BIND_PROPERTY_H_
#include "sdk/lib/driver/devicetree/visitor.h"
namespace fdf_devicetree {
// The |BindPropertyVisitor| populates the bind properties of each device tree
// node based on the "compatible" string.
// TODO(fxbug.dev/107029): support extra "bind,..." properties as bind properties.
class BindPropertyVisitor : public Visitor {
public:
explicit BindPropertyVisitor(fdf::Logger* logger) : Visitor(logger) {}
~BindPropertyVisitor() override = default;
zx::result<> Visit(Node& node) override;
};
} // namespace fdf_devicetree
#endif // LIB_DRIVER_DEVICETREE_VISITORS_BIND_PROPERTY_H_