drm/msm/dpu: remove unused dpu_hw_blk features
[linux-2.6-microblaze.git] / drivers / gpu / drm / msm / disp / dpu1 / dpu_hw_blk.c
1 // SPDX-License-Identifier: GPL-2.0-only
2 /* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
3  */
4
5 #define pr_fmt(fmt)     "[drm:%s:%d] " fmt, __func__, __LINE__
6
7 #include <linux/mutex.h>
8 #include <linux/errno.h>
9 #include <linux/slab.h>
10
11 #include "dpu_hw_mdss.h"
12 #include "dpu_hw_blk.h"
13
14 /**
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
19  */
20 void dpu_hw_blk_init(struct dpu_hw_blk *hw_blk, u32 type, int id)
21 {
22         hw_blk->type = type;
23         hw_blk->id = id;
24 }
25
26 /**
27  * dpu_hw_blk_destroy - destroy hw block object.
28  * @hw_blk:  pointer to hw block object
29  * return: none
30  */
31 void dpu_hw_blk_destroy(struct dpu_hw_blk *hw_blk)
32 {
33         if (!hw_blk) {
34                 pr_err("invalid parameters\n");
35                 return;
36         }
37 }