All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] media: rkisp1: uapi: change hist_bins array type from __u16 to __u32
@ 2021-01-19 14:53 ` Dafna Hirschfeld
  0 siblings, 0 replies; 20+ messages in thread
From: Dafna Hirschfeld @ 2021-01-19 14:53 UTC (permalink / raw)
  To: linux-media, laurent.pinchart, hverkuil, heiko
  Cc: dafna.hirschfeld, helen.koike, ezequiel, kernel, dafna3,
	sakari.ailus, linux-rockchip, mchehab, tfiga

Each entry in the array is a 20 bits value composed of 16
bits unsigned integer and 4 bits fractional part. So the
type should change to __u32.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
---
This patch is applied on top of v6 of the patchset
"Fix the rkisp1 userspace API for later IP versions"

 include/uapi/linux/rkisp1-config.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/uapi/linux/rkisp1-config.h b/include/uapi/linux/rkisp1-config.h
index 57ca3eea985f..47f6b84d7c56 100644
--- a/include/uapi/linux/rkisp1-config.h
+++ b/include/uapi/linux/rkisp1-config.h
@@ -895,7 +895,8 @@ struct rkisp1_cif_isp_af_stat {
 /**
  * struct rkisp1_cif_isp_hist_stat - statistics histogram data
  *
- * @hist_bins: measured bin counters
+ * @hist_bins: measured bin counters. Each bin is a 20 bits value
+ *	       composed of a 16-bit unsigned integer and 4 bits fractional part.
  *
  * The histogram values divided into 16 bins for V10/V11 and 32 bins
  * for V12/V13. It is configured within the struct rkisp1_cif_isp_hst_config.
@@ -909,7 +910,7 @@ struct rkisp1_cif_isp_af_stat {
  * RKISP1_CIF_ISP_HIST_BIN_N_MAX is equal to the maximum of the two.
  */
 struct rkisp1_cif_isp_hist_stat {
-	__u16 hist_bins[RKISP1_CIF_ISP_HIST_BIN_N_MAX];
+	__u32 hist_bins[RKISP1_CIF_ISP_HIST_BIN_N_MAX];
 };
 
 /**
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2021-01-20 12:46 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-19 14:53 [PATCH] media: rkisp1: uapi: change hist_bins array type from __u16 to __u32 Dafna Hirschfeld
2021-01-19 14:53 ` Dafna Hirschfeld
2021-01-19 15:00 ` Hans Verkuil
2021-01-19 15:00   ` Hans Verkuil
2021-01-19 15:32   ` Dafna Hirschfeld
2021-01-19 15:32     ` Dafna Hirschfeld
2021-01-19 16:32     ` Hans Verkuil
2021-01-19 16:32       ` Hans Verkuil
2021-01-19 17:47       ` Dafna Hirschfeld
2021-01-19 17:47         ` Dafna Hirschfeld
2021-01-20  9:58         ` Hans Verkuil
2021-01-20  9:58           ` Hans Verkuil
2021-01-20 10:37           ` Dafna Hirschfeld
2021-01-20 10:37             ` Dafna Hirschfeld
2021-01-20 10:49             ` Hans Verkuil
2021-01-20 10:49               ` Hans Verkuil
2021-01-20 11:32               ` Dafna Hirschfeld
2021-01-20 11:32                 ` Dafna Hirschfeld
2021-01-20 11:37                 ` Hans Verkuil
2021-01-20 11:37                   ` Hans Verkuil

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.