1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
5 #define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__
7 #include <linux/mutex.h>
8 #include <linux/errno.h>
9 #include <linux/slab.h>
11 #include "dpu_hw_mdss.h"
12 #include "dpu_hw_blk.h"
15 * dpu_hw_blk_init - initialize hw block object
16 * @hw_blk: pointer to hw block object
17 * @type: hw block type - enum dpu_hw_blk_type
18 * @id: instance id of the hw block
20 void dpu_hw_blk_init(struct dpu_hw_blk *hw_blk, u32 type, int id)
27 * dpu_hw_blk_destroy - destroy hw block object.
28 * @hw_blk: pointer to hw block object
31 void dpu_hw_blk_destroy(struct dpu_hw_blk *hw_blk)
34 pr_err("invalid parameters\n");