gpio: rcar: Fix runtime PM imbalance on error
[linux/fpc-iii.git] / drivers / media / platform / vsp1 / vsp1_hgt.h
blob38ec237bdd2d9985b0260574159e3640e8d803b8
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3 * vsp1_hgt.h -- R-Car VSP1 Histogram Generator 2D
5 * Copyright (C) 2016 Renesas Electronics Corporation
7 * Contact: Niklas Söderlund (niklas.soderlund@ragnatech.se)
8 */
9 #ifndef __VSP1_HGT_H__
10 #define __VSP1_HGT_H__
12 #include <media/media-entity.h>
13 #include <media/v4l2-ctrls.h>
14 #include <media/v4l2-subdev.h>
16 #include "vsp1_histo.h"
18 struct vsp1_device;
20 #define HGT_NUM_HUE_AREAS 6
22 struct vsp1_hgt {
23 struct vsp1_histogram histo;
25 struct v4l2_ctrl_handler ctrls;
27 u8 hue_areas[HGT_NUM_HUE_AREAS * 2];
30 static inline struct vsp1_hgt *to_hgt(struct v4l2_subdev *subdev)
32 return container_of(subdev, struct vsp1_hgt, histo.entity.subdev);
35 struct vsp1_hgt *vsp1_hgt_create(struct vsp1_device *vsp1);
36 void vsp1_hgt_frame_end(struct vsp1_entity *hgt);
38 #endif /* __VSP1_HGT_H__ */