treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / gpu / drm / zte / zx_plane.h
blob5a7cc8b3b9856ad22d02ccb438f45e54f93ec2bf
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright 2016 Linaro Ltd.
4 * Copyright 2016 ZTE Corporation.
5 */
7 #ifndef __ZX_PLANE_H__
8 #define __ZX_PLANE_H__
10 struct zx_plane {
11 struct drm_plane plane;
12 struct device *dev;
13 void __iomem *layer;
14 void __iomem *csc;
15 void __iomem *hbsc;
16 void __iomem *rsz;
17 const struct vou_layer_bits *bits;
20 #define to_zx_plane(plane) container_of(plane, struct zx_plane, plane)
22 int zx_plane_init(struct drm_device *drm, struct zx_plane *zplane,
23 enum drm_plane_type type);
24 void zx_plane_set_update(struct drm_plane *plane);
26 #endif /* __ZX_PLANE_H__ */