From: Hans de Goede <hansg@kernel.org>
To: Thomas Andreatta <thomasandreatta2000@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev,
Thomas Andreatta <thomas.andreatta2000@gmail.com>
Subject: Re: [PATCH 3/4 V2] Staging: media: atomisp: i2c: struct definition style
Date: Sun, 6 Jul 2025 17:01:14 +0200 [thread overview]
Message-ID: <079b73bf-c266-4ffc-8adc-488dfd2c53f9@kernel.org> (raw)
In-Reply-To: <20250619084420.146151-3-thomas.andreatta2000@gmail.com>
Hi,
On 19-Jun-25 10:44 AM, Thomas Andreatta wrote:
> Reorder const qualifier in array declaration
>
> Signed-off-by: Thomas Andreatta <thomas.andreatta2000@gmail.com>
Thank you for your patch.
I have merged this in my media-atomisp branch:
https://git.kernel.org/pub/scm/linux/kernel/git/hansg/linux.git/log/?h=media-atomisp
And this patch will be included in my next
pull-request to Mauro (to media subsystem maintainer)
Regards,
Hans
> ---
> drivers/staging/media/atomisp/i2c/gc2235.h | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/staging/media/atomisp/i2c/gc2235.h b/drivers/staging/media/atomisp/i2c/gc2235.h
> index 6c743a17f198..7dd9a676fb98 100644
> --- a/drivers/staging/media/atomisp/i2c/gc2235.h
> +++ b/drivers/staging/media/atomisp/i2c/gc2235.h
> @@ -179,21 +179,21 @@ struct gc2235_write_ctrl {
> struct gc2235_write_buffer buffer;
> };
>
> -static struct gc2235_reg const gc2235_stream_on[] = {
> +static const struct gc2235_reg gc2235_stream_on[] = {
> { GC2235_8BIT, 0xfe, 0x03}, /* switch to P3 */
> { GC2235_8BIT, 0x10, 0x91}, /* start mipi */
> { GC2235_8BIT, 0xfe, 0x00}, /* switch to P0 */
> { GC2235_TOK_TERM, 0, 0 }
> };
>
> -static struct gc2235_reg const gc2235_stream_off[] = {
> +static const struct gc2235_reg gc2235_stream_off[] = {
> { GC2235_8BIT, 0xfe, 0x03}, /* switch to P3 */
> { GC2235_8BIT, 0x10, 0x01}, /* stop mipi */
> { GC2235_8BIT, 0xfe, 0x00}, /* switch to P0 */
> { GC2235_TOK_TERM, 0, 0 }
> };
>
> -static struct gc2235_reg const gc2235_init_settings[] = {
> +static const struct gc2235_reg gc2235_init_settings[] = {
> /* System */
> { GC2235_8BIT, 0xfe, 0x80 },
> { GC2235_8BIT, 0xfe, 0x80 },
> @@ -268,7 +268,7 @@ static struct gc2235_reg const gc2235_init_settings[] = {
> * Register settings for various resolution
> */
> #if ENABLE_NON_PREVIEW
> -static struct gc2235_reg const gc2235_1296_736_30fps[] = {
> +static const struct gc2235_reg gc2235_1296_736_30fps[] = {
> { GC2235_8BIT, 0x8b, 0xa0 },
> { GC2235_8BIT, 0x8c, 0x02 },
>
> @@ -321,7 +321,7 @@ static struct gc2235_reg const gc2235_1296_736_30fps[] = {
> { GC2235_TOK_TERM, 0, 0 }
> };
>
> -static struct gc2235_reg const gc2235_960_640_30fps[] = {
> +static const struct gc2235_reg gc2235_960_640_30fps[] = {
> { GC2235_8BIT, 0x8b, 0xa0 },
> { GC2235_8BIT, 0x8c, 0x02 },
>
> @@ -373,7 +373,7 @@ static struct gc2235_reg const gc2235_960_640_30fps[] = {
> };
> #endif
>
> -static struct gc2235_reg const gc2235_1600_900_30fps[] = {
> +static const struct gc2235_reg gc2235_1600_900_30fps[] = {
> { GC2235_8BIT, 0x8b, 0xa0 },
> { GC2235_8BIT, 0x8c, 0x02 },
>
> @@ -418,7 +418,7 @@ static struct gc2235_reg const gc2235_1600_900_30fps[] = {
> { GC2235_TOK_TERM, 0, 0 }
> };
>
> -static struct gc2235_reg const gc2235_1616_1082_30fps[] = {
> +static const struct gc2235_reg gc2235_1616_1082_30fps[] = {
> { GC2235_8BIT, 0x8b, 0xa0 },
> { GC2235_8BIT, 0x8c, 0x02 },
>
> @@ -463,7 +463,7 @@ static struct gc2235_reg const gc2235_1616_1082_30fps[] = {
> { GC2235_TOK_TERM, 0, 0 }
> };
>
> -static struct gc2235_reg const gc2235_1616_1216_30fps[] = {
> +static const struct gc2235_reg gc2235_1616_1216_30fps[] = {
> { GC2235_8BIT, 0x8b, 0xa0 },
> { GC2235_8BIT, 0x8c, 0x02 },
>
next prev parent reply other threads:[~2025-07-06 15:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-19 8:44 [PATCH 1/4 V2] Staging: media: atomisp: i2c: removed redundand debug message Thomas Andreatta
2025-06-19 8:44 ` [PATCH 2/4 " Thomas Andreatta
2025-07-06 15:01 ` Hans de Goede
2025-06-19 8:44 ` [PATCH 3/4 V2] Staging: media: atomisp: i2c: struct definition style Thomas Andreatta
2025-07-06 15:01 ` Hans de Goede [this message]
2025-06-19 8:44 ` [PATCH 4/4 " Thomas Andreatta
2025-07-06 15:01 ` Hans de Goede
2025-07-06 14:56 ` [PATCH 1/4 V2] Staging: media: atomisp: i2c: removed redundand debug message Hans de Goede
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=079b73bf-c266-4ffc-8adc-488dfd2c53f9@kernel.org \
--to=hansg@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=thomas.andreatta2000@gmail.com \
--cc=thomasandreatta2000@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.