From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: "Ricardo B. Marliere" <ricardo@marliere.net>
Cc: Hans Verkuil <hverkuil-cisco@xs4all.nl>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] media: cec: make cec_bus_type const
Date: Sun, 4 Feb 2024 10:47:40 +0200 [thread overview]
Message-ID: <20240204084740.GF3094@pendragon.ideasonboard.com> (raw)
In-Reply-To: <20240203-bus_cleanup-media-v1-1-33e8feeab912@marliere.net>
Hi Ricardo,
Thank you for the patch.
On Sat, Feb 03, 2024 at 12:31:26PM -0300, Ricardo B. Marliere wrote:
> Now that the driver core can properly handle constant struct bus_type,
> move the cec_bus_type variable to be a constant structure as well,
> placing it into read-only memory which can not be modified at runtime.
>
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Signed-off-by: Ricardo B. Marliere <ricardo@marliere.net>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Hans, I assume you'll pick this patch. Could you also pick 2/2 from the
series ?
> ---
> drivers/media/cec/core/cec-core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/media/cec/core/cec-core.c b/drivers/media/cec/core/cec-core.c
> index 7e153c5cad04..5a54db839e5d 100644
> --- a/drivers/media/cec/core/cec-core.c
> +++ b/drivers/media/cec/core/cec-core.c
> @@ -93,7 +93,7 @@ static void cec_devnode_release(struct device *cd)
> cec_delete_adapter(to_cec_adapter(devnode));
> }
>
> -static struct bus_type cec_bus_type = {
> +static const struct bus_type cec_bus_type = {
> .name = CEC_NAME,
> };
>
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2024-02-04 8:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-03 15:31 [PATCH 0/2] drivers: media: struct bus_type cleanup Ricardo B. Marliere
2024-02-03 15:31 ` [PATCH 1/2] media: cec: make cec_bus_type const Ricardo B. Marliere
2024-02-03 15:58 ` Greg Kroah-Hartman
2024-02-04 8:47 ` Laurent Pinchart [this message]
2024-02-04 9:39 ` Hans Verkuil
2024-02-03 15:31 ` [PATCH 2/2] media: media-devnode: make media_bus_type const Ricardo B. Marliere
2024-02-03 15:58 ` Greg Kroah-Hartman
2024-02-04 8:47 ` Laurent Pinchart
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=20240204084740.GF3094@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=gregkh@linuxfoundation.org \
--cc=hverkuil-cisco@xs4all.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=ricardo@marliere.net \
--cc=sakari.ailus@linux.intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox