Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1447086 > unrolled thread
| Started by | Quentin Schulz <quentin.schulz@free-electrons.com> |
|---|---|
| First post | 2016-07-20 10:40 +0200 |
| Last post | 2016-07-24 12:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/5] mfd: sunxi-gpadc-mfd: add buffer structure Quentin Schulz <quentin.schulz@free-electrons.com> - 2016-07-20 10:40 +0200
Re: [PATCH 2/5] mfd: sunxi-gpadc-mfd: add buffer structure Jonathan Cameron <jic23@kernel.org> - 2016-07-24 12:40 +0200
| From | Quentin Schulz <quentin.schulz@free-electrons.com> |
|---|---|
| Date | 2016-07-20 10:40 +0200 |
| Subject | [PATCH 2/5] mfd: sunxi-gpadc-mfd: add buffer structure |
| Message-ID | <rWVcS-7sY-15@gated-at.bofh.it> |
This adds a buffer structure for files including the sunxi-gpadc-mfd
header. This structure has a buffer of 32 u32 values to store data from the
FIFO of the GPADC of Allwinner SoCs. A buff_size is provided in case the
buffer is not full.
Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
---
include/linux/mfd/sunxi-gpadc-mfd.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/linux/mfd/sunxi-gpadc-mfd.h b/include/linux/mfd/sunxi-gpadc-mfd.h
index 7155845..f658299 100644
--- a/include/linux/mfd/sunxi-gpadc-mfd.h
+++ b/include/linux/mfd/sunxi-gpadc-mfd.h
@@ -20,4 +20,9 @@ struct sunxi_gpadc_mfd_dev {
void __iomem *regs;
};
+struct sunxi_gpadc_buffer {
+ u32 buffer[32];
+ unsigned int buff_size;
+};
+
#endif
--
2.5.0
[toc] | [next] | [standalone]
| From | Jonathan Cameron <jic23@kernel.org> |
|---|---|
| Date | 2016-07-24 12:40 +0200 |
| Message-ID | <rYoZc-6LP-3@gated-at.bofh.it> |
| In reply to | #1447086 |
On 20/07/16 09:29, Quentin Schulz wrote:
> This adds a buffer structure for files including the sunxi-gpadc-mfd
> header. This structure has a buffer of 32 u32 values to store data from the
> FIFO of the GPADC of Allwinner SoCs. A buff_size is provided in case the
> buffer is not full.
>
> Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
I'd roll this into the first patch that uses it.
Easier to see what is for when reviewing then!
Jonathan
> ---
> include/linux/mfd/sunxi-gpadc-mfd.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/linux/mfd/sunxi-gpadc-mfd.h b/include/linux/mfd/sunxi-gpadc-mfd.h
> index 7155845..f658299 100644
> --- a/include/linux/mfd/sunxi-gpadc-mfd.h
> +++ b/include/linux/mfd/sunxi-gpadc-mfd.h
> @@ -20,4 +20,9 @@ struct sunxi_gpadc_mfd_dev {
> void __iomem *regs;
> };
>
> +struct sunxi_gpadc_buffer {
> + u32 buffer[32];
> + unsigned int buff_size;
> +};
> +
> #endif
>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web