mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mux: constify mux class
@ 2024-10-14 12:25 Bartosz Golaszewski
  2024-10-24 19:08 ` Bartosz Golaszewski
  0 siblings, 1 reply; 5+ messages in thread
From: Bartosz Golaszewski @ 2024-10-14 12:25 UTC (permalink / raw)
  To: Peter Rosin; +Cc: linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

All class functions used here take a const pointer to the class
structure so we can make the struct itself constant.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 drivers/mux/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mux/core.c b/drivers/mux/core.c
index 78c0022697ec..02be4ba37257 100644
--- a/drivers/mux/core.c
+++ b/drivers/mux/core.c
@@ -42,7 +42,7 @@ struct mux_state {
 	unsigned int state;
 };
 
-static struct class mux_class = {
+static const struct class mux_class = {
 	.name = "mux",
 };
 
-- 
2.43.0


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

* Re: [PATCH] mux: constify mux class
  2024-10-14 12:25 [PATCH] mux: constify mux class Bartosz Golaszewski
@ 2024-10-24 19:08 ` Bartosz Golaszewski
  2024-11-01 14:21   ` Bartosz Golaszewski
  0 siblings, 1 reply; 5+ messages in thread
From: Bartosz Golaszewski @ 2024-10-24 19:08 UTC (permalink / raw)
  To: Peter Rosin; +Cc: linux-kernel, Bartosz Golaszewski

On Mon, Oct 14, 2024 at 2:25 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> All class functions used here take a const pointer to the class
> structure so we can make the struct itself constant.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> ---
>  drivers/mux/core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/mux/core.c b/drivers/mux/core.c
> index 78c0022697ec..02be4ba37257 100644
> --- a/drivers/mux/core.c
> +++ b/drivers/mux/core.c
> @@ -42,7 +42,7 @@ struct mux_state {
>         unsigned int state;
>  };
>
> -static struct class mux_class = {
> +static const struct class mux_class = {
>         .name = "mux",
>  };
>
> --
> 2.43.0
>

Gentle ping.

Bart

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

* Re: [PATCH] mux: constify mux class
  2024-10-24 19:08 ` Bartosz Golaszewski
@ 2024-11-01 14:21   ` Bartosz Golaszewski
  2024-11-05 21:53     ` Peter Rosin
  0 siblings, 1 reply; 5+ messages in thread
From: Bartosz Golaszewski @ 2024-11-01 14:21 UTC (permalink / raw)
  To: Peter Rosin; +Cc: linux-kernel, Bartosz Golaszewski

On Thu, Oct 24, 2024 at 9:08 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> On Mon, Oct 14, 2024 at 2:25 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> >
> > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >
> > All class functions used here take a const pointer to the class
> > structure so we can make the struct itself constant.
> >
> > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> > ---
> >  drivers/mux/core.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/mux/core.c b/drivers/mux/core.c
> > index 78c0022697ec..02be4ba37257 100644
> > --- a/drivers/mux/core.c
> > +++ b/drivers/mux/core.c
> > @@ -42,7 +42,7 @@ struct mux_state {
> >         unsigned int state;
> >  };
> >
> > -static struct class mux_class = {
> > +static const struct class mux_class = {
> >         .name = "mux",
> >  };
> >
> > --
> > 2.43.0
> >
>
> Gentle ping.
>
> Bart

Peter,

Your email doesn't bounce so I assume you are getting this. Any reason
why this simple change is not being picked up?

Bart

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

* Re: [PATCH] mux: constify mux class
  2024-11-01 14:21   ` Bartosz Golaszewski
@ 2024-11-05 21:53     ` Peter Rosin
  2024-11-30 15:37       ` Bartosz Golaszewski
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Rosin @ 2024-11-05 21:53 UTC (permalink / raw)
  To: Bartosz Golaszewski; +Cc: linux-kernel, Bartosz Golaszewski

Hi Bartosz,

2024-11-01 at 15:21, Bartosz Golaszewski wrote:
> On Thu, Oct 24, 2024 at 9:08 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>>
>> On Mon, Oct 14, 2024 at 2:25 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>>>
>>> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>>>
>>> All class functions used here take a const pointer to the class
>>> structure so we can make the struct itself constant.
>>>
>>> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>>> ---
>>>  drivers/mux/core.c | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/mux/core.c b/drivers/mux/core.c
>>> index 78c0022697ec..02be4ba37257 100644
>>> --- a/drivers/mux/core.c
>>> +++ b/drivers/mux/core.c
>>> @@ -42,7 +42,7 @@ struct mux_state {
>>>         unsigned int state;
>>>  };
>>>
>>> -static struct class mux_class = {
>>> +static const struct class mux_class = {
>>>         .name = "mux",
>>>  };
>>>
>>> --
>>> 2.43.0
>>>
>>
>> Gentle ping.
>>
>> Bart
> 
> Peter,
> 
> Your email doesn't bounce so I assume you are getting this. Any reason
> why this simple change is not being picked up?

I'm here, and am just being slow as usual. Sorry about that. I have now
added the patch to linux-next.

Cheers,
Peter

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

* Re: [PATCH] mux: constify mux class
  2024-11-05 21:53     ` Peter Rosin
@ 2024-11-30 15:37       ` Bartosz Golaszewski
  0 siblings, 0 replies; 5+ messages in thread
From: Bartosz Golaszewski @ 2024-11-30 15:37 UTC (permalink / raw)
  To: Peter Rosin; +Cc: linux-kernel, Bartosz Golaszewski

On Tue, Nov 5, 2024 at 10:53 PM Peter Rosin <peda@axentia.se> wrote:
>
> Hi Bartosz,
>
> 2024-11-01 at 15:21, Bartosz Golaszewski wrote:
> > On Thu, Oct 24, 2024 at 9:08 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> >>
> >> On Mon, Oct 14, 2024 at 2:25 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:
> >>>
> >>> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >>>
> >>> All class functions used here take a const pointer to the class
> >>> structure so we can make the struct itself constant.
> >>>
> >>> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> >>> ---
> >>>  drivers/mux/core.c | 2 +-
> >>>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>>
> >>> diff --git a/drivers/mux/core.c b/drivers/mux/core.c
> >>> index 78c0022697ec..02be4ba37257 100644
> >>> --- a/drivers/mux/core.c
> >>> +++ b/drivers/mux/core.c
> >>> @@ -42,7 +42,7 @@ struct mux_state {
> >>>         unsigned int state;
> >>>  };
> >>>
> >>> -static struct class mux_class = {
> >>> +static const struct class mux_class = {
> >>>         .name = "mux",
> >>>  };
> >>>
> >>> --
> >>> 2.43.0
> >>>
> >>
> >> Gentle ping.
> >>
> >> Bart
> >
> > Peter,
> >
> > Your email doesn't bounce so I assume you are getting this. Any reason
> > why this simple change is not being picked up?
>
> I'm here, and am just being slow as usual. Sorry about that. I have now
> added the patch to linux-next.
>
> Cheers,
> Peter

Peter,

This commit is in next but it's not gone upstream and it's almost the
end of the merge window. I don't see any pending PR from you. Can this
go upstream?

Bartosz

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

end of thread, other threads:[~2024-11-30 15:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-14 12:25 [PATCH] mux: constify mux class Bartosz Golaszewski
2024-10-24 19:08 ` Bartosz Golaszewski
2024-11-01 14:21   ` Bartosz Golaszewski
2024-11-05 21:53     ` Peter Rosin
2024-11-30 15:37       ` Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®