From: Shuah Khan <skhan@linuxfoundation.org>
To: Daniel Oakley <daniel.oakley@ideasonboard.com>,
linux-media@vger.kernel.org,
Kieran Bingham <kieran.bingham@ideasonboard.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Subject: Re: [PATCH 3/3] media: vimc: use data link entities enum to index the ent_config array
Date: Tue, 28 Jun 2022 14:05:33 -0600 [thread overview]
Message-ID: <d9719b46-36d6-7007-1c3f-9f9ed9d6595c@linuxfoundation.org> (raw)
In-Reply-To: <f676bf50-5aef-f06f-82f8-9c7a93e18656@linuxfoundation.org>
On 6/16/22 8:31 AM, Shuah Khan wrote:
> On 6/16/22 4:07 AM, Daniel Oakley wrote:
>> Future additions to the ent_config[] could break the association between
>> the index of the struct vimc_ent_config entries in the ent_config[] array,
>> and the index defined by the enum proposed in the previous patch. Using
>> designated initializers solves this by linking the 2 together clearly in
>> code and prevents the array not reflecting the enum. There is no
>> functional change intended.
>>
>> Suggested-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
>> Signed-off-by: Daniel Oakley <daniel.oakley@ideasonboard.com>
>> ---
>> drivers/media/test-drivers/vimc/vimc-core.c | 22 ++++++++++-----------
>> 1 file changed, 11 insertions(+), 11 deletions(-)
>>
>
> Thank you for the patch to improve code readability. Looks good to me.
>
> Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
>
> thanks,
> -- Shuah
These 3 patches are now queued for vimc pull request for Linux 5.20-rc1
to be send to Mauro Chehab.
https://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux.git/log/?h=vimc
thanks,
-- Shuah
prev parent reply other threads:[~2022-06-28 20:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-16 10:07 [PATCH 0/3] Vimc code readability improvements Daniel Oakley
2022-06-16 10:07 ` [PATCH 1/3] media: vimc: expand the names of vimc entity types Daniel Oakley
2022-06-16 14:29 ` Shuah Khan
2022-06-16 14:41 ` Shuah Khan
2022-06-16 21:24 ` Kieran Bingham
2022-06-16 21:57 ` Shuah Khan
2022-06-17 7:05 ` Kieran Bingham
2022-06-16 10:07 ` [PATCH 2/3] media: vimc: enumerate data link entities for clarity Daniel Oakley
2022-06-16 14:30 ` Shuah Khan
2022-06-16 10:07 ` [PATCH 3/3] media: vimc: use data link entities enum to index the ent_config array Daniel Oakley
2022-06-16 14:31 ` Shuah Khan
2022-06-28 20:05 ` Shuah Khan [this message]
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=d9719b46-36d6-7007-1c3f-9f9ed9d6595c@linuxfoundation.org \
--to=skhan@linuxfoundation.org \
--cc=daniel.oakley@ideasonboard.com \
--cc=kieran.bingham@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox